Commit Graph

1122 Commits

Author SHA1 Message Date
Si Nguyen 86f8b52822
chore: fix typo (#12360) [skip ci] 2021-11-17 10:16:58 +01:00
180909 93bd4406ac
fix typos (#12348) 2021-11-06 23:43:57 +01:00
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
zrh122 3d29ba863b
fix(v-on): add removing all dom event listeners when vnode destroyed (#10085) 2021-08-05 11:21:12 +02:00
Eduardo San Martin Morote 38f71de380
fix(v-slot): fix scoped slot normalization combined with v-if (#12104) 2021-06-02 14:44:18 +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
Eduardo San Martin Morote e7baaa1205
fix(keep-alive): cache what is really needed not the whole VNode data (#12015)
Co-authored-by: zrh122 <1229550935@qq.com>
2021-04-16 19:19:29 +02:00
contribu 52608302e9
fix(core): fix sameVnode for async component (#11107)
Co-authored-by: mac2 <mac2@example.com>
2021-04-16 17:58:02 +02:00
hello-brsd e4dea59f84
fix(errorHandler): async error handling for watchers (#9484)
Co-authored-by: Eduardo San Martin Morote <posva@users.noreply.github.com>
2021-04-16 17:57:25 +02:00
wangzongxu 3ad60fea73
feat(warn): warn computed conflict with methods (#10119)
Co-authored-by: wangzongxu <wangzongxu@vipkid.com.cn>
2021-04-16 17:56:32 +02:00
Mattia Trapani c6d7a6fce7
fix(v-on): avoid events with empty keyCode (autocomplete) (#11326) 2021-04-16 17:53:45 +02:00
Eduardo San Martin Morote ce457f9f4d
fix(slot): add a function to return the slot fallback content (#12014)
Co-authored-by: zrh122 <1229550935@qq.com>
2021-04-16 17:37:35 +02:00
ygj6 77b5330c54
fix: force update between two components with and without slot (#11795) 2021-04-16 17:34:34 +02:00
zrh122 0603ff695d
fix(warns): modify `maybeComponent` function in parser (#10167)
fixes #10152
2021-04-07 14:38:13 +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
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
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
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
warmsocks 8ead9d2a0d
chore: spelling and grammar (#11481)
Co-authored-by: Shaun Case <shaunc@aja.com>
2020-07-01 11:11:46 +02:00
hareku 841bb084ca
chore: fix typo in element test (#11085) 2020-02-06 17:22:26 +01: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
zrh122 bd6cea0973 test: fix running e2e test on windows (#9909) 2019-04-25 10:35:16 +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 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 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
Decade 2747a65765 test: remove unused code (#9684) 2019-03-13 10:19:19 +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
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
Luxiaosong 1574ade607 test: Add a unit test for "$off event and this event added by $once" (#9550) 2019-02-28 17:54:51 -05: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 03c13de38e refactor: remove unncessary condition 2019-02-28 17:39:10 -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