Commit Graph

2203 Commits

Author SHA1 Message Date
pikax
3fd8bb4e0f fix test:weex 2021-04-07 14:41:48 +01:00
pikax
180474dc17 fix "he" dep thanks @sodatea 2021-04-07 14:02:42 +01:00
zrh122
0603ff695d
fix(warns): modify maybeComponent function in parser (#10167)
fixes #10152
2021-04-07 14:38:13 +02:00
pikax
69a1bc909b eslint fixes 2021-04-06 17:21:58 +01:00
pikax
5f4763e598 fix keepalive to ts 2021-04-06 17:12:35 +01:00
pikax
0af78c57b3 remove @flow 2021-04-06 17:11:58 +01:00
pikax
cb0d18bfa1 bump rollup deps 2021-04-06 17:04:48 +01:00
pikax
63f9077de4 import as types 2021-04-03 17:29:42 +01:00
pikax
65b683a5e1 fix build 2021-04-03 16:36:50 +01:00
pikax
af9fc2bcff chore: move to typescript 2021-04-03 15:07:44 +01:00
Eduardo San Martin Morote
af5e05d87e
fix: give correct namespace in foreignObject (#11576)
Fix #11575
2021-03-30 12:11:55 +02:00
Volodymyr I
7e5dc6bd9e
fix(ssr): inheritAttrs false adds attributes to html (#11706) 2021-03-30 11:49:40 +02:00
Ben Delaney
987f322b8f
fix: pause dep collection during immediate watcher invocation (#11943)
Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
2021-03-30 11:46:12 +02:00
shadowings-zy
fb16d7bfa1
fix(vdom): avoid executing root level script tags (#11487)
fix #11483
2021-03-30 11:43:34 +02:00
AjiTae
fa1f81e910
fix(props): support BigInt in props type validation (#11191) 2021-03-30 11:41:10 +02:00
shadowings-zy
c42b7066ca
fix(compiler): Allow BigInt usage in templates (#11152) 2021-03-30 11:40:44 +02:00
Mohammad Albakri
69401311f4
fix(warn): better message with no constructors props (#9241)
Co-authored-by: Siddhesh Mhadnak <siddhesh.mhadnak@outlook.com>
Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
2021-03-30 11:38:13 +02:00
Sebastian Speitel
2488a6a1e9
perf: preinitialize typeCheck RegExp (#10990) 2021-03-30 11:36:46 +02:00
Des Preston
55a30cf9db
fix(compiler): avoid converting &nbps; to spaces (#11065) 2021-03-30 11:03:03 +02:00
Andrzej Swaton
3d46692ee4
feat(warns): avoid warning native modifiers on dynamic components (#11052)
Co-authored-by: Andrzej Swaton <andrzej@diligen.com>
2021-03-30 11:02:46 +02:00
Mitchell Bryson
690374bdc1
build: unexpected token when running dev (#11704) 2020-10-05 12:09:09 +02:00
Alex Addams
0664cb0143
fix(v-pre): do not alter attributes (#10088)
* fix(v-pre): do not alter attributes

close #10087

* fix(v-pre): do not alter attributes

remove component and replace option from unit test

* refactor: use or

* perf: check boolean before index

Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
2020-09-21 17:42:08 +02:00
Nowres Rafid
cd57393fd3
fix(attrs): do not consider translate attribute as boolean (#11392)
when present, translate attribute had translate as it's value, which is not valid, the value should
remain as specified by the user, that's why we removed it form isBooleanAttr map

fix #11391
2020-09-21 16:51:39 +02:00
Des Preston
862070662d
fix(compiler): event handlers with modifiers swallowing arguments (fix #10867) (#10958)
Pass full parent argument list to the event handler when there are event
modifiers present.
2020-09-21 16:16:45 +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
DSha
67825c24bc
fix(parser): allow multiple slots with new syntax (#9785)
* fix(#9781): non greedy `dynamicArgAttribute` RegExp 

* test(parser): add test case for multiple dynamic slot names

* test: add test with value

Co-authored-by: Eduardo San Martin Morote <posva13@gmail.com>
2020-09-21 16:01:46 +02:00
Eduardo San Martin Morote
abb5ef35dd
fix(props): correctly warn when a provided prop is Symbol (#10529)
* fix(props): correctly warn when a provided prop is Symbol

Fixes #10519

* style: space before parens
2020-09-21 12:24:17 +02:00
Eduardo San Martin Morote
b97606cdc6
fix(ssr): avoid missing files in manifest (#11609)
Co-authored-by: chenyj <2932802684@qq.com>
Co-authored-by: johnleider <john@vuetifyjs.com>
2020-09-21 11:59:11 +02:00
Eduardo San Martin Morote
579e1ff9df
fix(core): remove trailing comma in function signature (#10845)
Fix #10843
2020-09-21 11:20:24 +02:00
warmsocks
8ead9d2a0d
chore: spelling and grammar (#11481)
Co-authored-by: Shaun Case <shaunc@aja.com>
2020-07-01 11:11:46 +02:00
Tim Gates
2be3b10dc1
chore: typo unnecesarry -> unnecessary (#11286) 2020-04-06 23:54:14 +02:00
YuLe
e68f83d0b5
chore: fix typo in bind-dynamic-keys.js comment (#11262) 2020-03-30 11:44:33 +02:00
阿豪
6390f70c2e
chore(platforms/web/server/util): Removes duplicate values from the attr list (#11064) 2020-02-11 09:50:22 -05:00
7006
6b4c0f9c89 chore: typo in comment 2019-12-05 14:39:22 +01:00
EVILLT
d7d8ff06b7 chore: fix typo in next-tick.js comment (#10607) 2019-10-08 09:41:17 +01:00
Tan Zhen Yong
3dcd85b826 chore: fix typo in <template v-slot> warning (#10585) 2019-10-01 09:07:36 +02:00
Li Yongcheng
d40b7ddb81 chore: typo in variable name (#10358) 2019-08-07 09:09:00 +02:00
Husam Ibrahim
78c3ce0ce0 chore: fix prefixed data properties warning typo (#10327) 2019-07-31 09:52:42 +02:00
Magic
f64765fa03 chore(typo): fix comment typo (#10101) 2019-06-04 11:51:19 +02:00
Sai
1137e415c9 chore(typo): fix typo in comments (#9995) 2019-05-08 17:08:29 +02:00
GU Yiling
569b728ab1 fix: fix function expression regex (#9922)
fix #9920
2019-04-25 21:04:36 +08:00
X.L
085d188379 fix(compiler): Remove the warning for valid v-slot value (#9917) 2019-04-25 11:17:39 +08:00
Natalia Tepluhina
861aea1661 polish: add warning when .native modifier is used on native HTML elements (#9884) 2019-04-25 10:39:19 +08:00
子迟
43b98fe251 refactor: remove useless parameter to the function removeVnodes (#9914)
close #9910
2019-04-25 10:34:55 +08:00
Evan You
a9a303009a chore: fix SimpleSet export 2019-04-25 10:01:03 +08:00
Henri Yandell
29e745f99f chore: improve license clarity of simplehtmlparser.js (#9907) 2019-04-23 09:44:01 +08:00
Evan You
f11449d916 fix(core): only unset dom prop when not present
fix #9650
2019-03-20 14:13:23 +08:00
Alexander Schwartz
02d21c265c fix(core): cleanup timeouts for async components (#9649)
close #9648
2019-03-20 13:55:37 +08:00
Evan You
22790b250c fix(scheduler): revert timeStamp check
fix #9729

This reverts #9667, but also fixes the original issue #9632 by skipping
the check in IE altogether (since all IE use low-res event timestamps).
2019-03-19 12:44:49 +08:00
Evan You
ebc1893fac fix(slots): fix slots not updating when passing down normal slots as $scopedSlots
fix #9699
2019-03-18 17:43:01 +08:00
GU Yiling
3433ba5bee fix(codegen): support named function expression in v-on (#9709)
fix #9707
2019-03-18 16:19:41 +08:00
GU Yiling
653c74e64e fix(core): use window.performance for compatibility in JSDOM (#9700)
fix #9698
2019-03-15 09:06:40 +08:00
GU Yiling
f1bdd7ff9d fix(compiler): whitespace: 'condense' should honor pre tag as well (#9660) 2019-03-14 15:47:51 +08:00
DSha
4de4649d96 fix(transition): fix appear check for transition wrapper components (#9668) 2019-03-14 15:45:42 +08:00
Evan You
7186940143 fix: should not swallow user catch on rejected promise in methods
fix #9694
2019-03-14 15:25:01 +08:00
krystal
8082d2f910 fix(ssr): fix nested async functional componet rendering (#9673)
fix #9643
2019-03-13 17:20:28 +08:00
Evan You
7591b9dc6d fix: event timeStamp check for Qt
fix #9681
2019-03-13 17:19:02 +08:00
Xin Du (Clark)
d28240009c fix(ssr): not push non-async css files into map (#9677) 2019-03-13 17:16:44 +08:00
Felix Bünemann
ef2a380c6e fix(scheduler): getNow detection can randomly fail (#9667)
The previous detection code compared time stamps based on Date.now()
which are not monotonic, so the check could fail due to clock skew or
adjustments.

This fix changes the check to compare against performance.now() if it is
supported, because it is monotonic (strictly increasing).
2019-03-11 10:28:06 +08:00
Evan You
781c70514e fix: should use fallback for scoped slots with single falsy v-if
fix #9658
2019-03-09 02:44:08 +08:00
Evan You
9313cf9174 fix: should consider presence of normal slots when caching normalized scoped slots
fix #9644
2019-03-09 02:03:47 +08:00
Felix Bünemann
da77d6a98b fix(scheduler): fix getNow check in IE9 (#9647)
fix #9632
2019-03-09 01:04:28 +08:00
GU Yiling
0b57380f10 fix: v-bind object should be overridable by single bindings (#9653)
fix #9641
2019-03-09 01:00:47 +08:00
Jason
cbad54aa52 fix(compiler): set end location for incomplete elements (#9598) 2019-03-01 09:56:13 -05:00
Evan You
571a4880fc fix: further adjust max stack size
close #9562
2019-02-28 17:46:28 -05:00
Evan You
03c13de38e refactor: remove unncessary condition 2019-02-28 17:39:10 -05:00
Markus Oberlehner
ed341137b2 fix: handle async component when parent is toggled before resolve (#9572)
fix #9571
2019-02-28 17:37:44 -05:00
Evan You
2277b2322c fix: scoped slots dynamic check should include v-for on element itself
fix #9596
2019-02-28 14:37:16 -05:00
Haoqun Jiang
7912f75c5e fix: avoid compression of unicode sequences by using regexps (#9595)
closes #9456
2019-02-28 12:10:37 -05:00
DSha
060c3b98ef fix: fix modifier parsing for dynamic argument with deep path (#9585)
fix #9577
2019-02-28 09:36:47 -05:00
Evan You
7a8de91cd7 fix(compiler): handle negative length in codeframe repeat 2019-02-21 14:27:33 -05:00
DSha
2f3020e9cc fix(#9511): avoid promise catch multiple times (#9526)
* fix(#9511): avoid promise catch multiple times

* fix(#9511): add a test case for util/error/invokeWithErrorHandling

* fix(#9511): update test case for util/error/invokeWithErrorHandling
2019-02-21 14:01:53 -05:00
Evan You
8a80a23ecb fix: avoid errors thrown during dom props update
breaking the entire app

fix #9459
2019-02-21 14:00:28 -05:00
Evan You
cd3d202edb refactor: simplify conditions 2019-02-21 13:31:58 -05:00
Evan You
7ec4627902 fix: ensure generated scoped slot code is compatible with 2.5
fix #9545
2019-02-21 08:52:15 -05:00
Evan You
d9b27a92bd fix: ensure scoped slots update in conditional branches
close #9534
2019-02-20 21:48:33 -05:00
Evan You
8f004ea44e fix: scoped slots should update when inside v-for
fix #9506
2019-02-18 17:17:47 -05:00
katashin
ee29e41ef4 fix: avoid possible infinite loop by accessing observables in error handler (#9489) 2019-02-18 19:56:17 +01:00
Evan You
29c348f3cf fix: fix keyCode check for Chrome autofill fake key events
close #9441
2019-02-11 22:54:35 -05:00
Evan You
21fca2fffc fix: ensure scoped slot containing passed down slot content updates properly 2019-02-11 11:30:14 -05:00
Evan You
e7d49cdcf2 fix: allow passing multiple arguments to scoped slot
fix #9468

Note: the usage is NOT recommended
2019-02-10 22:24:18 -05:00
Evan You
060686d6ea fix: do not cache scoped slots when mixed with normal slots 2019-02-10 22:23:22 -05:00
Evan You
0bad7e2a35 fix: bail out of event blocking for iOS bug
close #9462
2019-02-09 01:16:41 -05:00
Evan You
b2a093fa03 chore: fix e2e test in phantomjs 2019-02-08 16:32:22 -05:00
Evan You
9011b83db7 fix: avoid breaking avoriaz edge case 2019-02-08 16:11:41 -05:00
Evan You
8a800867fe fix: new syntax slots without scope should also be exposed on functional slots() 2019-02-08 14:45:45 -05:00
Evan You
099f3ba600 perf: skip scoped slots normalization when possible 2019-02-08 14:36:36 -05:00
Evan You
7a0dfd0bad perf: cache result from functional ctx.slots() calls 2019-02-08 14:35:37 -05:00
Evan You
0e8560d0fc fix: expose v-slot slots without scope on this.$slots
fix #9421, fix #9458
2019-02-08 13:47:17 -05:00
Evan You
ca57920edb fix: avoid logging same error twice when thrown by user in global handler
fix #9445
2019-02-07 10:17:28 -05:00
Evan You
57bc80a546 fix: empty scoped slot should return undefined
fix #9452
2019-02-07 10:03:13 -05:00
Evan You
dae7e4182f fix: skip microtask fix if event is fired from different document
fix #9448
2019-02-06 15:57:06 -05:00
Evan You
d5ade28652 revert: feat: expose all scoped slots on this.$slots
This reverts commit 0129b0eb12.
2019-02-06 15:22:21 -05:00
Evan You
7bc88f30c3 fix: skip microtask fix in Firefix <= 53
fix #9446
2019-02-06 15:04:24 -05:00
Evan You
96a09aad99 fix(compiler): fix v-bind dynamic arguments on slot outlets
fix #9444
2019-02-06 13:58:09 -05:00
Evan You
4d4d22a3f6 fix: bail out scoped slot optimization when there are nested scopes
fix #9438
2019-02-06 12:29:00 -05:00
Evan You
b6247fc9d7 refactor: split resolve-scoped-slot into its own file 2019-02-06 12:28:10 -05:00
Evan You
24b4640c1f fix: avoid exposing internal flags on $scopedSlots
ref #9443
2019-02-06 11:35:26 -05:00
Evan You
b9de23b100 fix: async component should use render owner as force update context
Previously, an async component uses its lexical owner as the force
update context. This works when the async component is rendered in a
scoped slot because in the past parent components always force update
child components with any type of slots. After the optimization in
f219bed though, child components with only scoped slots are no longer
force-updated, and this cause async components inside scoped slots to
not trigger the proper update. Turns out they should have used the
actual render owner (the component that invokes the scoped slot) as the
force update context all along.

fix #9432
2019-02-05 22:18:05 -05:00
katashin
2ef67f868d chore: fix typo in scheduler.js [ci skip] (#9425) 2019-02-05 11:34:16 -05:00
Evan You
44a4ca33b9 fix: restore slot-scope + v-if behavior
fix #9422
2019-02-04 22:39:35 -05:00
Evan You
0129b0eb12 feat: expose all scoped slots on this.$slots
close #9421
2019-02-04 22:25:19 -05:00
Evan You
b034abf48e fix: always set transformed model value on attrs 2019-02-04 22:03:33 -05:00
Bogdan Luca
66fd3c8dd1 fix(v-model): add value to $attrs if not defined in props (#9331)
fix #9330
2019-02-04 17:43:48 -05:00
nciont
0fb03b7831 fix: avoid blocking first input event in IE when it shouldn't (#9297)
- the original bug in #7138 only happens for `<textarea>`
- the bug doesn't happen if placeholder has empty value

fix #9042, fix #9383
2019-02-04 17:39:41 -05:00
Filipe Amaral
55bfb94a33 fix(compiler): fix inline-template crashing (#9365)
fix #9361
2019-02-04 16:49:27 -05:00
bughit
c27fe24dc6 fix: decode single quotes in html attributes (#9341) 2019-02-04 16:48:24 -05:00
Barthélémy Ledoux
1922e7d4d9 fix(template-compiler): allow comments on the root node in templates (#9408)
In SFC templates, we are allowed to add comments to the root node. If parsing with comments flag
true, we are not anymore. This ignores the root comments in case they cannot be added.

fix #9407
2019-02-04 16:34:32 -05:00
Evan You
b6b42ca8c4 fix: avoid isPromise check when handler return value is Vue instance
fix #9418
2019-02-04 15:14:29 -05:00
Evan You
64f863bbb9 feat: move v-bind.prop shorthand behind flag 2019-02-02 10:49:01 -05:00
Evan You
44a17ba2cd fix: fix child forceUpdate regression
close #9396
2019-01-31 10:24:41 -05:00
Filipe Amaral
539e481f38 fix: fix v-bind:style for camelCase properties with !important (#9386) 2019-01-31 10:08:35 -05:00
Evan You
e632e9a075 fix: allow more enumerated values for contenteditable
close #9397
2019-01-31 09:56:18 -05:00
Evan You
6afd96f2fd chore: fix flow 2019-01-30 21:41:56 -05:00
Evan You
3edb999200 polish: warn against incorrect nested v-slot usage 2019-01-30 21:33:59 -05:00
Evan You
2807fd24b0 fix: template v-slot should work with v-else conditions 2019-01-30 21:30:29 -05:00
Evan You
5851961ca3 refactor: adjust codegen for v-if on scoped slot 2019-01-30 18:12:18 -05:00
Evan You
c9e3a5d1d9 feat: detect and warn invalid dynamic argument expressions 2019-01-28 18:08:37 -05:00
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
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
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
Evan You
42fdf3f837 refactor: ssrPrefetch -> serverPrefetch for more consistent naming 2019-01-18 16:43:17 -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
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
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
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
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
Evan You
b32c4b6935 fix: ensure proxied normal slot uses correct key 2019-01-10 12:32:06 -05:00
Evan You
d855027741 test: more test cases for $slot usage detection 2019-01-10 11:18:06 -05:00
Evan You
1e5174d213 test: add more test case for watch option 2019-01-10 10:33:02 -05:00
Evan You
8b382b3efb fix: allow _ in watch paths (element compat) 2019-01-09 23:46:38 -05:00
Evan You
5fb23d4e29 fix: ensure only nromalize a scoped slot when it is present 2019-01-09 22:47:11 -05:00
Evan You
8eea6b07c4 refactor: avoid using immutable object for $slot
libs like Avoiraz assumes $slots is mutable, need backwards
compat.
2019-01-09 22:03:51 -05:00
Evan You
3be1c5d67e feat(config): expose config.useEventDelegation and default to false 2019-01-09 20:09:50 -05:00
Evan You
02f897a4bc chore: fix flow 2019-01-09 17:41:37 -05:00
Evan You
d2902ca8ec feat: support .property shorthand syntax for v-bind.prop modifier
close #7582
2019-01-09 17:31:04 -05:00
Evan You
23a145952c refactor: adjust #7941 for slots unification 2019-01-09 16:35:39 -05:00
Eduardo San Martin Morote
fb6aa06090 feat(functional): add scopedSlots to context in functional components (#7941) 2019-01-09 16:18:14 -05:00
Evan You
5d52262f1c feat(core): expose all slots on $scopedSlots as functions
After this change, users using render functions can always make use
of slots via `this.$scopedSlots` without worrying about whether the
slot is being passed in as scoped or not.

This should also make it easier to migrate to 3.0 where all slots are
exposed as functions that return Array of VNodes on `this.$slots`.
2019-01-09 15:35:57 -05:00
Evan You
7988a5541c feat: support scoped-slot usage with $slot 2019-01-07 22:26:44 -05:00
Evan You
9132730035 refactor(codegen): simplify conditions 2019-01-07 18:22:22 -05:00
Evan You
583dd01158 refactor(parser): move element self processing to after children
This allows element processing logic to be based on its sub tree
content, e.g. $slot usage detection
2019-01-07 16:47:18 -05:00
Evan You
ce35159d6d chore: fix types 2018-12-26 17:22:32 -05:00
Evan You
c7c13c2a15 fix(scoped-slots): ensure $scopedSlots calls always return Arrays
Also allow render functions to return an Array of a single element.
Close #8056
2018-12-26 17:17:42 -05:00
Jeremy Dubois
d40eb9c288 feat(v-for): support iterables in v-for (#8179) 2018-12-26 15:38:19 -05:00
Evan You
e1abedb9e6 feat(compiler): add whitespace option, deprecate preserveWhitespace option
close #9208
2018-12-26 14:12:34 -05:00
Pak Youngrok
9c718522ba feat(compiler/watch): allow unicode characters in component names and watch paths (#8666)
close #8564
2018-12-26 10:02:54 -05:00
Evan You
325fc7693c feat(compiler): output codeframe in browser compiler 2018-12-21 23:55:48 -05:00
Jason
b31a1aa887 feat(compiler): output source range for compiler errors (#7127)
ref #6338
2018-12-21 21:58:32 -05:00
Evan You
d08b49f520 fix: make transition-group key warning a tip to avoid breaking compilation 2018-12-21 14:46:18 -05:00
Divya
3fca52792e feat: v-bind.sync also listens for kebab-case update event (#8297)
fix #6428
2018-12-21 13:34:17 -05:00
Mathieu TUDISCO
0e4e45ec74 feat: support custom toString() in text interpolation and v-html (#8217)
close #8093
2018-12-21 13:13:48 -05:00
Hiroki Osame
1933ee80ff fix(provide/inject): Merges symbol provides (#7926) 2018-12-21 12:49:21 -05:00
Evan You
5ab028a912 refactor: speed up injection resolution 2018-12-21 12:26:45 -05:00
Zhenfei You
bf0efb02b1 feat(compiler): support deindent: false in vue-template-compiler (#7215)
close #7054
2018-12-21 11:59:33 -05:00
GU Yiling
a981c80d2a feat: support v-html for SVG elements (#8652) 2018-12-20 17:07:34 -05:00
Alejandro Maguey
22ad266151 fix(runtime): DevTools recommendation shows for all browsers (#8638)
Close #8634
2018-12-20 17:05:05 -05:00
Evan You
44940121ee feat(ssr): add custom state serializer option
close #6614
2018-12-20 16:08:58 -05:00
Evan You
ab24285458 feat(ssr): allow opting-out of caching by returning false in serverCacheKey
close #8790
2018-12-20 15:47:15 -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
9432737cf8 fix: cover more cases in v-on inline return value 2018-12-20 12:20:09 -05:00
Evan You
0ebb0f39df fix: return inline invocation return value in v-on handlers
close #7628
2018-12-20 11:32:06 -05:00
Evan You
b00868c5cb refactor: extract async error handling logic 2018-12-20 10:26:56 -05:00
Evan You
35edc1c1e2 refactor: extract isPromise util 2018-12-20 10:09:06 -05:00
Enkot
6e9fcfc81d feat(errors): sync/async error handling for lifecycle hooks and v-on handlers (#8395)
close #6953, close #7653
2018-12-20 10:02:28 -05:00
Evan You
b7f7f27569 feat: use event delegation when possible
This also fixes async edge case #6566 where events propagate too slow
and incorrectly trigger handlers post-patch.
2018-12-19 19:26:58 -05:00
Evan You
080dd971f7 fix(next-tick): revert 60da366
the condition is no longer necessary after reverting back to microtask
only nextTick implementation, and fix #8436
2018-12-19 14:00:15 -05:00
Haoqun Jiang
850555d1fa fix: always use microtasks for nextTick (#8450)
fix #7109, #7546, #7707, #7834, #8109
reopen #6566
2018-12-19 13:29:00 -05:00
Xin Du (Clark)
38e967b806 refactor: tiny cleanup changes (#9193) 2018-12-12 11:41:45 -05:00
Nick Hall
af9e2b3f0f chore: minor comment cleanup (#9191) 2018-12-12 11:41:36 -05:00
Xin Du (Clark)
b06c784b81 fix(ssr): support rendering comment (#9128) 2018-12-12 11:41:08 -05:00
Evan You
847e493768 fix: fix single v-for child optimization 2018-12-11 17:47:59 -05:00
Evan You
4074104fac perf: skip normalization on single child element v-for 2018-12-11 16:51:40 -05:00