Commit Graph

5533 Commits

Author SHA1 Message Date
Evan You cd28172578
fix(useId): properly mark async boundary for already resolved async component 2024-07-24 23:08:56 +08:00
Evan You 2a55f2267d
test: add test case for useId 2024-07-24 22:50:31 +08:00
Evan You 1b8e197a5b
fix(suspense/hydration): fix hydration timing of async component inside suspense
close #6638
2024-07-24 22:15:25 +08:00
Evan You e255c31c88
refactor: remove unnecessary else 2024-07-24 21:58:04 +08:00
三咲智子 Kevin Deng a8248cf152
Merge remote-tracking branch 'upstream/minor' 2024-07-19 18:52:32 +08:00
Evan You ee11f43623
release: v3.5.0-alpha.3 2024-07-19 18:14:31 +08:00
Evan You 66579ea544
chore: Merge branch 'main' into minor 2024-07-19 18:07:42 +08:00
Evan You 73ef1561f6
feat(runtime-core): useId() (#11404) 2024-07-19 18:06:02 +08:00
Evan You 422ef34e48
release: v3.4.33 2024-07-19 17:24:34 +08:00
edison 1b81d14bfd
refactor(runtime-core): remove attrsProxy and slotsProxy from instance (#11390) 2024-07-19 17:02:14 +08:00
Tycho 5df67e3675
fix(runtime-dom): handle undefined values in v-html (#11403) 2024-07-19 16:52:03 +08:00
Evan You 3f8cbb2379
chore: move useTemplateRef tests 2024-07-19 15:50:20 +08:00
Evan You 68bb48c04e
refactor: move useTemplateRef file 2024-07-19 10:50:06 +08:00
Evan You 4c03ab2224
test(teleport): test for accessing template ref inside teleport in mounted 2024-07-18 21:15:27 +08:00
Evan You 59a3e88903
feat(teleport): support deferred Teleport (#11387)
close #2015
close #11386
2024-07-18 21:06:48 +08:00
Evan You 3ba70e49b5
feat: useTemplateRef() 2024-07-17 18:20:23 +08:00
Evan You 0ae7316008
chore: update comments for proxyRefs 2024-07-17 18:01:13 +08:00
Evan You f15ba2c2e2
chore: Merge branch 'main' into minor 2024-07-17 17:32:31 +08:00
Evan You fd5c001ec7
release: v3.4.32 2024-07-17 17:07:05 +08:00
yangxiuxiu f1bb0aef08
fix(runtime-core): do not emit when defineModel ref is set with same value (#11162)
close #11125
2024-07-17 16:46:10 +08:00
linzhe 3e9e32ee0a
fix(runtime-dom): properly handle innerHTML unmount into new children (#11159)
close #9135
2024-07-17 16:37:14 +08:00
Zhaolin Liang b287aeec3e
fix(compiler-sfc): correctly resolve type annotation for declared function (#11279)
close #11266
2024-07-17 15:06:14 +08:00
Evan You 3dc5a1ad98
test: test case for #11286 2024-07-17 14:29:54 +08:00
Evan You c10e40a217
fix(hydration): fix tracking of reactive style objects in production
close #11372
2024-07-17 12:14:25 +08:00
Evan You 0fd6193def
fix(compiler-sfc): should properly walk desutructured props when reactive destructure is not enabled
close #11325
2024-07-17 11:41:58 +08:00
Tycho a509e30f05
fix(reactivity): ensure `unref` correctly resolves type for `ShallowRef` (#11360)
close #11356
2024-07-17 10:09:57 +08:00
Evan You f476b7f030
feat(runtime-core): add app.config.throwUnhandledErrorInProduction
close #7876
2024-07-17 10:05:09 +08:00
Evan You 3ee7b4c7b1
fix(runtime-core): avoid recursive warning
close #8074
2024-07-16 18:05:44 +08:00
Evan You 8655ced480
fix(teleport): skip teleported nodes when locating patch anchor
close #9071
close #9134
close #9313

Tests reused from #9313
2024-07-16 17:17:25 +08:00
LiuSeen 50ddafe91b
fix(reactivity): shallowReactive map "unwraps" the nested refs (#8503)
fix #8501
fix #11249
2024-07-16 15:07:06 +08:00
Linghao Su 2d854414fa
test(runtime-core): test effectscope instance null (#8397) 2024-07-16 11:40:53 +08:00
Evan You c0b9bd125c
chore: format 2024-07-16 11:09:34 +08:00
Evan You f44c3b37d4
fix(hydration): handle consectuvie text nodes during hydration
close #7285
close #7301
2024-07-16 11:09:00 +08:00
fang-ng4 ae52a371e5
test: edge case for decodeHtmlBrowser (#11339)
Co-authored-by: unknown <fangliang@qq.com>
2024-07-15 22:36:48 +08:00
Vlad fc205bf4de
perf(server-render): avoid unnecessary checks in `createBuffer` (#11364) 2024-07-15 22:31:27 +08:00
skirtle b0aa234e5e
fix(runtime-core): use separate prop caches for components and mixins (#11350)
Co-authored-by: Red Huang <gcaaa31928@gmail.com>

close #7998
2024-07-15 21:56:37 +08:00
_Kerman c8b9794575
fix(hmr): hmr reload should work with async component (#11248) 2024-07-15 21:54:53 +08:00
renovate[bot] f1aae57dfe
chore(deps): update all non-major dependencies (#11357)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-15 16:22:03 +08:00
三咲智子 Kevin Deng 6608bb3197
test(compiler-vapor): add temporary test TODO 2024-07-15 01:20:28 +08:00
XiaoDong e552ed2e9f
test(runtime-vapor): rendererElement test (#256)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-07-14 17:17:20 +00:00
XiaoDong 8941779f9d
test(runtime-vapor): errorHandling (#245)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-07-14 17:15:39 +00:00
GaoNeng d14c5d93d2
test(runtime-vapor): globalProperty (#255)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-07-14 17:10:29 +00:00
Evan You d343a0dc01
fix(v-once): properly unmount v-once cached trees
close #5154
close #8809
2024-07-13 21:38:32 +08:00
Evan You 3107b57e2e
refactor: isVNode -> isVOnce 2024-07-13 21:07:45 +08:00
Evan You 2815531fd5
refactor: memoIndex -> cacheIndex 2024-07-13 21:05:06 +08:00
Evan You aef807746a
refactor(compiler): move patchFlag text generation to codegen phase 2024-07-13 19:40:04 +08:00
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
Vlad 05779a70bd
perf(server-renderer): optimize `unrollBuffer` by avoiding promises (#11340) 2024-07-12 22:39:21 +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 0ac0f2e338
workflow: use pnpm catalog for workspace deps (#11317)
ref https://pnpm.io/catalogs
2024-07-08 20:06:37 +08:00
renovate[bot] e84b807cf2
fix(deps): update dependency @vue/repl to ^4.3.1 (#11313)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-08 18:03:27 +08:00
renovate[bot] 328ba41747
chore(deps): update build (#11260)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-08 18:02:53 +08:00
renovate[bot] 933ad9db4b
fix(deps): update dependency postcss to ^8.4.39 (#11259)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-08 18:02:39 +08:00
PhantomPower82 b3c5f0be9c
chore: fix missing parenthesis (#11271) [ci skip] 2024-07-08 18:02:10 +08:00
renovate[bot] 4e45bf1273
chore(deps): update all non-major dependencies (#11255)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-08 17:31:20 +08:00
Evan You 93324b2ec0
chore: refactor scripts to reduce dependencies 2024-07-05 11:51:24 +08:00
zhiyuanzmj b44ca85cb1
feat(compiler-vapor): support v-for without prefixIdentifiers (#259)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-07-03 00:19:40 +08:00
Tycho ae97e50538
chore: move custom matcher types to setup-vitest.ts (#11252) 2024-06-29 22:26:30 +08:00
Evan You f2acd51340
release: v3.4.31 2024-06-28 10:14:29 +08:00
Tycho 746352a14d
fix(compiler-core): handle inline comments with undefined bindings (#11217)
close #11216
2024-06-28 09:48:23 +08:00
Johnson Chu ad22879dd2
test(reactivity): add a failed test for computed (#11243)
to avoid regressions like in #11135
2024-06-28 09:45:34 +08:00
renovate[bot] b1d1f44e9f
chore(deps): update dependency monaco-editor to ^0.50.0 (#11211)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-28 09:36:19 +08:00
Evan You e0df985f03
fix: Revert "fix(reactivity): avoid infinite loop when render access a side effect computed (#11135)"
This reverts commit 8296e19855.
2024-06-28 09:31:14 +08:00
Evan You 6c303eacd1
Revert "fix(reactivity): fix side effect computed dirty level (#11183)"
This reverts commit 3bd79e3e5e.
2024-06-28 09:28:51 +08:00
Evan You 912494318f
chore(types): reduce as any in reactivity 2024-06-26 08:45:25 +08:00
renovate[bot] a1170db9e0
chore(deps): update all non-major dependencies (#11207)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-24 10:53:17 +08:00
Tycho 00341e8d66
chore: fix typo (#11195) [ci skip] 2024-06-24 10:26:17 +08:00
skirtle 0126cfff9d
fix(shared): unwrap refs in toDisplayString (#7306)
close #5578
close #5593
close #11199
close #11201
2024-06-23 09:34:52 +08:00
三咲智子 Kevin Deng 4be49b2620
Merge remote-tracking branch 'upstream/minor' 2024-06-22 23:39:45 +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
三咲智子 Kevin Deng 20b6594d62
revert: test(runtime-vapor): add misc test
This reverts commit 63dbc26f34.
https://github.com/vuejs/core-vapor/pull/246
2024-06-22 17:36:43 +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
_Kerman e102670bde
fix(compiler-core): should not remove slot node with `v-else` (#11150) 2024-06-22 17:08:39 +08:00
Simon He 914f064429
refactor(compat/compiler-core): improve conditional branching (#11185) 2024-06-22 17:05:35 +08:00
Thorsten Lünborg a2e35d682d
fix(runtime-dom): ensure only symbols are explicitly stringified during attribute patching (#11182)
close #11177
2024-06-22 17:04:41 +08:00
Tycho 7936daebce
perf(reactivity): cache tracking value (#11145) 2024-06-22 16:57:25 +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
Tycho 8ae4c293ad
fix(runtime-dom): prevent setting state as attribute for custom elements (#11165)
close #11163
2024-06-22 16:42:12 +08:00
Doctor Wu 3bd79e3e5e
fix(reactivity): fix side effect computed dirty level (#11183)
close #11181, #11169
2024-06-22 16:27:28 +08:00
XiaoDong 63dbc26f34
test(runtime-vapor): add misc test (#246) 2024-06-21 23:51:37 +08:00
三咲智子 Kevin Deng 07444b3266
feat(runtime-vapor): try to support devtools 2024-06-21 14:03:11 +08:00
Rizumu Ayaka 7d90c887c0
fix(runtime-vapor): current instance is not attached to static slots (#247)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-06-21 01:14:34 +08:00
三咲智子 Kevin Deng aa5fe96d17
feat(template-explorer): add vapor option 2024-06-20 19:11:11 +08:00
XiaoDong be6a2d1d35
fix(runtime-vapor): apiLifeCycle circular dependencies (#244) 2024-06-20 14:33:16 +08:00
XiaoDong d4511150a5
test(runtime-vapor): add directives test (#240)
Co-authored-by: Rizumu Ayaka <rizumu@ayaka.moe>
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-06-19 22:36:14 +08:00
Kevin Deng 三咲智子 97f0b3bc33
refactor: component slots (#238)
Co-authored-by: Doctor Wu <doctorwu@moego.pet>
Co-authored-by: Rizumu Ayaka <rizumu@ayaka.moe>
2024-06-19 01:09:17 +08:00
XiaoDong bbde386a7c
test(runtime-vapor): add apiSetupContext unit test (#237)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-06-19 01:00:16 +08:00
XiaoDong bc04592ca9
test(runtime-vapor): add unit test for config.performance (#234)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-06-18 00:22:56 +08:00
renovate[bot] 97f45f363a
chore(deps): update dependency vite to ^5.3.1 (#11153)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-17 12:04:00 +08:00
renovate[bot] 98a0b42527
chore(deps): update all non-major dependencies (#11152)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-17 11:43:37 +08:00
Doctor Wu 80acfa5030
test(runtime-vapor): add directive test case (#231) 2024-06-16 23:08:18 +08:00
三咲智子 Kevin Deng cf8be999df
Merge remote-tracking branch 'upstream/minor' 2024-06-16 17:01:49 +08:00
XiaoDong 3ac951b5b5
feat(runtime-vapor): implement app.config.performance (#230)
* feat(runtime-capor): add app.config.performance

* refactor: move formatComponentName to component.ts

* refactor: update import in warning.ts

* fix

* refactor

* fix order

---------

Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-06-16 16:50:36 +08:00
Doctor Wu ad3d8fa6b4
test(runtime-vapor): fix type (#229) 2024-06-16 16:50:24 +08:00
三咲智子 Kevin Deng a1797f8861
fix(runtime-vapor): infer component name from registry 2024-06-16 14:22:12 +08:00
Evan You 524e660e35
chore: Merge branch 'main' into minor 2024-06-14 18:15:20 +02:00
Evan You e5ca13a3af
release: v3.4.29 2024-06-14 18:02:36 +02:00
Doctor Wu 8296e19855
fix(reactivity): avoid infinite loop when render access a side effect computed (#11135)
close #11121
2024-06-14 23:51:19 +08:00
Evan You a23e99bedf
fix(compiler-sfc): support @vue-ignore comment on more type sources 2024-06-14 17:46:50 +02:00
Evan You a476692ed2
fix(compiler-sfc): fix parsing of mts, d.mts, and mtsx files 2024-06-14 16:47:24 +02:00
Evan You 4ec387b100
fix(compiler-sfc): fix missing scope for extends error message 2024-06-14 16:46:26 +02:00
Evan You 11cc12b915
fix(build): fix accidental inclusion of runtime-core in server-renderer cjs build
close #11137
2024-06-14 16:13:18 +02:00
Evan You bda5ff1d3f
chore: fix missing type import 2024-06-14 16:04:04 +02:00
Evan You 7c8b12620a
fix(custom-element): support same direct setup function signature in defineCustomElement
close #11116
2024-06-14 15:19:42 +02:00
Evan You 1224caf1ba
chore: format 2024-06-14 12:38:07 +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
Zhaolin Liang 495263a9cb
fix(compiler-sfc): support type resolve for keyof for intersection & union types (#11132)
close #11129
2024-06-14 17:10:46 +08: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
Evan You 04729ba216
fix(compat): only warn ATTR_FALSE_VALUE when enabled
close #11126
2024-06-14 11:03:04 +02:00
Tycho 8cf357ec04
chore(perf): replace startsWith with === (#11124) 2024-06-14 16:09:39 +08:00
Micha Huhn 70773d0098
docs: fix typo (#11105) 2024-06-11 14:19:52 +08:00
Rizumu Ayaka c9241da4fa
feat(runtime-vapor): slot props (#227) 2024-06-10 23:19:39 +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
Xu Wei 188f3ae533
fix(runtime-dom): support Symbol for input value bindings (#10608)
close #10597
2024-06-10 17:01:56 +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
n0099 ec424f6cd9
fix(npm): explicitly add `@vue/reactivity` as dependency of `@vue/runtime-dom` (#10468) 2024-06-10 15:29:37 +08:00
Tycho 80e402975b
refactor(shared): improve handling of out-of-range start and end values in generateCodeFrame (#10883)
related: #10854
2024-06-10 15:28:00 +08:00
cyrilluce bdeac377c7
fix(compile-sfc): Support project reference with folder, (#10908)
close #10907
2024-06-10 15:25:47 +08:00
Zhaolin Liang 2594b1df57
fix(compiler-sfc): support as keyword with template literal types (#11100)
close #10962
2024-06-10 15:19:39 +08:00
renovate[bot] 953e09670a
chore(deps): update build (#11098)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-10 15:16:08 +08:00
renovate[bot] 2438b75ed6
fix(deps): update compiler to ^7.24.7 (#11101)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-10 15:06:09 +08:00
No Two 2c78f8921d
chore: improve compileTemplate warn message (#11085) 2024-06-07 17:30:35 +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
Tycho 293cf4e131
fix(compiler-sfc): improve type resolving for the keyof operator (#10921)
close #10920 
close #11002
2024-06-07 16:27:43 +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
Peixin Liu a88295dc07
fix(custom-elements): compatibility of createElement in older versions of Chrome (#9615)
close #9614
2024-06-06 18:21:28 +08:00
Tycho d04417da41
test(effect): verify cleanupEffect clears multiple dependencies (#9503)
close #5541
2024-06-06 17:52:01 +08:00
chenfan 71c2c0af74
test(reactivity): should not observe well-known symbol keyed properties in has operation (#9174) 2024-06-06 17:41:15 +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
三咲智子 Kevin Deng b023b9b845
test(compiler-vapor): add scopeId test 2024-06-05 04:36:07 +08:00
三咲智子 Kevin Deng 598b55f1e8
test(runtime-vapor): finish expose and inject tests 2024-06-05 04:35:13 +08:00
三咲智子 Kevin Deng bbd1944ce5
test(runtime-vapor): finish createVaporApp unit tests 2024-06-05 04:20:20 +08:00
Fan Pei 3b0a56a9c4
fix(reactivity): pass oldValue in debug info when triggering refs (#8210)
fix vuejs/pinia#2061
2024-06-04 23:25:37 +08:00
iwusong be1e9bf03f
test: test for events when component updating (#7896)
test for #5517
2024-06-04 23:04:11 +08:00
4caabf2cb7
test(reactivity): replace isReactive with isReadonly (#7513) 2024-06-04 22:13:48 +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
Vadim Kruglov 29425df1ac
fix(compiler-core): fix :key shorthand on v-for (#10942)
close #10882
close #10939
2024-06-04 20:18:24 +08:00
Kevin Deng 三咲智子 f94568b2b7
chore(server-renderer): avoid using `s` regex flag (#11048)
for TS 5.5 compat
2024-06-04 20:12:43 +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
renovate[bot] 4aba580670
fix(deps): update playground (#11064)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-04 13:51:14 +08:00
Doctor Wu 8ccfce5ec7
refactor(compiler/runtime-vapor): remove unnecessary slot key (#225) 2024-06-03 22:34:47 +08:00
renovate[bot] 48ccb3a5af
chore(deps): update build (#11057)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-03 19:39:32 +08:00
renovate[bot] a1ff7a80d8
chore(deps): update all non-major dependencies (#11058)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-03 15:23:32 +08:00
Doctor Wu 8a59311a22
perf(compiler-vapor/runtime-vapor): finer update granularity (#222) 2024-06-03 06:48:13 +08:00
Rizumu Ayaka 208dbc6d65
feat(compiler-vapor): v-slot props + v-slot on component (#223)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-06-03 06:41:14 +08:00
三咲智子 Kevin Deng cef446af7a
fix(compiler-sfc): `vapor` attribute on template tag 2024-06-03 03:24:23 +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
Evan You f1cc478819
chore: format 2024-05-31 23:26:16 +08:00
Evan You 537a571f8c
fix(runtime-dom): also set attribute for form element state
close #6007
close #6012
2024-05-31 23:22:42 +08:00
远方os a52a02f43f
fix(v-model): fix the lazy modifier is not reset by other modifications (#8547)
close #8546
close #6564
close #6773
2024-05-31 21:05:41 +08:00
Kevin Deng 三咲智子 34a97edd2c
fix(compiler-sfc): throw error when import macro as alias (#11041) 2024-05-31 17:08:54 +08:00
Rizumu Ayaka b2259a5f92
refactor: general destructuring function (#221) 2024-05-31 15:49:49 +08:00
三咲智子 Kevin Deng 5a0a2bfa9b
refactor: remove optional chaining 2024-05-30 21:46:51 +08:00
三咲智子 Kevin Deng 334e72eeee
Merge remote-tracking branch 'upstream/minor' 2024-05-30 21:41:53 +08:00
Alex Liu f8994da00f
types: improve readability of built-in type (#9129) 2024-05-30 19:41:38 +08:00
Wick f8eba75d0a
chore(reactivity): change literal flag properties to enum flag properties (#10367) 2024-05-30 19:09:04 +08:00
远方os 70f2f283ee
refactor(types/compat): improve the types for $set and $delete (#8719) 2024-05-30 18:27:38 +08:00
Haoqun Jiang 3a0b463a2c
chore: fix typo (DistrubuteRef -> DistributeRef) (#11040) 2024-05-30 18:22:11 +08:00
Wouter 5d258502a0
fix(compiler-core): emit TS-compatible function declaration when requested (#9363)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
2024-05-30 18:19:04 +08:00
Travis 3ea964473d
fix(compiler-core): allow unicode to appear in simple identifiers (#6765)
close #6367
2024-05-30 17:45:11 +08:00
mmis1000 4c74302aae
fix(ssr): fix the bug that multi slot scope id does not work on component (#6100)
close #6093
2024-05-30 17:43:34 +08:00
huangcheng b9ca202f47
fix(compiler-core): v-for expression missing source with spaces should emit error (#5821)
close #5819
2024-05-30 17:24:37 +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
Rizumu Ayaka 868c4294a0
feat: destructuring + nesting in v-for (#217)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-05-29 16:25:08 +08:00
三咲智子 Kevin Deng 00c6e6dc73
refactor(compiler-vapor): inline literal value into template 2024-05-29 16:23:32 +08:00
Kevin Deng 三咲智子 cdb1d1795d
chore: disallow optional chaining (#10919) 2024-05-29 15:03:20 +08:00
Doctor Wu 107569b922
feat(runtime-vapor): resolve assets of components & directives (#214) 2024-05-29 01:43:47 +08:00
三咲智子 Kevin Deng c97dee3e3c
refactor(compiler-vapor): remove Object.entries 2024-05-28 21:31:30 +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
linzhe 87c5443044
fix(compiler-core): should set `<math>` tag as block to retain MathML namespace after patching (#10891)
Co-authored-by: linzhe141 <linzhe141@qq.com>
2024-05-28 14:26: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
Simon He 56f5692fb6
refactor(compiler-sfc): defineOptions avoid redundant conditional judgments (#9453) 2024-05-27 17:59:29 +08:00
chenfan baa656ee41
chore(reactivity): improve readonly/reactive warning message (#9095) 2024-05-27 17:31:11 +08:00
4xi-2000 a501a85a7c
feat(compiler-core): support `Symbol` global in template expressions (#9069) 2024-05-27 17:21:54 +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
白雾三语 a498b4ef15
refactor(server-renderer): slotScopeId scopeId uses optional argument syntax (#7891) 2024-05-27 17:06:48 +08:00
Travis 0f66de910f
chore(sfc-playground): add pnpm usage to download template (#7815) 2024-05-27 17:06:04 +08:00
Haoqun Jiang 07b3c4b786
fix(compat): correctly transform non-identifier expressions in legacy filter syntax (#10896)
close #10852
2024-05-27 17:04:48 +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
renovate[bot] b63566aaeb
fix(deps): update compiler (#11024)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-27 16:51:43 +08:00
edison d1011c07a9
fix(ssr): fix hydration for node with empty text node (#7216) 2024-05-27 16:50:49 +08:00
renovate[bot] b487acdf44
chore(deps): update all non-major dependencies (#11020)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-27 16:27:59 +08:00
Ray 5b8c1afb74
fix(compiler-core): make `ForIteratorExpression`'s `returns` property optional (#11011) 2024-05-27 16:15:54 +08:00
Rizumu Ayaka b5ecb72864
feat: directive lifecycle hooks in `v-for`, `v-if` and component (#123)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-05-27 02:47:51 +08:00
ubugeeei 969f53f2e7
test(runtime-vapor): api lifecycle hooks (#215)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-05-27 02:37:06 +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
白雾三语 bbb5be299b
fix(custom-element): disconnect MutationObserver in nextTick in case that custom elements are moved (#10613)
Closes #10610
2024-05-22 00:14:02 +08:00
Doctor Wu 4e13a57d9c
feat(compiler/runtime-vapor): implement v-slots + v-for / v-if (#207)
Co-authored-by: Rizumu Ayaka <rizumu@ayaka.moe>
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-05-21 08:50:10 +08:00
Rizumu Ayaka 2e2f3e2b96
test(vue-vapor): todomvc e2e test (#115) 2024-05-21 08:43:46 +08:00
renovate[bot] 90cbcfefd1
chore(deps): update all non-major dependencies (#10980)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-20 21:40:41 +08:00
btea fd18ce70b1
fix: correct the type of `<details>`'s `onToggle` event handler (#10938)
Fixes #10928
2024-05-20 19:42:34 +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
三咲智子 Kevin Deng d77c7ade77
feat(runtime-vapor): implement app plugin 2024-05-17 20:54:08 +08:00
Jevon b776f92596
feat: v-once for component and v-for (#201)
* feat: v-once with v-for / v-once for component

* refactor

* refactor

---------

Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-05-17 20:44:58 +08:00
三咲智子 Kevin Deng f5f1150d8a
feat(runtime-vapor): add globalProperties 2024-05-17 20:39:10 +08:00
renovate[bot] 7cef876afa
fix(deps): update compiler to ^7.24.5 (#10924)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-13 17:10:34 +08:00
renovate[bot] 7cb3db6faf
chore(deps): update all non-major dependencies (#10923)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-13 17:09:13 +08:00
三咲智子 Kevin Deng 4f9052358e
fix: pass warn to `toHandlers` only on dev mode 2024-05-13 02:19:11 +08:00
三咲智子 Kevin Deng e2b51d6e7a
feat(compiler-vapor): resolve directive 2024-05-13 02:15:28 +08:00
三咲智子 Kevin Deng 30f98942db
refactor(compiler-vapor): add placeholder for optional argument 2024-05-13 01:35:35 +08:00
三咲智子 Kevin Deng 72589be6aa
refactor(compiler-vapor): simplify generate code fragment 2024-05-12 19:44:38 +08:00
Rizumu Ayaka 9346f885b0
refactor(runtime-vapor): remove optional chaining syntax (#208) 2024-05-12 19:09:31 +08:00
Lulu b3cb392f5c
feat: support usage of `v-once` with `v-if` (#200)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-05-12 18:20:14 +08:00
三咲智子 Kevin Deng 75314f2695
fix(compiler-vapor): don't cache `v-once` 2024-05-12 18:15:44 +08:00
三咲智子 Kevin Deng 76595deefb
refactor(compiler-vapor): simplify ast check 2024-05-12 17:58:11 +08:00
Rizumu Ayaka 0c33ace61c
feat(compiler-vapor): implement basic usage of `v-slot` (#203)
Co-authored-by: Doctorwu <doctorwu@moego.pet>
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-05-12 17:57:00 +08:00
三咲智子 Kevin Deng 1c54cae29a
refactor(runtime-vapor): remove default value 2024-05-12 00:01:27 +08:00
三咲智子 Kevin Deng 639c847c0c
refactor(runtime-shared): move `Data` 2024-05-11 23:14:26 +08:00
三咲智子 Kevin Deng 7cd70505d5
Merge remote-tracking branch 'upstream/minor' 2024-05-11 22:11:30 +08:00
edison b2b5f57c2c
fix(compile-sfc): register props destructure rest id as setup bindings (#10888)
close #10885
2024-05-09 07:43:17 +08:00
Lulu 133d494a01
test(compiler-vapor): slot outlets with props & fallbacks (#199) 2024-05-09 01:04:06 +08:00
Evan You 461946175d
release: v3.4.27 2024-05-06 16:59:48 -07:00
Tycho 10d34a5624
fix(compiler-sfc): handle keyof operator (#10874)
close #10871
2024-05-07 07:16:14 +08: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
btea 481b1b6f38
refactor(types): use explicit modifiers type (#10856) 2024-05-07 06:23:04 +08:00
renovate[bot] 8373350ce5
chore(deps): update build (#10867)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-07 06:22:14 +08:00
renovate[bot] bead21a2f6
chore(deps): update all non-major dependencies (#10866)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-07 06:14:19 +08: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
Cédric Exbrayat 9b82005bf3
test: defineOptions dts tests (#10849) 2024-05-04 04:27:23 +08:00
skirtle c0c9432b64
test(watch): watching a reactive array (#10848) 2024-05-04 04:26:49 +08:00
三咲智子 Kevin Deng b58d6a9ea1
fix(compiler-vapor): empty block 2024-05-04 02:40:04 +09:00
三咲智子 Kevin Deng d376349d09
refactor(runtime-vapor): replace Object.entries with for-in 2024-05-04 02:33:40 +09:00
Rizumu Ayaka 2b0def3ba5
feat(compiler-vapor): slot outlet (#182)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-05-02 23:26:52 +09:00
skirtle 0e3d6178b0
fix(compiler-dom): restrict createStaticVNode usage with option elements (#10846)
close #6568
close #7434
2024-05-02 00:03:17 +08:00
三咲智子 Kevin Deng bfb52502f8
feat(runtime-shared): init 2024-05-01 20:19:25 +09:00
三咲智子 Kevin Deng 1ec90db776
refactor(sfc-playground): add vapor name 2024-05-01 12:29:24 +09:00
Doctor Wu 69580515d9
feat: implement setRef update (#191)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-05-01 03:17:16 +09:00
Rizumu Ayaka 8dea04bd7f
feat(compiler-vapor): component with dynamic arguments (#192)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-05-01 03:11:32 +09: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
三咲智子 Kevin Deng 6f7d219654
fix(runtime-vapor): set raw value for dynamic attrs 2024-05-01 00:09:59 +09:00
Doctor Wu 098b6fcf65
fix(compiler-vapor): create dynamic text node (#193) 2024-04-30 22:28:55 +09:00
Guo c9c9dff805
refactor(perf): assign value in `if` block (#10836) 2024-04-29 18:57:56 +08:00
huangcheng ca7d421e87
fix(compiler-core): add support for arrow aysnc function with unbracketed (#5789)
close #5788
2024-04-29 18:55:58 +08: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 96e8e99304
test: fix test case name 2024-04-29 18:12:27 +08:00
三咲智子 Kevin Deng fb58e65d3d
Merge remote-tracking branch 'upstream/minor' 2024-04-29 17:50:30 +09:00
Evan You 241790937c
release: v3.4.26 2024-04-29 16:36:54 +08:00
Evan You fefce06b41
fix(compiler-core): fix bail constant for globals 2024-04-29 16:21:25 +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
Evan You 09b4df809e
fix(compiler-core): remove unnecessary constant bail check
member expressions and call expressions can only happen when there are identifiers

close #10807
2024-04-29 12:21:38 +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 d2dac0e359
feat(compiler-sfc): enable reactive props destructure by default
Also allow prohibiting usage via config.
RFC: https://github.com/vuejs/rfcs/discussions/502
2024-04-29 10:45:48 +08:00
三咲智子 Kevin Deng e42fecb992
refactor(compiler-vapor): extract new block 2024-04-28 23:05:20 +09:00
三咲智子 Kevin Deng 05f4ade4d9
feat(runtime-vapor): warning with component stack 2024-04-28 22:50:17 +09:00
三咲智子 Kevin Deng aa5d87b394
refactor(compiler-vapor): extract segments of `genMulti` 2024-04-28 03:34:25 +09:00
三咲智子 Kevin Deng 17d598f743
refactor(compiler-vapor): cleanup 2024-04-28 03:14:10 +09:00
三咲智子 Kevin Deng d535c647be
refactor(compiler-vapor): new dynamic info 2024-04-28 03:10:05 +09:00
三咲智子 Kevin Deng 784310d4dc
refactor(compiler-vapor): use class for transform context 2024-04-28 03:10:05 +09:00
三咲智子 Kevin Deng 9b5d23c3e2
refactor(compiler-vapor): register effect argument 2024-04-28 02:12:59 +09: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
Jevon cd582949f2
feat(runtime-vapor): `v-show` for component (#188)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-04-27 00:02:34 +08:00
Jevon 464b498f13
fix(compiler-vapor): check global allowed for identifier (#189)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-04-26 23:25:00 +08:00
三咲智子 Kevin Deng 6b03b47462
fix(compiler-vapor): call withDirectives after created 2024-04-26 23:12:06 +08:00
Evan You 41df25015f
workflow(sfc-playground): fix file renaming by bumping repl
close #10791
2024-04-26 09:26:13 +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