Commit Graph

1138 Commits

Author SHA1 Message Date
Evan You 52627b95ce test: jasmine.createSpy -> vi.fn 2022-05-20 07:56:02 +08:00
Evan You 8e672c4251 test: first full test suite passing 2022-05-20 07:29:25 +08:00
Evan You 972d8066d7 test: migrate tests to vitest (wip) 2022-05-19 18:21:31 +08:00
Evan You 0b56077080 build: remove deps 2022-05-19 16:29:22 +08:00
David Welch e2f1ce06cf chore: cleanup tweaks that would affect JS; rolled back packages folder to @pikax output 2022-05-04 15:16:17 -06:00
David Welch 40dccfedd1 chore: fix test harness; most of the tooling + test harness is happy; coverage still needs fixing 2022-05-03 11:04:55 -06:00
David Welch cf8b16568d merge 2022-05-01 15:13:36 -06:00
David Welch be4b617942 chore: cleanup on tests; babel preset for typescript help 2022-05-01 14:37:05 -06:00
Carlos Rodrigues ee5243fdcc chore: fix tests 2022-04-30 09:07:01 +01:00
David Welch 534a0aa863 chore: convert tests to typescript 2022-04-29 15:43:25 -06:00
David Welch ec1f7309f3 chore: merge 2022-04-29 14:06:13 -06:00
Carlos Rodrigues da64b4a41f Merge branch 'dev' into move_to_typescript
# Conflicts:
#	dist/vue.common.dev.js
#	dist/vue.common.prod.js
#	dist/vue.esm.browser.js
#	dist/vue.esm.browser.min.js
#	dist/vue.esm.js
#	dist/vue.js
#	dist/vue.min.js
#	dist/vue.runtime.common.dev.js
#	dist/vue.runtime.common.prod.js
#	dist/vue.runtime.esm.js
#	dist/vue.runtime.js
#	dist/vue.runtime.min.js
#	packages/vue-server-renderer/basic.js
#	packages/vue-server-renderer/build.dev.js
#	packages/vue-server-renderer/build.prod.js
#	packages/vue-server-renderer/client-plugin.js
#	packages/vue-server-renderer/server-plugin.js
#	packages/vue-template-compiler/browser.js
#	packages/vue-template-compiler/build.js
#	packages/weex-template-compiler/build.js
#	packages/weex-vue-framework/index.js
#	src/compiler/codegen/index.ts
#	src/core/components/keep-alive.ts
#	src/core/instance/lifecycle.js
#	src/core/instance/render-helpers/render-slot.ts
#	src/core/instance/state.ts
#	src/core/observer/watcher.ts
#	src/core/vdom/helpers/normalize-scoped-slots.ts
#	src/core/vdom/patch.ts
#	src/platforms/web/runtime/modules/events.ts
#	src/platforms/weex/entry-framework.ts
#	src/server/webpack-plugin/client.js
#	src/server/webpack-plugin/server.ts
#	src/server/webpack-plugin/util.ts
#	yarn.lock
2022-04-29 19:40:58 +01:00
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
pikax 87afa0687c Merge branch 'dev' into move_to_typescript 2021-04-07 14:43:13 +01:00
pikax 3fd8bb4e0f fix test:weex 2021-04-07 14:41:48 +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 9c70fc0ec3 fix unit tests 2021-04-03 17:32:18 +01: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