Yaroslav Sych
96eb745254
fix(hmr): fix HMR for nested non-SFC components ( #4077 )
2022-08-30 02:42:22 -04:00
Evan You
0739f8909a
fix(custom-element): fix event listeners with capital letter event names on custom elements
...
close https://github.com/vuejs/docs/issues/1708
close https://github.com/vuejs/docs/pull/1890
2022-08-30 14:07:35 +08:00
Daniel Roe
c3465c1e88
fix(runtime-core): only set cache for object keys ( #6266 )
2022-08-28 23:10:16 -04:00
Evan You
78c199d6db
fix(watch): flush:pre watchers should not fire if state change causes
...
owner component to unmount
fix #2291
2022-08-15 19:00:55 +08:00
Carlos Rodrigues
8dcb6c7bbd
fix(types): fix on* props incorrect type for TS 4.7 ( #6216 )
...
fix #6052
2022-07-06 04:28:25 -04:00
Carlos Rodrigues
17c50ce18d
build(deps-dev): bump typescript to 4.7.4 ( #6215 )
2022-07-06 04:27:30 -04:00
Evan You
bdffc143ef
release: v3.2.37
2022-06-06 20:08:19 +08:00
Evan You
9734b31c31
fix(sfc): avoid auto name inference leading to unwanted recursion
...
fix #5965
fix #6027
fix #6029
2022-06-06 17:36:49 +08:00
liulinboyi
11e17a1a29
fix(runtime-core): hydrate Static vnode ( #6015 )
...
fix #6008
2022-06-06 16:45:24 +08:00
Evan You
3538f17a07
chore: avoid redundant isRef check
2022-05-30 07:43:18 +08:00
Evan You
439377b220
chore: remove duplicated test + add missing prop decl
2022-05-28 16:17:19 +08:00
Evan You
3cfe5f9fc8
build: include ssrUtils in server-renderer browser build
2022-05-25 13:52:54 +08:00
Thorsten Lünborg
d4d3319c1b
fix(ssr): ensure app can be unmounted when created with createSSRApp() ( #5992 )
...
fix #5990
2022-05-24 08:30:40 -04:00
Evan You
160d5df34a
release: v3.2.36
2022-05-23 10:04:12 +08:00
Evan You
2f07e3460b
fix(compat): fix globalProperties pollution in v3 mode
...
fix #5699
2022-05-23 09:46:00 +08:00
Alex Van Liew
7fb57327b9
fix(compat): fix app-level asset registration affecting other local apps ( #5979 )
2022-05-22 21:41:39 -04:00
Alex Kozack
b5462822d6
fix(sfc/types): allow use default factory for primitive types in `withDefaults` ( #5939 )
...
fix #5938
2022-05-22 20:28:39 -04:00
Evan You
a0c577692f
release: v3.2.35
2022-05-21 01:16:26 +08:00
Carlos Rodrigues
0c7fd13ea6
fix(types): fix typescript error when spreading `$props`( #5968 )
2022-05-20 12:59:29 -04:00
Evan You
8071ef47b5
fix(types): restore DefineComponent argument order
...
This is necessary for compatibility w/ tsc-generated component types
using DefineComponent.
revert #5416
reopen #3796
fix #5967
2022-05-21 00:55:51 +08:00
Evan You
523f6aa363
chore: use existing method
2022-05-19 14:08:55 +08:00
Evan You
3991609087
release: v3.2.34
2022-05-19 12:42:34 +08:00
Evan You
31bdde0480
chore: fix lint
2022-05-19 12:39:48 +08:00
Evan You
939209c6b5
fix(ssr): fix hydration for slot with empty text node
...
fix #5728
2022-05-19 12:35:29 +08:00
Carlos Rodrigues
7c8f4578e9
fix(types): fix `defineComponent` inference to `Component` ( #5949 )
2022-05-18 19:34:35 -04:00
Cédric Exbrayat
3e2850fa6c
fix(types): export ComponentProvideOptions ( #5947 )
2022-05-18 19:32:20 -04:00
Evan You
595263c0e9
fix(ssr/teleport): support nested teleports in ssr
...
fix #5242
2022-05-18 18:13:08 +08:00
Evan You
84f0353511
test: hydration test case for component w/ teleport root
2022-05-18 17:27:53 +08:00
Evan You
cdda49bbfb
fix(runtime-core): adjust force diff of dev root fragments
...
fix #5946
2022-05-18 16:36:00 +08:00
Evan You
b60cff052c
fix(ssr): fix hydration error when teleport is used as component root
...
fix #4293
2022-05-18 12:18:12 +08:00
Bulat Aykaev
0841b9b524
fix(keep-alive): fix keep-alive rendering when placed in vnode branch
...
fix #4817
2022-05-18 10:48:58 +08:00
Evan You
7fd761e577
release: v3.2.34-beta.1
2022-05-17 12:53:51 +08:00
edison
2a9e9a4096
refactor(runtime-core): extract function `isReservedPrefix` ( #3265 )
...
* chore(runtime-core): extract function isReservedKey
* chore: improve code
Co-authored-by: Evan You <yyx990803@gmail.com>
2022-05-13 04:52:19 -04:00
edison
40794c80ca
refactor(runtime-core): extract type SetRootFn ( #3209 )
2022-05-13 04:48:20 -04:00
zs
0c07f12541
chore: warn when mounting different apps on the same host element ( #5573 )
2022-05-12 21:09:18 -04:00
edison
220f255fe9
fix(watch): fix watching multiple sources containing shallowRef ( #5381 )
...
fix #5371
2022-05-12 20:20:04 -04:00
小刘(liulinboyi)
71066b5afe
fix(v-model): fix case where .trim and .number modifiers are used together ( #5842 )
...
fix #5839
2022-05-12 19:52:16 -04:00
huangcheng
a3881299e9
fix(runtime-core): handle NaN identity check in v-memo ( #5852 )
...
fix #5853
2022-05-12 19:49:51 -04:00
Evan You
d36ca4d80e
fix(runtime-core): clone root vnode before inheriting directives
2022-05-13 07:29:37 +08:00
Cédric Exbrayat
9ecee16f89
chore: add no-debugger eslint rule ( #5906 )
2022-05-12 19:10:00 -04:00
Evan You
ba17792b72
fix(runtime-core): fix missed updates when passing vnode to <component :is>
...
fix #4903
2022-05-12 17:52:17 +08:00
Evan You
9309b044bd
fix(ssr): fix hydration error for slot outlet inside transition
...
fix #3989
2022-05-12 15:06:32 +08:00
Evan You
da49c863a2
fix(keep-alive): fix unmounting late-included components
...
fix #3648
based on #3650
2022-05-12 11:52:54 +08:00
Evan You
20ed16f68c
fix(keep-alive): invoke initial activated hook for async components
...
revert #5459
fix #5095
fix #5651
2022-05-12 11:29:26 +08:00
Evan You
9d815d28ad
chore: remove dbeugger [ci skip]
2022-05-12 10:38:40 +08:00
HeYunfei
b5b103a736
chore(types): delete @ts-ignore or use @ts-expected-error instead ( #3669 )
...
Co-authored-by: heyunfei.i <heyunfei.i@bytedance.com>
2022-05-11 20:40:59 -04:00
Zardddddd60
eed3973459
chore(runtime-code): delete outdated test case ( #3036 )
2022-05-11 20:25:06 -04:00
edison
f1d1cdbb69
fix(runtime-core): fix activated hook when using async component with KeepAlive ( #5459 )
...
fix #5095
fix #5651
2022-05-11 20:19:11 -04:00
Johnson Chu
c901dca5ad
feat(types): avoid props JSDocs loss by `default` option ( #5871 )
2022-05-11 07:37:49 -04:00
Evan You
425310e8b6
fix(transition/v-show): ensure transition is in persisted mode when used with v-show
...
fix #4845
close #4852
2022-05-11 19:22:55 +08:00
Evan You
2bab639683
fix(runtime-core): fix directive inheritance on dev root fragment
...
fix #5523
2022-05-11 18:02:31 +08:00
Kael
fec12d7dcc
fix(runtime-core): transition hooks can be arrays of functions ( #5177 )
2022-05-10 21:56:57 -04:00
edison
cd659fc86f
fix(ssr): should de-optimize on vnode with PatchFlags.BAIL ( #4818 )
...
fix #4679
fix #5771
2022-05-10 06:35:34 -04:00
Thorsten Lünborg
e4dffe900a
fix(runtime-core): ensure raw slot function is only normalized once ( #5358 )
...
fix : #5343
2022-05-10 04:41:54 -04:00
Evan You
d52907f4eb
fix(runtime-core): ensure consistent identity of $forceUpdate and $nextTick instance methods
...
fix #5556
2022-05-10 14:17:04 +08:00
那里好脏不可以
6042ab0f2f
chore: type [ci skip]
2022-05-09 22:51:51 -04:00
huangcheng
392ca5dd88
chore: fix eslint error ( #5876 )
2022-05-09 22:43:35 -04:00
Evan You
16a0b232d7
chore: remove unused import due to merge conflict resolve mistake
2022-05-10 09:58:28 +08:00
edison
2a44225446
chore(runtime-core): Remove duplicate variable assignments ( #3700 )
2022-05-09 21:42:41 -04:00
edison
762a9e99ce
chore(runtime-core): use `getGlobalThis` when installing HMR API ( #3217 )
2022-05-09 21:40:19 -04:00
qinxiaosen_ccc
292ce69439
chore: remove outdated type comment ( #5103 )
2022-05-06 06:44:28 -04:00
zhangenming
b9484543db
refactor(reactivity): make some expression simpler ( #5131 )
2022-05-06 06:42:22 -04:00
Zclhlmgqzc
98b821d94a
fix(types): preserve and expose original options on defineComponent return type ( #5416 )
...
fix #3796
2022-05-06 05:44:05 -04:00
Evan You
67099fe202
fix(runtime-core): ensure consistent behavior between dev/prod on invalid v-for range
...
close #5867
2022-05-06 16:49:15 +08:00
Evan You
74d2a76af6
fix(watch): fix flush: pre watchers triggered synchronously in setup
...
fix #5721
2022-04-15 18:08:44 +08:00
Evan You
56879e6b23
release: v3.2.33
2022-04-14 18:14:37 +08:00
Evan You
62eba63172
fix(transition): handle transition for v-if branches with comment
...
fix #5675
2022-04-14 18:06:52 +08:00
edison
767d212d20
fix(transition): fix broken leave transition on dev root fragment ( #5268 )
2022-04-14 05:10:41 -04:00
Thorsten Lünborg
71c9536625
fix(runtime-core): ensure custom events are not emitted anymore after unmount. ( #5679 )
...
close #5674
2022-04-13 23:47:24 -04:00
Evan You
f641c4b228
fix(runtime-core): fix use of non-existent-in-prod internal property in defineProperty trap
...
fix #5710
2022-04-14 10:00:53 +08:00
edison
f4d2c9fc6a
fix(custom-elements): work with async component + slots ( #4657 )
...
close #4639
2022-04-13 05:58:29 -04:00
Thorsten Lünborg
1612971471
fix(compat): copy additional properties for functions bound via globalProperties ( #4873 )
...
close #4403
2022-04-13 05:53:07 -04:00
宋铄运 (Alan Song)
c6eb3cccce
build: improve treeshakeability ( #5682 )
2022-04-13 05:39:02 -04:00
Thorsten Lünborg
053c65bc5e
dx(suspense): warn when using async setup when not inside a Suspense boundary ( #5565 )
...
close #3649
2022-04-13 05:36:43 -04:00
Evan You
f4f5e80a19
release: v3.2.32
2022-04-12 16:07:43 +08:00
Thorsten Lünborg
f44087e171
fix(runtime-core): ensure custom directive instance properly exposes properties on closed instances. ( #5022 )
...
fix #5018
2022-04-12 03:54:03 -04:00
lidlanca
cee1eafb4d
fix(runtime-core/template-ref): named ref in v-for regression fix ( #5118 )
...
close #5116
close #5447
close #5525
2022-04-12 03:28:40 -04:00
Evan You
7efb9dba30
refactor: remove use of Object.assign
...
TS already transpiles spread to Object.assign with target:es2016
2022-04-12 15:22:11 +08:00
Yuchao
d121a9bc7e
fix(runtime-core): Avoid mutating original options object in createApp ( #4840 )
...
fix #4398
2022-04-12 03:14:23 -04:00
Evan You
4311dddfa7
fix(transition): ensure flattened transition group children inherit parent keys
...
close #4718
close #5360
close #5392
2022-04-12 15:06:46 +08:00
Evan You
68bb8f2529
chore: remove debugger
2022-04-12 14:47:15 +08:00
iwusong
8eceabd14e
fix(runtime-core): fix event listener as dynamicProp is added erroneously to props ( #5517 )
...
fix #5520
2022-04-12 02:42:00 -04:00
Evan You
b2b6b6ff62
chore: bump vite & esbuild
2022-04-12 14:29:49 +08:00
Guillaume Chau
1070f127a7
fix(devtools): perf: use high-resolution time
2022-03-09 14:30:24 +01:00
lidlanca
1574edd490
fix(runtime-core): allow spying on proxy methods regression ( #5417 )
...
fix #5415 (regression by #4216 )
2022-02-13 20:40:12 -05:00
Evan You
d56dec6b4a
release: v3.2.31
2022-02-12 16:41:52 +08:00
Cédric Exbrayat
8457d8b980
fix(runtime-core): allow spying on proxy methods ( #4216 )
...
Since Jest v26.6.1, the mock method changed (see this commit 30e8020362
) to rely on `Object.defineProperty` in some cases.
This breaks spying on proxy's methods, because even if Jest is properly calling `Object.defineProperty`, the cached value in the `get` section of the proxy is never updated, and the spy is in fact never used.
This is easily reproducible as vue-next already uses a version of jest with these changes.
This is blocking projects (like vue-test-utils-next and vue-cli) to update to recent Jest versions.
This commit adds a `defineProperty` method to the proxy handler, that properly updates the defined value in the cache.
2022-02-12 03:35:05 -05:00
Anthony Fu
0342fae8ad
fix(ssr): always hydrate children for HMR ( #5406 )
...
fix #5405
2022-02-12 03:24:19 -05:00
Evan You
15adf251ab
release: v3.2.30
2022-02-07 14:14:53 +08:00
Evan You
ce34d9114e
chore: remove v3.vuejs.org references
2022-02-07 13:13:26 +08:00
Evan You
60cf175d88
feat(ssr): support custom directive getSSRProps in optimized compilation
...
close #5304
2022-02-04 08:58:31 +08:00
Evan You
6b6889852f
release: v3.2.29
2022-01-23 22:02:23 +08:00
Evan You
283df0ad68
release: v3.2.28
2022-01-21 16:15:13 +08:00
btea
63210fe41a
refactor: includes instead of indexOf ( #5117 )
2022-01-21 02:36:48 -05:00
Soha Jin
72130ac7b5
fix(compat): convertLegacyVModelProps should merge model option in mixins ( #5251 )
2022-01-21 02:02:02 -05:00
Yugang Cao
92e04a651f
chore: type improvements ( #5264 )
2022-01-21 01:56:20 -05:00
Thorsten Lünborg
97f6bd942f
fix(compat): ensure fallthrough *Native events are not dropped during props update ( #5228 )
2022-01-21 01:21:42 -05:00
Yugang Cao
e603fd258c
chore: fix typo ( #5261 ) [ci skip]
2022-01-21 01:18:34 -05:00
Bruno Perel
e8022755ae
chore: fix typo ( #5282 ) [ci skip]
2022-01-21 01:16:19 -05:00
Stanislav Lashmanov
d0b9708620
fix(compat): simulate Vue 2.6.14 version in compat build ( #5293 )
...
Some Vue plugins that are actually compatible with the `vue-compat` won't work because of the version check. Right now `vue-compat` returns 3x version for the legacy method of checking Vue version via `Vue.version`. This PR instends to simulate Vue 2 version in those instances and instead return a 2x-compatible version: `2.6.14-compat:3.x.x`.
2022-01-21 01:15:35 -05:00