Commit Graph

134 Commits

Author SHA1 Message Date
Ziwen Mei 531b7619b1
chore: fix typo in test (#12291) 2021-09-22 15:58:08 +02:00
Roy Eden 515467a618
feat(compiler): condenses staticClass whitespace (fix #12113) (#12195)
* feat(compiler): template staticClass no longer preserves whitespace

Template static classes used to preserve whitespace after compilation, resulting in builds that had
bigger file outputs with whitespace in component's staticClass attributes

fix #12113

* refactor(refactor(web-compiler): removed ignore in regex): Removed ignore flag in regex

fix #12113

* test(ssr-string.spec.js): Removed newline character, as whitespace is purged in static classes

There's no need to escape newlines in static classes, as they're now replaced with a single
whitespace character

fix #12113

* test(directives/class.spec.js): Added whitespace to test

fix #12113

* Apply suggestions from code review

Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
2021-09-08 11:23:49 +02:00
Eduardo San Martin Morote 67901e78ef test(ssr): add missing test for async component in slot 2021-06-02 14:14:42 +02:00
Volodymyr I 7e5dc6bd9e
fix(ssr): inheritAttrs false adds attributes to html (#11706) 2021-03-30 11:49:40 +02:00
Daniel Jun Suguimoto b8bd149d8a
fix(ssr): textarea keeps undefined/null values (#11121)
* fix(ssr): textarea keeps undefined/null values

* refactor(ssr): Code review changes for null values in textareas
2020-09-21 16:04:58 +02:00
krystal 8082d2f910 fix(ssr): fix nested async functional componet rendering (#9673)
fix #9643
2019-03-13 17:20:28 +08:00
Evan You 38825ff675 test: add a test case for ssr max stack size limit 2019-02-28 17:52:20 -05:00
Evan You 42fdf3f837 refactor: ssrPrefetch -> serverPrefetch for more consistent naming 2019-01-18 16:43:17 -05:00
Evan You df064cedd1 test: tests for ssr template function (#9324) 2019-01-18 11:25:37 -05:00
Evan You aef5b4e478 fix(ssr): should render 0 as valid value for style property with unit 2019-01-12 02:07:17 -05:00
Evan You 17d8bcb60e fix(ssr): should not render invalid numeric style values
Reverts part of 7d9cfebe - browsers only auto append units to
numbers when in quirksmode, so in standard mode, numbers set to
style properties that require units are invalid and should not
be rendered.
2019-01-11 14:54:10 -05:00
Evan You 7d9cfebe39 fix(ssr): properly handle invalid and numeric style properties
Ignores values that are not string or numbers, and append px as default
unit to appropriate properties.

There will still be certain cases where the user simply provides an
invalid string value to a property which will be too costly to detect
(it's possible by using the `cssstyle` package, but very heavy). But
in such cases the user would already notice the style is not working
on the client, so it's not really worth it for the perf implications.

fix #9231
2019-01-11 11:07:40 -05:00
Evan You d278da20a0 test: fix LRU upgrade 2019-01-07 12:15:15 -05:00
Evan You 44940121ee feat(ssr): add custom state serializer option
close #6614
2018-12-20 16:08:58 -05:00
Evan You 7ebabe2392 test: test for #8790 2018-12-20 15:54:35 -05:00
Guillaume Chau d7a533d6f8 feat(ssr): ssrPrefetch option + context.rendered hook (#9017) 2018-12-20 15:26:12 -05:00
Hyunje Jun f036cce163 feat(ssr): Add 'nonce' option to context for ssr outlet script (#8047)
close #7479
2018-12-20 15:15:04 -05:00
Evan You 780dac561b fix(ssr): should not warn for custom directives that do not have ssr implementation
fix #9167
2018-12-09 15:47:43 -05:00
sqal a89384c8d9 test(ssr): add basic directives test (#9166) 2018-12-09 15:42:20 -05:00
sqal 33e669b22f fix(ssr): computed properties should pass vm as first argument in ssr (#9090)
fix #8977
2018-12-01 00:05:13 -05:00
Sam Lichlyter 5489339a30 refactor(core): Replace "var" (#8299)
Replaces instances of "var" with "let" and "const" where applicable using the eslint 'no-var' and
'prefer-const' rules
2018-10-24 13:07:40 -04:00
Herrington Darkholme 46b8d2c59d fix(server): use path.posix.join to generate public path (#8177)
fix #8167
2018-10-24 13:02:11 -04:00
Evan You 7597bb06e0 test: fix ssr tests 2018-10-24 12:42:53 -04:00
Evan You 76fd45c9fd build: upgrade eslint and use only non-stylistic rules 2018-10-24 12:08:32 -04:00
Vikram Rangaraj 12e8efc2e7 workflow: upgraded to babel 7 (#8948) 2018-10-23 18:40:55 -04:00
Haoqun Jiang c21b89ebed fix(ssr): fix double escaping of staticClass values (#7859) (#8037) 2018-08-20 17:49:18 -04:00
Evan You 3d36a443c7 fix: fix potential xss vulnerability in ssr when using v-bind 2018-08-01 12:33:47 -07:00
leon 1a979c44d6 fix(ssr): fix v-show inline style rendering when style binding is array (#7814)
fix #7813
2018-03-13 11:40:22 -04:00
Evan You 882e7199fd fix(ssr): fix SSR for async functional components
fix #7784
2018-03-13 11:39:29 -04:00
Evan You 9b22d86ab3 fix: install ssr helpers for functional context during SSR
close #7443, ref nuxt/nuxt.js#2565
2018-03-08 09:51:03 -05:00
Evan You 14f7015578 test: fix ssr test due to webpack asset emit order change 2017-12-12 19:16:17 -05:00
Evan You 8936b8d9c1 fix(ssr): properly handle errors in async component
fix #6778
2017-12-12 18:12:02 -05:00
Evan You 86e4d7566e test: add test case for #7223 2017-12-12 17:07:28 -05:00
Evan You e1657fd7ce fix(ssr): properly render <select v-model> initial state
fix #6986
2017-11-03 15:30:47 -04:00
Evan You 79c0d7bcfb fix(ssr): properly render textarea value
partial fix for #6986
2017-11-02 23:04:31 -04:00
Evan You f2e00f756f fix: special case for static muted attribute in firefox
fix #6887
2017-11-02 16:55:05 -04:00
Evan You 4ad9a56b22 fix(ssr): should not optimize root if conditions
fix #6907
2017-10-26 18:43:57 +02:00
Evan You dff85b230a fix(ssr): handle inline template compilation error
fix #6766
2017-10-10 10:47:41 -04:00
Evan You 7bc899ce0e feat(ssr): add shouldPrefetch option
close #5964
2017-10-05 23:08:09 -04:00
Evan You f881dd175a feat(ssr): renderToString return Promise
close #6160
2017-10-05 22:42:56 -04:00
Evan You 0c9534ff00 fix(ssr): fix bundleRenderer Promise rejection regression 2017-09-14 09:50:33 -04:00
Evan You 09106f066a fix(ssr): handle v-text/v-html with non-string value
fix #6572
2017-09-12 23:23:24 -04:00
Josh Soref f477ecdbbb chore: spelling (#6535) 2017-09-07 07:33:09 -04:00
Evan You 06741f3266 fix: computed properties should not be cached during SSR
ref: vuejs/vuex#877
2017-09-01 12:51:29 -04:00
Evan You db1d047499 chore: remove unnecessary log in tests 2017-09-01 12:19:58 -04:00
Evan You 172dbf9faf fix(ssr): should also escape static text content
fix #6345
2017-08-29 23:32:28 +02:00
Evan You 5091e2c984 fix(ssr): address possible xss vector 2017-08-29 16:42:54 +02:00
Evan You 6bf97721f1 feat(ssr): inheritAttrs support in SSR 2017-07-12 16:54:31 +08:00
JK 55816543c4 fix(ssr): reference error when create $ssrContext for root component (#5981)
fix #5941
2017-06-29 12:37:03 +08:00
Evan You 0cd6ef321b feat: resolve ES module default when resolving async components 2017-06-29 12:12:01 +08:00