Evan You
f05b3ae0f8
chore: improve comments
2024-07-13 15:40:09 +08:00
skirtle
7fb6eb882b
fix(v-model): component v-model modifiers trim and number when cases don't match ( #9609 )
...
close #4848
close #4850 (based on commits from #4850 )
Co-authored-by: zhaozhongyu <zhaozhongyu@xunlei.com>
Co-authored-by: Evan You <evan@vuejs.org>
2024-07-13 14:57:37 +08:00
Evan You
d76dd9c58d
fix(runtime-core): force diff slot fallback content and provided content
...
fix #7256
fix #9200
fix #9308
close #7266
close #9213
2024-07-12 18:26:11 +08:00
Evan You
685e3f381c
fix(runtime-core): more edge case fix for manually rendered compiled slot
...
close #11336
2024-07-12 17:29:42 +08:00
Evan You
314ce82e47
test: test case for 3d34f406a
/ #10870
2024-07-12 01:25:08 +08:00
Evan You
ee0248accf
fix(runtime-core): errors during component patch should be caught by error handlers
2024-07-12 01:24:17 +08:00
Evan You
3d34f406ac
fix(runtime-core): bail manually rendered compiler slot fragments in all cases
...
Previously this bail was only applied on updates but not on initial mount,
and leads to different patch code paths between mount and update in edge
cases.
close #10870
2024-07-12 00:34:23 +08:00
白雾三语
23cd61423c
chore(repl): avoid duplicate formatter mounts ( #10472 )
...
close #10466
2024-07-11 17:30:41 +08:00
Evan You
de174e1aa7
fix(defineModel): force local update when setter results in same emitted value
...
fix #10279
fix #10301
2024-07-11 17:00:39 +08:00
Evan You
f2acd51340
release: v3.4.31
2024-06-28 10:14:29 +08:00
Tycho
00341e8d66
chore: fix typo ( #11195 ) [ci skip]
2024-06-24 10:26:17 +08:00
Evan You
7d06ca3a83
chore: Merge branch 'main' into minor
2024-06-22 21:05:15 +08:00
Evan You
582cd2e9bc
release: v3.4.30
2024-06-22 20:59:53 +08:00
Evan You
a959781dd6
fix(runtime-core): update devtool __vnode on patch, avoid memory leak during dev
...
close #11192
2024-06-22 20:54:46 +08:00
Evan You
3169c91493
fix(hydration): skip prop mismatch check for directives that mutate DOM in created
...
close #11189
2024-06-22 18:05:45 +08:00
yangxiuxiu
7ad67ced26
fix(hydration): fix css vars hydration mismatch false positive on attr-fallthrough ( #11190 )
...
close #11188
2024-06-22 17:49:25 +08:00
Fernando Fernández
80ba50d74c
refactor(built-ins): remove unused code from Teleport and Suspense components ( #11139 )
2024-06-22 17:10:16 +08:00
XiaoDong
8c4d7f5dd9
chore: remove dead links ( #11173 ) [ci skip]
2024-06-22 16:55:37 +08:00
Tycho
220fe24748
fix(runtime-core): ensure unmount dynamic components in optimized mode ( #11171 )
...
close #11168
2024-06-22 16:54:56 +08:00
Evan You
e5ca13a3af
release: v3.4.29
2024-06-14 18:02:36 +02:00
Evan You
26356264d2
chore: Merge branch 'main' into minor
2024-06-14 12:32:28 +02:00
Evan You
3e89a0da21
release: v3.4.28
2024-06-14 11:30:16 +02:00
Tycho
b557d3fb8a
fix(runtime-core): avoid traversing static children for vnodes w/ PatchFlags.BAIL ( #11115 )
...
close #10547
2024-06-14 17:10:13 +08:00
Micha Huhn
70773d0098
docs: fix typo ( #11105 )
2024-06-11 14:19:52 +08:00
Evan You
df686abb4f
fix(ssr): directive binding.instance should respect exposed during ssr
...
close #7499
close #7502
2024-06-10 17:46:59 +08:00
Evan You
9daf90e29f
refactor(runtime-core): extract getComponentPublicInstance helper
2024-06-10 17:37:32 +08:00
dopamine
612bbf0507
fix(types): improve `app.provide` type checking ( #10603 )
...
close #10602
2024-06-10 16:09:46 +08:00
Tycho
aae2d78875
fix(types/apiWatch): correct type inference for reactive array ( #11036 )
...
close #9416
2024-06-10 16:07:25 +08:00
edison
edf263847e
fix(runtime-core): fix stale v-memo after v-if toggle ( #6606 )
...
close #6593
2024-06-07 17:29:28 +08:00
Rodrigo Pimentel
5afc76c229
fix(hydration): log hydration error even when using async components ( #9403 )
...
close #9369
2024-06-07 15:45:16 +08:00
edison
aa156ed5c4
fix(runtime-core): do not fire mount/activated hooks if unmounted before mounted ( #9370 )
...
close #8898
close #9264
close #9617
2024-06-07 13:48:50 +08:00
tomasvn
32262a9af5
chore: use PropertyKey type ( #11056 )
...
close #8559
2024-06-06 18:23:21 +08:00
Evan You
8d606c44ec
chore: format
2024-06-05 23:41:40 +08:00
Noel De Martin
635a59b96f
fix(types): support generic argument in setup context expose method ( #8507 )
2024-06-05 23:36:52 +08:00
auvred
b310ec389d
fix(runtime-core): fix missed updates when passing text vnode to `<component :is>` ( #8304 )
...
close #8298
2024-06-05 23:08:46 +08:00
Evan You
96e4738334
fix(types): respect props with default on instance type when using __typeProps
2024-06-05 14:19:31 +08:00
iwusong
be1e9bf03f
test: test for events when component updating ( #7896 )
...
test for #5517
2024-06-04 23:04:11 +08:00
edison
671cf297a5
fix(transition): ensure Transition enterHooks are updated after clone ( #11066 )
...
close #11061
2024-06-04 22:07:42 +08:00
AlexVagrant
ef2e737577
fix(runtime-core): fix Transition for components with root-level v-if ( #7678 )
...
close #7649
2024-06-04 22:06:07 +08:00
Evan You
cd0ea0d479
fix(compiler-core): change node hoisting to caching per instance ( #11067 )
...
close #5256
close #9219
close #10959
2024-06-04 20:09:54 +08:00
Thorsten Lünborg
c521f956e1
fix(runtime-core): ensure suspense creates dep component's render effect with correct optimized flag ( #7689 )
...
close #7688
2024-05-31 23:57:37 +08:00
Thorsten Lünborg
c73847f2be
fix(compat): ensure proper handling of render fuction from SFC using Vue.extend ( #7781 )
...
close #7766
2024-05-31 23:49:18 +08:00
Zeke Zhang
36bd9b0a1f
fix(hmr): avoid infinite recursion when reloading hmr components ( #6936 )
...
close #6930
2024-05-31 23:41:13 +08:00
Alex Liu
f8994da00f
types: improve readability of built-in type ( #9129 )
2024-05-30 19:41:38 +08:00
远方os
70f2f283ee
refactor(types/compat): improve the types for $set and $delete ( #8719 )
2024-05-30 18:27:38 +08:00
bqy_fe
189573dcee
feat(types): export more emit related types ( #11017 )
...
Co-authored-by: Evan You <yyx990803@gmail.com>
2024-05-30 11:26:17 +08:00
Evan You
8708a7f1ef
chore: fix lint
2024-05-30 11:25:39 +08:00
Evan You
1d8727ec97
chore: Merge branch 'main' into minor
2024-05-30 11:21:12 +08:00
skirtle
a3e8aafbcc
fix(watch): support traversing symbol properties in deep watcher ( #10969 )
...
close #402
2024-05-30 11:03:44 +08:00
Yi Yang
15ee43f66a
fix(teleport): do not throw target warning when teleport is disabled ( #9818 )
2024-05-30 10:51:30 +08:00
Kevin Deng 三咲智子
cdb1d1795d
chore: disallow optional chaining ( #10919 )
2024-05-29 15:03:20 +08:00
远方os
94b9b37362
test: improve test coverage ( #9203 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
2024-05-28 17:36:29 +08:00
远方os
521988d7e1
types(runtime-core): add `OnCleanup` parameter type in `this.$watch` ( #9371 )
2024-05-28 00:25:07 +08:00
skirtle
7d4e5750ba
dx(runtime-core): log the component object when warning about missing template/render function ( #10263 )
2024-05-27 18:01:25 +08:00
远方os
82458b2239
refactor: replace `Object.assign` with `extend` ( #8988 )
2024-05-27 17:08:14 +08:00
远方os
ae36b1a664
refactor(runtime-core): prevent users from manually calling lifecycle hook function ( #8731 )
2024-05-27 17:07:38 +08:00
Evan You
37f9ef8174
chore: run prettier
2024-05-27 17:03:03 +08:00
nandi95
1ffd5a601b
chore(types): added `getSSRProps` type argument ( #5691 )
2024-05-27 16:56:59 +08:00
edison
d1011c07a9
fix(ssr): fix hydration for node with empty text node ( #7216 )
2024-05-27 16:50:49 +08:00
Haoqun Jiang
530d9ec5f6
chore: correct the comments in KeepAlive.ts ( #11005 )
2024-05-24 16:43:13 +08:00
edison
07764fe330
fix(KeepAlive): properly cache nested Suspense subtree ( #10912 )
...
* fix(KeepAlive): properly cache nested Suspense subtree
* test: add test case
* chore: add comments
* Update KeepAlive.ts
2024-05-24 16:37:38 +08:00
Alexandre Ferrera
9fead52343
fix(compiler-core): change v-for key type to match Object.keys ( #10963 )
...
close #8819
2024-05-20 19:33:18 +08:00
Tycho
9b40d0f25d
fix(shared): ensure invokeArrayFns handles undefined arguments ( #10869 )
...
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
Close #10863
2024-05-20 19:28:22 +08:00
Evan You
461946175d
release: v3.4.27
2024-05-06 16:59:48 -07:00
Stanislav Lashmanov
83661264a4
fix(compat): include legacy scoped slots ( #10868 )
...
close #8869
2024-05-07 07:05:55 +08:00
Evan You
f2c1412e46
fix(hydration): handle edge case of style mismatch without style attribute
...
ref #10786
2024-05-06 15:38:16 -07:00
Evan You
b295cdf4e9
release: v3.5.0-alpha.2
2024-05-03 17:03:13 -07:00
Evan You
801666fdad
chore: add internal flag to work around ts issue
2024-05-03 16:57:47 -07:00
Evan You
908f70adc0
fix(types): fix app.component() typing with inline defineComponent
...
close #10843
2024-05-03 16:29:23 -07:00
Evan You
eae0ccb8e0
chore: re-export deprecated component options types
2024-05-03 16:22:13 -07:00
skirtle
c0c9432b64
test(watch): watching a reactive array ( #10848 )
2024-05-04 04:26:49 +08:00
Evan You
c146186396
fix(types): fix compat with generated types that rely on CreateComponentPublicInstance
...
close #10842
2024-04-30 10:09:06 -07:00
Evan You
124c4cac83
fix(types): props in defineOptions type should be optional
...
close #10841
2024-04-30 09:05:41 -07:00
Thorsten Lünborg
582a3a382b
feat(runtime-core): add app.onUnmount() for registering cleanup functions ( #4619 )
...
close #4516
2024-04-29 18:47:56 +08:00
Evan You
801b8dea3b
chore: Merge branch 'main' into minor
2024-04-29 18:46:20 +08:00
Evan You
241790937c
release: v3.4.26
2024-04-29 16:36:54 +08:00
edison
638a79f64a
fix(runtime-core): properly handle inherit transition during clone VNode ( #10809 )
...
close #3716
close #10497
close #4091
2024-04-29 14:39:14 +08:00
skirtle
e8fd6446d1
fix(runtime-core): attrs should be readonly in functional components ( #10767 )
2024-04-29 14:37:11 +08:00
skirtle
2d56816aa8
refactor: simplify traverse() for deep watchers ( #10795 )
2024-04-29 14:29:55 +08:00
skirtle
d00632b1de
refactor: remove optional chaining ( #10792 )
2024-04-29 14:04:05 +08:00
edison
accf8396ae
fix(Transition): re-fix #10620 ( #10832 )
...
revert #10632
re-fix #10620
close #10827
2024-04-29 13:50:49 +08:00
edison
9c2de6244c
fix(runtime-core): ensure slot compiler marker writable ( #10825 )
...
close #10818
2024-04-29 11:47:40 +08:00
Evan You
47453f102e
types: match CompatVue app.use type to standard version
...
close #5760
2024-04-29 10:58:19 +08:00
Evan You
5590ca3694
release: v3.5.0-alpha.1
2024-04-29 10:49:53 +08:00
Evan You
75c8cf63a1
feat(types): provide internal options for directly using user types in language tools ( #10801 )
2024-04-27 11:48:37 +08:00
Carlos Rodrigues
4cc9ca870c
types(defineComponent): support for GlobalComponents, typed Directives and respect `expose` on defineComponent ( #3399 )
...
close #3367
2024-04-25 16:04:03 +08:00
edison
0e6e3c7eb0
feat(transition): support directly nesting Teleport inside Transition ( #6548 )
...
close #5836
2024-04-25 15:19:53 +08:00
Evan You
0c3a920012
chore: Merge branch 'main' into minor
2024-04-25 10:31:09 +08:00
Evan You
574c3e63bb
release: v3.4.25
2024-04-24 18:37:52 +08:00
Evan You
064e82f585
fix(runtime-core): use normal object as internal prototype for attrs and slots
...
to allow use of hasOwnProperty()
ref 6df53d85a2 (r141304923)
2024-04-24 18:28:49 +08:00
edison
3724693a25
fix(runtime-core): properly get keepAlive child ( #10772 )
...
close #10771
2024-04-24 16:32:39 +08:00
Evan You
9fd1284ca4
chore: Merge branch 'main' into minor
2024-04-22 23:32:45 +08:00
Evan You
958286e3f0
release: v3.4.24
2024-04-22 23:29:58 +08:00
Evan You
a7cf74277e
test: fix test case broken by b93f264
2024-04-22 21:05:00 +08:00
Evan You
b93f264647
fix(runtime-core): props should be readonly via direct template access
...
close #8216
close #10736
2024-04-22 20:47:45 +08:00
Evan You
5f0c6e4a05
chore: Merge branch 'main' into minor
2024-04-19 22:09:34 +08:00
Evan You
cde7f05787
fix(runtime-core): further fix slots _ctx check
...
close #10724
2024-04-18 12:27:15 +08:00
yangxiuxiu
e51ca61ca0
fix(runtime-core): fix edge case of KeepAlive inside Transition with slot children ( #10719 )
...
close #10708
2024-04-18 12:00:06 +08:00
Haoqun Jiang
ea494af993
chore: update to ESLint 9 ( #10705 )
2024-04-17 21:58:35 +08:00
Evan You
46c2b63981
release: v3.4.23
2024-04-16 22:55:56 +08:00
Evan You
6df53d85a2
fix(runtime-core): use same internal object mechanism for slots
...
close #10709
2024-04-16 22:47:24 +08:00
Evan You
6930e60787
fix(runtime-core): fix regression for $attrs tracking in slots
...
close #10710
2024-04-16 21:53:47 +08:00
Evan You
bb5c31e614
chore: Merge branch 'main' into minor
2024-04-16 00:05:37 +08:00
Evan You
b4b856b3f0
release: v3.4.22
2024-04-15 23:59:36 +08:00
Thimo Sietsma
37ba93c213
fix(types): avoid merging object union types when using withDefaults ( #10596 )
...
close #10594
2024-04-15 22:50:34 +08:00
edison
fc99e4d3f0
fix(Transition): ensure the KeepAlive children unmount w/ out-in mode ( #10632 )
...
close #10620
2024-04-15 22:40:38 +08:00
caomingrui
53d15d3f76
fix(runtime-core): handle invalid values in callWithAsyncErrorHandling
2024-04-15 22:37:16 +08:00
edison
2ec06fd6c8
fix(hydration): properly handle optimized mode during hydrate node ( #10638 )
...
close #10607
2024-04-15 21:23:30 +08:00
Evan You
d58d133b1c
fix(compat): fix $options mutation + adjust private API initialization
...
close #10626
close #10636
2024-04-15 19:28:37 +08:00
Evan You
2ae908d00c
chore(types): perform strict es2016 lib check when building dts
2024-04-15 15:52:48 +08:00
Evan You
ca84316bfb
perf(ssr): optimize setup context creation for ssr in v8
2024-04-12 16:02:52 +08:00
Evan You
6af733d68e
perf: optimize component props/slots internal object checks
2024-04-12 14:41:03 +08:00
Evan You
4bc9f39f02
perf(ssr): avoid calling markRaw on component instance proxy
...
The previous behavior invokes the definePropery proxy trap on the
instance proxy and has massive overhead. This change improves Vue
ops/sec by 40% in https://github.com/eknkc/ssr-benchmark
2024-04-12 11:49:45 +08:00
Divyansh Singh
0dea7f9a26
fix(runtime-core): show hydration mismatch details for non-rectified mismatches too when __PROD_HYDRATION_MISMATCH_DETAILS__ is set ( #10599 )
2024-04-02 16:36:52 +08:00
Wes Cook
a653a8c125
chore: fix typo ( #10621 )
2024-04-01 16:20:01 +08:00
丶远方
ab59bedae4
fix(runtime-core): fix errorHandler causes an infinite loop during execution ( #9575 )
...
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
2024-03-19 20:47:52 +08:00
chenfan
d46df6bdb1
perf: add `__NO_SIDE_EFFECTS__` comments ( #9053 )
...
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
2024-03-13 21:48:45 +08:00
Evan You
f66a75ea75
release: v3.4.21
2024-02-28 12:12:15 +01:00
edison
bc37258caa
fix(warning): stringify args in warn handler ( #10414 )
...
close #10409
2024-02-28 19:06:18 +08:00
edison
7c97778aec
fix(suspense): ensure nested suspense patching if in fallback state ( #10417 )
...
close #10415
2024-02-28 19:05:22 +08:00
jods
70196a40cc
perf(reactivity): optimize array tracking ( #9511 )
...
close #4318
2024-02-26 18:25:52 +08:00
Evan You
55660b0cfc
refactor(scheduler): use bitwise flags for scheduler jobs + optimize queueJob ( #10407 )
...
related: https://github.com/vuejs/core-vapor/pull/138
2024-02-26 10:22:12 +08:00
Evan You
58d827cb71
chore: Merge branch 'main' into minor
2024-02-26 10:13:44 +08:00
Evan You
89de26cdcd
release: v3.4.20
2024-02-26 10:07:13 +08:00
Evan You
6c74fb07a7
chore: rename and export DefineSetupFnComponent
2024-02-25 23:38:39 +08:00
Evan You
9a365fe00d
refactor: use more descriptive name for v-show original display key
2024-02-25 21:50:47 +08:00
Evan You
c6defc8df1
chore: remove unused ts-expect-error
2024-02-25 21:50:35 +08:00
Elodie Hill
edbbb6da12
refactor(transition): remove unused getTransitionKey logic ( #10283 )
2024-02-25 21:14:46 +08:00
Wick
ede2e3f030
test: remove unnecessary code in apiCreateApp tests ( #10388 )
2024-02-25 21:11:04 +08:00
Shean de Montigny-Desautels
eadce5b753
fix(types): better typing for direct setup signature of defineComponent ( #10357 )
...
close #8604
close #8855
2024-02-25 21:10:08 +08:00
Wick
76c9c742e9
chore(runtime-core): optimize validateComponentName ( #10378 )
2024-02-25 20:41:08 +08:00
Evan You
b31dd7468b
dx(reactivity): disable recursive computed warning by default
...
Now can be enabled with app.config.warnRecursiveComputed option.
close #10341
2024-02-25 20:38:33 +08:00
edison
0f3da05ea2
fix(suspense): handle suspense switching with nested suspense ( #10184 )
...
close #10098
2024-02-25 20:22:12 +08:00
Evan You
05eb4e0fef
Refactor reactivity system to use version counting and doubly-linked list tracking ( #10397 )
...
Bug fixes
close #10236
close #10069
PRs made stale by this one
close #10290
close #10354
close #10189
close #9480
2024-02-25 16:51:49 +08:00
Evan You
272ab9fbdc
release: v3.4.19
2024-02-13 18:08:22 +08:00
Evan You
995d2fdcca
fix(hydration): fix css vars hydration mismatch false positive on non-root nodes
...
close #10317
test case from #10325
2024-02-13 18:00:23 +08:00
OnlyWick
5f7a0a08b2
chore(errorHandling): directly return value in callWithErrorHandling function ( #10315 )
2024-02-13 17:15:18 +08:00
João Carmona
603a1e1f5a
perf(runtime): improve `getType()` GC and speed ( #10327 )
2024-02-13 11:54:59 +08:00
Evan You
64f431aab0
release: v3.4.18
2024-02-09 10:31:29 +08:00
Evan You
77a804b1d0
fix(dx): warn against reserved keys as prop name
...
close #10281
2024-02-09 08:47:06 +08:00
Evan You
dfb271a293
release: v3.4.17
2024-02-09 08:38:19 +08:00
Evan You
1339330850
release: v3.4.16
2024-02-08 11:45:34 +08:00
yangxiuxiu
75e02b5099
fix(runtime-core): support for nested calls to runWithContext ( #10261 )
...
close #10260
2024-02-07 13:33:44 +08:00
Evan You
eb1b9116d7
revert: perf(templateRef): avoid double render when using template ref on v-for
...
This reverts commit de4d2e2143
.
reopen #9908
close #10210 , close #10234
2024-02-07 13:25:18 +08:00
yangxiuxiu
f0b5f7ed8d
fix(hydration): fix SFC style v-bind hydration mismatch warnings ( #10250 )
...
close #10215
2024-02-06 17:38:41 +08:00
三咲智子 Kevin Deng
53eee72c3a
fix(runtime-core): avoid inlining isShallow ( #10238 )
2024-02-05 11:36:17 +08:00
Evan You
ee4cd78a06
release: v3.4.15
2024-01-18 21:34:34 +08:00
Evan You
de4d2e2143
perf(templateRef): avoid double render when using template ref on v-for
...
close #9908
2024-01-18 21:25:10 +08:00
Evan You
c3087ff2cc
fix: correct url for production error reference links
2024-01-18 20:00:01 +08:00
inottn
6fa33e67ec
fix(runtime-core): should not warn out-of-render slot fn usage when mounting another app in setup ( #10125 )
...
close #10124
2024-01-18 11:45:11 +08:00
Evan You
81d307a1e9
refactor: use shared isAttrRenderable logic between ssr and hydration
2024-01-18 11:23:59 +08:00
Evan You
d16a2138a3
fix(hydration): fix incorect mismatch warning for option with non-string value and inner text
...
close 10140
2024-01-18 11:20:32 +08:00
pengbo
e977c598db
chore: replace -1 to PatchFlags.HOISTED ( #10146 )
2024-01-18 10:48:27 +08:00
Evan You
07922dacc7
release: v3.4.14
2024-01-15 23:41:12 +08:00
renovate[bot]
237cb45319
chore(deps): update lint ( #10112 )
...
* chore(deps): update lint
* [autofix.ci] apply automated fixes
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-01-15 18:15:47 +08:00
Evan You
3a642fb95c
release: v3.4.13
2024-01-13 16:03:45 +08:00
Evan You
ffd0473e0f
release: v3.4.12
2024-01-13 10:41:29 +08:00
Evan You
fd337dddd1
release: v3.4.11
2024-01-12 22:15:16 +08:00
edison
d35b87725a
fix(runtime-core): filter single root for nested DEV_ROOT_FRAGMENT ( #8593 )
...
close #5203
close #8581
close #10087
2024-01-12 22:07:06 +08:00
zhoulixiang
08b60f5d0d
fix(hydration): improve mismatch when client valut is null or undefined ( #10086 )
2024-01-12 17:50:26 +08:00
Evan You
bb6b7a297e
release: v3.4.10
2024-01-11 23:04:20 +08:00
Evan You
3907c87ce2
fix(hydration): should not warn on falsy bindings of non-property keys
2024-01-11 21:07:41 +08:00
Evan You
9636357c89
release: v3.4.9
2024-01-11 18:49:05 +08:00
Evan You
dfd9654665
fix(build): avoid accessing __FEATURE_PROD_DEVTOOLS__ flag in root scope
2024-01-11 18:30:23 +08:00
Evan You
bceccf9e21
chore(build): rename __NODE_JS__ build flag to __CJS__
2024-01-11 18:24:21 +08:00
Evan You
8fda856a82
refactor: split out useModel implementation and tests
2024-01-11 18:04:47 +08:00
Evan You
92514db708
build: add node production/development condition in package exports ( #10036 )
...
follow up of #9977
2024-01-11 18:04:32 +08:00
edison
bcda96b525
fix(suspense): avoid double-patching nested suspense when parent suspense is not resolved ( #10055 )
...
close #8678
2024-01-11 17:27:53 +08:00
Evan You
dcc68ef7d4
fix(hydration): do not warn against bindings w/ object values
2024-01-11 16:18:00 +08:00
Evan You
8d656ce88d
release: v3.4.8
2024-01-11 01:03:51 +08:00
Evan You
5af3987291
fix(hydration): fix class and style hydration mismatch message
...
close #10067
2024-01-11 00:49:46 +08:00
Evan You
70ad4caad7
fix(suspense): fix more suspense patch before resolve edge cases
...
close #10017
2024-01-11 00:37:06 +08:00
Evan You
972facee0d
fix(hydration): improve attr hydration mismatch check for boolean attrs
...
close #10057
close #10060
2024-01-10 14:14:47 +08:00
Evan You
a3725a729c
release: v3.4.7
2024-01-09 18:15:03 +08:00
三咲智子 Kevin Deng
438a74aad8
fix(types): fix functional component for `h` ( #9991 )
...
- stricter children/slots type
- fix emits/`EE` type argument of `FunctionalComponent`
2024-01-09 16:45:05 +08:00
Evan You
2fd3905738
revert: "dx(computed): warn incorrect use of getCurrentInstance inside computed"
...
This reverts commit 324e817ef8
.
2024-01-09 16:37:50 +08:00
zhangenming
64e9c9616d
refactor(runtime-core): use currentRenderingInstance directly
2024-01-09 15:26:07 +08:00
Evan You
7976f7044e
refactor(runtime-core): safer currentInstance reset
2024-01-09 07:22:13 +08:00
Evan You
dc91463eb6
release: v3.4.6
2024-01-08 23:01:54 +08:00
Evan You
7bd4e90506
fix(build): revert "build: add production/development export conditions ( #9977 )"
...
This reverts commit e790e1bdd7
.
close #10012
close #10020
2024-01-08 22:29:08 +08:00
Doctorwu
3bf34b767e
fix(runtime-core): handle fragment with null children ( #10010 )
...
close #10007
2024-01-08 18:48:47 +08:00
Evan You
3c3561e720
fix: fix post watcher fire timing on nested app mounts
...
close #10005
2024-01-08 18:44:28 +08:00
Evan You
d9162dfc2e
fix(scheduler): sort nested postFlushCbs
...
close #10003
2024-01-08 18:20:29 +08:00
Evan You
324e817ef8
dx(computed): warn incorrect use of getCurrentInstance inside computed
...
ref #9974
close #10001
2024-01-08 18:12:40 +08:00
zhoulixiang
2701355e8e
fix(hydration): avoid hydration mismatch warning for styles with different order ( #10011 )
...
close #10000
close #10006
2024-01-08 16:36:27 +08:00
白雾三语
a3fbf2132b
fix(suspense): fix anchor for suspense with transition out-in ( #9999 )
...
close #9996
2024-01-08 15:57:14 +08:00
Doctorwu
68e5cc6ac8
chore(runtime-core): remove console comment ( #9989 )
2024-01-07 03:26:38 +08:00
Evan You
0275dd329d
release: v3.4.5
2024-01-04 17:21:24 +08:00
三咲智子 Kevin Deng
fda51925f4
chore: disallow console statement ( #9986 )
2024-01-04 15:54:48 +08:00
Daniel Roe
e790e1bdd7
build: add production/development export conditions ( #9977 )
2024-01-04 11:24:17 +08:00
Yang Mingshan
d2d89551bb
fix(watch): cleanup watcher effect from scope when manually stopped ( #9978 )
2024-01-04 10:36:13 +08:00
Evan You
f70f7ca9ae
release: v3.4.4
2024-01-03 18:40:28 +08:00
丶远方
fe03b2f8bf
chore(apiWatch): constraint deep passes boolean ( #9952 )
2024-01-03 18:18:45 +08:00
skirtle
10ccb9bfa0
fix(defineModel): support kebab-case/camelCase mismatches ( #9950 )
2024-01-03 18:18:35 +08:00
Yang Mingshan
f300a4001e
fix(watch): remove instance unmounted short circuit in getter of `watchEffect` ( #9948 )
2024-01-03 18:09:53 +08:00
Evan You
a9f781a92c
fix(watch): revert watch behavior when watching shallow reactive objects
...
close #9965
2024-01-03 17:25:24 +08:00
yangxiuxiu
06488047c1
fix(runtime-core): correctly assign suspenseId to avoid conflicts with the default id ( #9966 )
...
close #9944
2024-01-03 17:22:06 +08:00
Evan You
24d77c25ce
perf(watch): avoid double traverse for reactive source
2023-12-31 17:29:58 +08:00
Evan You
8f85b6da44
release: v3.4.3
2023-12-30 21:34:23 +08:00
Evan You
b010cb9939
release: v3.4.2
2023-12-30 19:41:35 +08:00
yangxiuxiu
4f703d120d
fix(runtime-core): support deep: false when watch reactive ( #9928 )
...
close #9916
---------
Co-authored-by: RicardoErii <‘1974364190@qq.com’>
Co-authored-by: Evan You <yyx990803@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2023-12-30 18:52:17 +08:00
Evan You
f787337b47
release: v3.4.1
2023-12-30 09:02:48 +08:00
Evan You
97ce041910
fix(defineModel): support local mutation when only prop but no listener is passed
2023-12-30 08:57:55 +08:00
Carlos Rodrigues
4c20f502ca
chore: use relative import location instead of package ( #9941 )
2023-12-30 08:35:56 +08:00
Evan You
9bc3c7e29c
fix(defineModel): always default modifiers to empty object
...
close #9945
2023-12-30 08:26:48 +08:00
丶远方
4af85835f7
fix(types): fix defineModel watch type error ( #9942 )
...
close #9939
2023-12-30 08:22:56 +08:00
Evan You
d702b66482
release: v3.4.0
2023-12-29 10:50:32 +08:00
Evan You
ef90a99208
release: v3.4.0-rc.3
2023-12-27 10:15:44 +08:00
Evan You
a772031ea8
feat(defineModel): support modifiers and transformers
2023-12-26 22:13:04 +08:00
三咲智子 Kevin Deng
bfe6b459d3
style: update format & lint config ( #9162 )
...
Co-authored-by: 丶远方 <yangpanteng@gmail.com>
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
Co-authored-by: Guo Xingjun <99574369+Plumbiu@users.noreply.github.com>
2023-12-26 19:39:47 +08:00
Evan You
38706e4a1e
fix: also export runtime error strings in all cjs builds
2023-12-26 16:32:53 +08:00
Evan You
8e727d62ab
chore: update new issue url in scheduler error message
2023-12-26 16:15:24 +08:00
Evan You
947aacf5ea
release: v3.4.0-rc.2
2023-12-26 15:52:53 +08:00
Evan You
73ae6adbb1
refactor: adjust warn method treeshaking
2023-12-26 15:26:29 +08:00
Evan You
ee68c525f0
build: avoid exporting setDevTools in global prod build
2023-12-26 11:03:45 +08:00
Evan You
b4ebe7ae8b
fix(warning): ensure prod hydration warnings actually work
2023-12-26 10:52:45 +08:00
Evan You
9cbb27745d
release: v3.4.0-rc.1
2023-12-25 16:42:12 +08:00
agoni1212
e7135f7100
chore: fix mismatching tag in hydration test ( #9888 )
2023-12-22 21:55:11 +08:00
Evan You
e585b0db43
fix(ssr): avoid hydration mismatch warning for classes with different order
2023-12-20 10:48:01 +08:00
Evan You
048dffd7ee
release: v3.4.0-beta.4
2023-12-19 18:23:57 +08:00
Evan You
e8448b018d
fix(ssr): fix hydration prop mismatch check for class on SVG elements
2023-12-19 18:09:42 +08:00
AlanYu
1d79b64ebc
feat(runtime-core): throw real error when scheduler detects infinite loop during dev ( #7447 )
...
close #7437
2023-12-19 16:59:47 +08:00
Evan You
317b783a53
release: v3.4.0-beta.3
2023-12-16 14:41:29 +08:00
Evan You
9f64d2b681
chore: Merge branch 'main' into minor
2023-12-16 14:37:21 +08:00
Evan You
4e7967f016
release: v3.3.12
2023-12-16 14:23:40 +08:00
edison
eb12f211b8
fix(defineModel): ensure trigger effect when prop changed ( #9841 )
...
close #9838
2023-12-16 12:15:30 +08:00
edison
e70f4c47c5
fix(hydration): handle appear transition before patch props ( #9837 )
...
close #9832
2023-12-16 11:55:40 +08:00
Cédric Exbrayat
4070502bd0
test(runtime-core): uncomment assertion in hydration test ( #9843 )
2023-12-15 23:07:45 +08:00
Evan You
f0f6f7cea6
fix(Suspense): fix edge case of Suspense being patched during async HOC child remount
2023-12-15 11:39:50 +08:00
Evan You
c51ab4c765
release: v3.4.0-beta.2
2023-12-14 10:28:34 +08:00
Evan You
e00b160435
release: v3.4.0-beta.1
2023-12-13 18:52:16 +08:00
Evan You
69a2acc6ea
fix(runtime-core): properly pop warning context when mounting components with async setup
2023-12-13 17:57:57 +08:00
Evan You
0db336ff6c
fix(Suspense): properly fix #6416
...
previous fix caused regressions in nuxt
2023-12-13 17:56:58 +08:00
Evan You
33159a5916
fix(hydration): should not warn mismatch for nullish prop
2023-12-13 02:41:49 +08:00
Evan You
aa0c13f637
fix(Suspense): handle switching away from kept-alive component before resolve
...
close #6416
using test from #6467
2023-12-12 23:50:28 +08:00
Evan You
96aeb24d66
chore: remove unnecessary statements
2023-12-12 23:47:38 +08:00
mmis1000
bb0c8899ca
fix(runtime-core): fix suspense crash when patching non-resolved async setup component ( #7290 )
...
close #5993
close #6463
close #6949
close #6095
close #8121
2023-12-12 21:55:15 +08:00
Evan You
e04d821422
fix(ssr): make isInSSRComponentSetup state sharable across copies of Vue
...
This also fixes the issue when rendering async components in
the SFC playground with SSR enabled.
2023-12-12 21:37:52 +08:00
Evan You
f41fd86d5f
fix(hydration): swap client/server labels for hydration mismatch warnings
...
this was swapped in #9098 but lost when merging #5953
2023-12-12 20:05:49 +08:00
三咲智子 Kevin Deng
ef688ba92b
feat(compiler-sfc): promote defineModel stable ( #9598 )
2023-12-12 17:28:40 +08:00
Evan You
74387929cd
chore: update defineModel comment docs [ci skip]
2023-12-12 17:04:16 +08:00
Evan You
f74785bc4a
feat(defineModel): support local mutation by default, remove local option
...
ref https://github.com/vuejs/rfcs/discussions/503#discussioncomment-7566278
2023-12-12 16:47:34 +08:00
Evan You
7e60d1058f
perf: use sync watcher for defineModel local mode
...
ref https://github.com/vuejs/rfcs/discussions/503#discussioncomment-7566278
2023-12-12 13:49:23 +08:00
丶远方
a625376ac8
feat(types): improve event type inference when using `h` with native elements ( #9756 )
2023-12-11 22:10:01 +08:00
Carles Mitjans
a41409ed02
feat(types): support passing generics when registering global directives ( #9660 )
2023-12-11 22:07:24 +08:00
三咲智子 Kevin Deng
fa4969e7a3
feat(types): export ObjectPlugin and FunctionPlugin types ( #8946 )
...
close #8577
2023-12-11 22:04:56 +08:00
Evan You
982a145d38
chore: Merge branch 'main' into minor
2023-12-11 22:03:28 +08:00
丶远方
a6503e3e77
refactor(types): simplify `EmitsToProps` types ( #9788 )
2023-12-11 20:01:36 +08:00
三咲智子 Kevin Deng
096ba81817
feat(types): expose `DefineProps` type
2023-12-09 00:34:28 +08:00
edison
60415b5d67
fix(ssr): fix suspense hydration of fallback content ( #7188 )
2023-12-08 23:06:34 +08:00