Commit Graph

2862 Commits

Author SHA1 Message Date
Evan You
dbc0582587 feat: dynamic directive arguments for v-on, v-bind and custom directives (#9373) 2019-01-25 23:22:44 -05:00
Evan You
f219bedae8
perf: improve scoped slots change detection accuracy (#9371)
Ensure that state mutations that only affect parent scope only trigger parent update and does not affect child components with only scoped slots.
2019-01-25 22:34:06 -05:00
Evan You
770c6ed64f refactor: extend dom-props update skip to more all keys except value 2019-01-24 15:47:58 -05:00
Evan You
1868561442 fix: fix checkbox event edge case in Firefox 2019-01-24 15:43:06 -05:00
Evan You
8cb2069aa4 test: fix tests in IE/Edge 2019-01-24 10:05:39 -05:00
Evan You
32072e8a88 refactor: simplify timestamp check 2019-01-24 10:05:20 -05:00
Evan You
60a277ca31 chore: update comment 2019-01-23 18:44:21 -05:00
Evan You
ba0ebd4771 fix: async edge case fix should apply to more browsers
also optimize fix performance by avoiding calls to performance.now()
2019-01-23 18:41:50 -05:00
Evan You
ba9907c73c chore: update sponsor 2019-01-23 15:07:24 -05:00
Evan You
8d8457246d feat: warning for ambiguous v-slot usage 2019-01-23 10:20:01 -05:00
Evan You
67e85deae2 feat: adjust v-slot per RFC + enable flag 2019-01-22 22:21:40 -05:00
yong
ec8403209a chore: update README in dist (#9346) 2019-01-19 11:28:19 -05:00
vue-bot
6ca18bd05b chore: update sponsors [ci skip] (#9343) 2019-01-19 08:37:22 -05:00
Evan You
b0f2f830e6 chore: fix flow 2019-01-18 16:46:49 -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
DominusVilicus
b65f6d78e0 feat(ssr): allow template option to be function in renderToString (#9324)
Also allows return Promise for async handling
2019-01-18 11:20:07 -05:00
Evan You
4fca0454bd feat: update new slot syntax per RFC revision 2019-01-16 13:44:58 -05:00
Evan You
a47a0ee287 workflow: fix release script [ci skip] 2019-01-16 11:22:10 -05:00
Evan You
732bf878c1 build: release 2.6.0-beta.1 2019-01-16 11:21:07 -05:00
Evan You
e75c623047 build: build v2.6.0-beta.1 2019-01-16 11:20:25 -05:00
Evan You
730a10f771 types: type sync for template-compiler and server-renderer 2019-01-15 17:41:42 -05:00
Evan You
7fb6fdd168 build: introduce feature flags, hide new slot syntax behind flag 2019-01-15 16:22:06 -05:00
Evan You
0cf6aaddb5 types: type sync for 2.6 features 2019-01-15 12:38:58 -05:00
Evan You
9ae80acde5 feat: expose performance measures
ref #7570
2019-01-15 11:41:00 -05:00
Evan You
c5c354d593 feat: new scoped slot syntax implementation update per rfc 2019-01-14 22:56: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
584e89da4a feat: support slot-props and its shorthand
See https://github.com/vuejs/vue/issues/9306 for more details.
2019-01-12 01:23:51 -05:00
Evan You
4f61d5b73b chore: fix flow 2019-01-12 00:42:09 -05:00
Evan You
bc97ff956e chore: reset CommonJS dist files overwritten by merge 2019-01-12 00:32:56 -05:00
Evan You
794ad0dae3 refactor: additional tweaks after revert 2019-01-11 23:09:31 -05:00
Evan You
6a2994e8f0 revert: feat: support scoped-slot usage with $slot
This reverts commit 7988a5541c.
2019-01-11 23:04:04 -05:00
Evan You
6fe07ebf5a chore: merge branch '2.6' into dev 2019-01-11 18:26:32 -05:00
Evan You
99343f9b48 build: release 2.5.22 2019-01-11 18:18:31 -05:00
Evan You
06dbb2ab2e build: build 2.5.22 2019-01-11 18:18:26 -05:00
Evan You
7ac8f63a05 chore: remove residual files from dist 2019-01-11 18:13:13 -05:00
Evan You
0d2e9c46f1 fix(core): dedupe lifecycle hooks during options merge
The fix landed in #9199 causes further extended constructors used as
mixins to drop options from its inheritance chain, so a different fix
is needed.
2019-01-11 17:53:33 -05:00
Evan You
edf7df0c83 fix(core): dedupe lifecycle hooks during options merge
The fix landed in #9199 causes further extended constructors used as
mixins to drop options from its inheritance chain, so a different fix
is needed.
2019-01-11 17:51:45 -05:00
hikerpig
743edacdb6 fix(core): fix merged twice bug when passing extended constructor to mixins (#9199)
fix #9198
2019-01-11 15:47:13 -05:00
Adrien Baron
d21e931396 fix(async component): memory leak after synchronous async loading (#9275)
fix #9229
2019-01-11 15:46:25 -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
fe2b27ffb9 types: typing for Vue.observable 2019-01-10 22:44:55 -05:00
Evan You
142cf6c489 types: update typing for vue-template-compiler 2019-01-10 18:19:23 -05:00
Evan You
a4ed58c076 feat(compiler): expose generateCodeFrame method 2019-01-10 17:58:06 -05:00
hikerpig
537161779e fix(core): fix merged twice bug when passing extended constructor to mixins (#9199)
fix #9198
2019-01-10 16:10:54 -05:00
Evan You
c50bbde41c feat: add Vue.observable() for explicitly creating observable objects 2019-01-10 16:03:03 -05:00
Evan You
ce7ca7bde9 refactor: should also fire handler if timestamp was same 2019-01-10 15:08:38 -05:00
Evan You
3a1a935960 refactor: do not override scoped slots when exposing normal slots 2019-01-10 14:25:09 -05:00
Evan You
3504d7f6d6 refactor: better solution for async edge case.
Revert event delegation related changes.
2019-01-10 14:21:31 -05:00