Commit Graph

1226 Commits

Author SHA1 Message Date
Evan You
460856510d wip: setup() template refs support 2022-05-30 16:47:00 +08:00
Evan You
1a13c63ff5 wip: provide/inject 2022-05-29 18:43:36 +08:00
Evan You
dae380dc24 wip: renderTriggered/renderTracked 2022-05-29 16:01:38 +08:00
Evan You
075f215edf wip: onTrack/onTrigger debugger options 2022-05-29 15:39:49 +08:00
Evan You
15c5c43ca6 wip: onTrack debugger option 2022-05-29 15:05:35 +08:00
Evan You
9fb4f7d070 wip: effectScope 2022-05-29 14:17:08 +08:00
Evan You
b4c511da8f chore: fix unit tests 2022-05-29 02:35:56 +08:00
Evan You
c9136b1275 wip: apiWatch tests 2022-05-29 02:21:44 +08:00
Evan You
6c1d2efd04 wip: setup() tests 2022-05-28 20:33:12 +08:00
Evan You
cfc2c59132 chore: use isFunction 2022-05-27 23:52:22 +08:00
Evan You
1e4ac46fe5 wip: lifecycle api 2022-05-27 23:40:03 +08:00
Evan You
1f1046b7e5 wip: rename dir to v3 2022-05-27 17:27:17 +08:00
Evan You
f29ad1def5 wip: shallowReactive/shallowReadonly 2022-05-27 12:07:19 +08:00
Evan You
a5ad708ccf wip: readonly 2022-05-27 10:45:28 +08:00
Evan You
b0140bfdab ci: __DEV__ flag for e2e tests 2022-05-26 02:42:48 +08:00
Evan You
a16271280a refactor: simplify implementations
since we output es5, classes are more verbose then necessary
2022-05-26 02:34:15 +08:00
Evan You
05aaa33a45 wip: computed tests passing 2022-05-26 02:14:14 +08:00
Evan You
c4aa8ea66d wip: reactive tests passing 2022-05-26 00:30:31 +08:00
Evan You
ac85a4217e wip: ref tests passing 2022-05-25 15:36:10 +08:00
Evan You
f50a1b84d9 wip(vca): partial ref and watch implementation 2022-05-24 21:49:16 +08:00
Evan You
72aed6a149 workflow: remove eslint, apply prettier 2022-05-23 17:21:17 +08:00
Evan You
04b584ffc1 test: transition tests 2022-05-23 15:15:29 +08:00
Evan You
7618851323 chore: remove stale tests [ci skip] 2022-05-20 18:22:45 +08:00
Evan You
ab110cf8a9 test: e2e tests 2022-05-20 18:21:53 +08:00
Evan You
898d1e19fc test: all ssr tests passing 2022-05-20 16:55:05 +08:00
Evan You
5fb1c9d62a test: fix ssr test imports 2022-05-20 15:16:14 +08:00
Evan You
575f07643d build: separate src and test tsconfig 2022-05-20 14:35:56 +08:00
Evan You
d8c3bbfa44 refactor: remove weex from codebase 2022-05-20 12:17:13 +08:00
Evan You
2d019e4e25 test: partial ssr tests passing 2022-05-20 12:01:16 +08:00
Evan You
23b1fb5503 test: skip transition tests for now 2022-05-20 10:30:13 +08:00
Evan You
fed8c3bfd2 test: all unit tests except transition passing 2022-05-20 10:27:57 +08:00
Evan You
73bcd07194 test: all features except transition pass 2022-05-20 10:12:40 +08:00
Evan You
906907f88d test: all directive tests passing 2022-05-20 09:34:55 +08:00
Evan You
250bc17d51 test: unit/features/component passing 2022-05-20 08:46:15 +08:00
Evan You
29989a1074 test: move transition + keep alive test cases 2022-05-20 08:30:41 +08:00
Evan You
69edc9aec6 test: move __WEEX__ flag to runtime for tests 2022-05-20 08:24:05 +08:00
Evan You
5ec77f32be test: shim done interface for tests 2022-05-20 08:22:26 +08:00
Evan You
63e7d59a03 test: remove global before waitForUpdate 2022-05-20 07:57:07 +08:00
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
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