Commit Graph

5925 Commits

Author SHA1 Message Date
renovate[bot] d07cdead2c
chore(deps): update all non-major dependencies (#12557)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-16 10:48:44 +08:00
LiquidAssContainer 11c053a542
fix(typos): fix comments referencing transformElement.ts (#12551)[ci-skip] 2024-12-16 10:43:01 +08:00
Evan You 6c0e8a8f24
wip(vapor): handle slot fallback when content changes 2024-12-14 22:17:16 +08:00
Evan You 4318129b96
wip(vapor): createIf 2024-12-14 20:37:43 +08:00
Evan You bcb9209c4c
wip(vapor): optimize unmounted children removal 2024-12-14 16:28:05 +08:00
Evan You 76e8d2c4d0
wip(vapor): init feature flags + set devtools when creating vapor app 2024-12-14 16:25:35 +08:00
Evan You c07734debf
wip(vapor): further tweak single root attr fallthrough behavior 2024-12-13 20:23:20 +08:00
Evan You f9a6e8cd58
wip(vapor): handle class / style merging behavior 2024-12-13 18:00:58 +08:00
Evan You 4160b6d567
test(vapor): fix templateRef compiler tests 2024-12-13 09:39:29 +08:00
Evan You 023f72f049
test(vapor): useTemplateRef tests 2024-12-13 09:37:49 +08:00
Evan You 0d1df25f23
wip(vapor): templateRef adjustments 2024-12-12 22:34:35 +08:00
Evan You e38805354d
chore: fix setStyle and tests 2024-12-12 22:02:30 +08:00
Evan You c4b853d997
chore: remove no longer needed file 2024-12-12 21:02:45 +08:00
Evan You 4505727412
wip: refactor vapor vBind codegen 2024-12-12 18:17:29 +08:00
Evan You dfe06f8f4e
wip: cache setProp prev value on element, simplify codegen
Also separate `setClass`/`setClassIncremental` and `setStyle`/
`setStyleIncremental`
2024-12-12 13:18:04 +08:00
Evan You e41858cde4
chore: todos 2024-12-11 14:33:16 +08:00
Evan You 64e007eabe
chore: Merge branch 'main' into vapor 2024-12-11 14:27:54 +08:00
edison 1bb9a0f8c7
refactor: drop recordPropMetadata + merge renderEffect (#301) 2024-12-11 14:02:34 +08:00
Evan You 23fe7f991f
chore: make type check pass 2024-12-11 11:50:17 +08:00
Evan You 92526b06de
chore: fix dts build 2024-12-11 08:55:19 +08:00
Evan You dbdc0aa9dd
chore: make compile type consistent 2024-12-10 21:45:50 +08:00
Evan You b191beb876
chore: fix vapor apiExpose test 2024-12-10 21:39:09 +08:00
Evan You dff54a17fb
test(vapor): componentSlots 2024-12-10 21:36:06 +08:00
Evan You 7f3b883aea
chore: make types pass in vapor directive tests 2024-12-10 19:41:29 +08:00
Evan You 5648dda0c0
test(vapor): componentEmits 2024-12-10 19:37:55 +08:00
Evan You a1276f7577
test(vapor): componentAttrs 2024-12-10 19:22:25 +08:00
Evan You 25989f6ede
chore: update compiler-vapor inline mode snapshots 2024-12-10 18:44:36 +08:00
Evan You 4366a7e213
test(vapor): apiWatch 2024-12-10 18:43:26 +08:00
Evan You 12ef12105b
test(vapor): api expose (partial) 2024-12-10 17:00:35 +08:00
Evan You baf68a0fe4
test(vapor): apiSetupContext 2024-12-10 15:50:57 +08:00
Evan You 217e1e6f86
wip(vapor): make createComponent rawProps/rawSlots accept wider types for internal use 2024-12-10 15:50:49 +08:00
Evan You c2e7312da4
test(vapor): lifecycle (partial) 2024-12-10 15:30:40 +08:00
Evan You 89707e8b5f
test(vapor): inject 2024-12-10 15:19:00 +08:00
Evan You 48fc65f25c
test(vapor): apiCreateVaporApp 2024-12-10 12:49:47 +08:00
Evan You 443ac60394
chore: remove stale test lines 2024-12-10 11:53:35 +08:00
Evan You 08c4967086
wip: avoid iife for vapor prod mode 2024-12-10 08:35:54 +08:00
Evan You c2ff3bd564
chore: fix compat props default test 2024-12-10 08:11:36 +08:00
Evan You ab6f75d1da
test(vapor): skip todo tests 2024-12-10 07:34:23 +08:00
Evan You 527905a85b
test(vapor): errorHandling 2024-12-09 23:42:23 +08:00
Evan You 8540ee4af9
test(vapor): componentProps 2024-12-09 22:04:15 +08:00
Evan You ac43b11897
fix(reactivity): toRefs should be allowed on plain objects 2024-12-09 21:47:55 +08:00
Evan You b7aec139cb
test(vapor): block tests 2024-12-09 20:57:40 +08:00
Evan You ec23ab9e3a
test(vapor): renderEffect 2024-12-09 18:35:41 +08:00
Evan You 2bbb6d2fc5
fix(scheduler): recover nextTick from error in post flush cb 2024-12-09 18:35:28 +08:00
Evan You 2b05c1e906
wip: remove setInheritAttrs codegen 2024-12-09 17:19:16 +08:00
Evan You edde81cf67
wip: respect inheritAttrs 2024-12-09 13:12:37 +08:00
Evan You 4df4624415
chore: make vapor compiler tests pass 2024-12-09 13:09:31 +08:00
Evan You f2b69d79ca
chore: remove non-function-related changes from vapor branch 2024-12-09 09:03:43 +08:00
Evan You 54c29aba9a
wip: vapor hmr reload 2024-12-08 23:37:40 +08:00
Evan You 366dcb7c76
wip: vapor app.unmount + unmounted hooks 2024-12-08 23:18:22 +08:00
Evan You 4f613dcabf
chore: remove vue/vapor 2024-12-08 23:13:20 +08:00
Evan You 83be45ea88
wip: optimize vapor currentInstance setting 2024-12-08 22:47:05 +08:00
Evan You bb0787b8d4
wip: prepare hmr reload 2024-12-08 21:22:51 +08:00
daiwei f7d95ce28d Merge remote-tracking branch 'origin/main' into minor 2024-12-08 19:53:34 +08:00
Evan You 4833c1c96e
wip: vapor hmr rerender 2024-12-08 17:20:34 +08:00
Evan You 6c4018652b
chore: fix vdom slots currentInstance 2024-12-08 16:42:07 +08:00
Evan You e8067f1cd9
wip: prepare hmr for vapor 2024-12-08 16:32:29 +08:00
Evan You 6f5493c677
wip: make dev mode work for sfc generated code 2024-12-08 16:22:23 +08:00
Evan You 7e8edcd9cd
build: add runtime-with-vapor format + fix sfc playground for vapor mode 2024-12-08 15:18:16 +08:00
Evan You 9a8645d0c5
wip: adjust slot props compilation 2024-12-08 11:02:11 +08:00
Evan You f8a7046e65
wip: slot props 2024-12-08 10:16:25 +08:00
Evan You f413e00e43
chore: element -> node 2024-12-07 22:08:08 +08:00
Evan You 407b9abc0b
chore: BlockFn 2024-12-07 22:05:11 +08:00
Evan You aa96762ad4
wip: dynamic slots 2024-12-07 21:56:54 +08:00
Evan You e6d4a24f1f
wip: adjust slots codegen 2024-12-07 18:30:33 +08:00
Evan You 4b6100623f
wip: slots 2024-12-07 15:12:32 +08:00
Evan You 8331aa43c4
wip: avoid proxy when slots are static 2024-12-06 23:11:30 +08:00
Evan You db3151b1a5
wip: avoid including vdom-only public properties map in bundle 2024-12-06 23:06:11 +08:00
Evan You 68aa9bd768
wip: respect rootProps in createVaporApp 2024-12-06 22:50:53 +08:00
Evan You 3ef1656d4a
wip: slots proxy 2024-12-06 22:45:45 +08:00
Evan You 685f7820a1
wip: fix props/attrs bugs 2024-12-06 22:13:48 +08:00
Evan You 238d1817cc
wip: get instance from rawProps to fix proxy handler caching 2024-12-06 21:27:24 +08:00
Evan You e60ec9f399
wip: proxy refs on setup ctx during dev 2024-12-06 11:12:54 +08:00
Evan You ae5ec075ad
wip: component with fallback 2024-12-06 11:10:35 +08:00
Evan You 300bb0859a
wip: fix all runtime-core type errors 2024-12-06 01:19:20 +08:00
Evan You 30e24ce986
wip(vapor): updated/beforeUpdate 2024-12-06 00:55:00 +08:00
Evan You ebe787108d
wip(vapor): mounted/beforeMounted lifecycle hooks 2024-12-05 23:19:51 +08:00
Evan You e23a6a8746
wip: unify currentInstance between vdom and vapor + provide/inject 2024-12-05 23:13:24 +08:00
Evan You ee7a93df27
refactor: split current instance logic to separate file 2024-12-05 21:25:16 +08:00
Evan You 4baaa7bca3
wip: optimize props validation 2024-12-05 17:50:09 +08:00
Evan You fc9aa62248
wip: handle props case matching 2024-12-05 17:33:39 +08:00
Evan You 93a16af08e
wip: vapor component props validation 2024-12-05 16:14:38 +08:00
Evan You 8725954244
wip: should resolve dynamic props first + optimize ownKeys 2024-12-05 13:17:28 +08:00
renovate[bot] c86a08b946
chore(deps): update all non-major dependencies (#12492)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-05 09:22:52 +08:00
Evan You 004e23f9dd
wip: cache normalized options for dev check 2024-12-04 23:50:59 +08:00
Evan You caca46bb73
wip: fix value casting 2024-12-04 23:47:28 +08:00
Evan You 33d1b8bcec
wip: use proxy for static props too 2024-12-04 23:29:01 +08:00
Evan You 23ba438be1
wip(vapor): align compiler with new props runtime behavior 2024-12-04 21:08:12 +08:00
Evan You 59b1aeda51
chore: notes 2024-12-04 15:24:52 +08:00
Evan You b1b3baeb6e
wip: make sfc playground work after refactor + support dev mode 2024-12-04 15:07:40 +08:00
Evan You 3a6915b587
refactor: remove @vue/vapor package 2024-12-04 14:22:26 +08:00
Evan You c73ee16345
refactor: remove runtime-shared 2024-12-04 13:50:54 +08:00
Evan You 4fe05bdd74
wip(vapor): reuse createApp from core 2024-12-04 11:54:26 +08:00
Evan You cc2439c9e6
wip: vapor warning context integration 2024-12-04 10:53:29 +08:00
Evan You ccd3f3f5c6
refactor(reactivity): only setup onTrigger debug flags on assign 2024-12-03 23:26:30 +08:00
Evan You 65fc9769f2
wip: emits 2024-12-03 22:49:28 +08:00
Evan You 72d82353ee
refactor: make core warning and errorHandling vdom/vapor generic 2024-12-03 21:43:18 +08:00
Evan You 4ea66770be
wip: filter emits 2024-12-03 17:20:07 +08:00
Evan You 9d89d7ab27
refactor: expose scheduler for vapor 2024-12-03 16:58:07 +08:00
Evan You 783d8b4d0d
refactor: reuse props logic from core 2024-12-03 16:48:28 +08:00
Evan You f8046a3e1a
wip: attr fallthrough 2024-12-03 13:21:10 +08:00
Evan You 1636dce788
wip: inheritAttrs 2024-12-03 00:30:33 +08:00
Evan You 435ca32ff8
wip: props casting 2024-12-02 23:52:04 +08:00
Johnson Chu 313dc61bef
perf(reactivity): refactor reactivity core by porting alien-signals (#12349) 2024-12-02 21:05:12 +08:00
Evan You 0986051f12
chore: avoid toHandlers not treeshaken 2024-12-02 21:00:52 +08:00
Evan You 41c18ef272
wip: props handling 2024-12-02 20:35:45 +08:00
Evan You 0acafc7b4d
wip: save 2024-12-02 09:36:49 +08:00
Evan You 5828f2441f
perf: use class for SetupContext 2024-12-01 17:37:49 +08:00
Evan You 516d4ed180
chore: revert temporarily commented lines 2024-12-01 17:25:25 +08:00
Evan You f0a8bfd22e
chore: fix test 2024-12-01 17:21:07 +08:00
edison 0196e1a499
perf(runtime-vapor): optimize `setDOMProp` on static tag + key (#294) 2024-12-01 17:04:42 +08:00
Evan You 842f94cc73
perf(vapor): improve component instantiation by using class
Mounting 10k components went from ~100ms to ~60ms with this change.
2024-12-01 16:45:29 +08:00
Rizumu Ayaka f0361bafbb
perf(runtime-vapor): `setup()` returning object is only needed in __DEV__ (HMR) (#296) 2024-11-30 18:32:16 +08:00
edison e61cedf3fd
perf(runtime-vapor): use `setAttr` or `setDOMProp` instead of `setDynamicProp` when possible (#291)
Co-authored-by: Doctor Wu <doctorwu@moego.pet>
2024-11-27 16:55:45 +08:00
Liu Bo 06310e82f5
fix(types): allow return any for Options API lifecycle hooks (#5914)
Co-authored-by: edison <daiwei521@126.com>
2024-11-19 20:29:08 +08:00
renovate[bot] 14f6917c3c
chore(deps): update all non-major dependencies (#12423)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-18 11:30:02 +08:00
renovate[bot] fdaff720d7
fix(deps): update compiler (#12422)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-18 10:31:14 +08:00
Kevin Deng 三咲智子 9a2158d2f0
refactor(vapor): drop `v-memo` (#288)
* refactor(runtime-vapor): drop memo

* drop
2024-11-18 04:51:15 +08:00
三咲智子 Kevin Deng 3f6ce964c7
feat(vapor): support more magic vars 2024-11-16 06:58:26 +08:00
三咲智子 Kevin Deng 81b3d36304
fix(vapor): destructure in `v-for` 2024-11-16 06:33:44 +08:00
三咲智子 Kevin Deng 0c7817ceed
fix(compiler-vapor): stringify number prop value 2024-11-16 04:23:21 +08:00
三咲智子 Kevin Deng 4078206e16
fix(runtime-vapor): attach scope id only to root sub-element 2024-11-16 04:03:33 +08:00
三咲智子 Kevin Deng de3a611eae
fix(runtime-vapor): export types from reactivity 2024-11-16 03:51:08 +08:00
三咲智子 Kevin Deng f6ce3f9d43
Merge tag 'v3.5.13' 2024-11-16 02:48:30 +08:00
三咲智子 Kevin Deng d84510844f
refactor(runtime-vapor): extract fallback component 2024-11-16 02:43:56 +08:00
三咲智子 Kevin Deng 886440d240
test(runtime-vapor): tidy custom directives test 2024-11-16 02:36:38 +08:00
三咲智子 Kevin Deng 30f6eec3c1
refactor(runtime-vapor): re-organize block 2024-11-16 02:24:42 +08:00
Evan You 6eb29d345a
release: v3.5.13 2024-11-15 22:45:28 +08:00
edison 4f8d807822
fix(ssr): handle initial selected state for select with v-model + v-for option (#12399)
close #12395
2024-11-15 22:32:39 +08:00
edison 983eb50a17
fix(templateRef): set ref on cached async component which wrapped in KeepAlive (#12290)
close #4999
close #5004
2024-11-15 22:32:22 +08:00
edison da7ad5e3d2
fix(ssr): avoid updating subtree of async component if it is resolved (#12363)
close #12362
2024-11-15 22:11:21 +08:00
Bulat Aikaev 1f75d4e6df
fix(ssr): ensure v-text updates correctly with custom directives in SSR output (#12311)
close #12309
2024-11-15 22:02:50 +08:00
Tadas 4b479db61d
fix(transition): reflow before leave-active class after leave-from (#12288)
re-fix #2593
2024-11-15 21:36:21 +08:00
linzhe a20a4cb36a
fix(hydration): the component vnode's el should be updated when a mismatch occurs. (#12255)
close #12253
2024-11-15 18:18:58 +08:00
Evan You 352bc88c1b
fix(custom-element): avoid triggering mutationObserver when relecting props
close #12214
close #12215
2024-11-15 17:21:49 +08:00
zhangenming d637bd6c01
perf(reactivity): do not track inner key `__v_skip`` (#11690) 2024-11-15 11:00:24 +08:00
edison 2d78539da3
fix(compiler-dom): properly stringify template string style (#12392)
close #12391
2024-11-15 10:56:08 +08:00
Evan You 54812eacaa
test: add test case for transition memory leaks
from https://github.com/vuejs/core/pull/12190
2024-11-15 10:50:26 +08:00
edison 1022eabaa1
fix(types): defineEmits w/ interface declaration (#12343)
close #8457
2024-11-15 10:46:59 +08:00
edison 660132df6c
fix(Transition): fix transition memory leak edge case (#12182)
close #12181
2024-11-15 10:40:26 +08:00
edison 4aeff318bd
chore(deps): update dependency postcss-selector-parser to v7 (#12289) 2024-11-15 10:37:55 +08:00
edison 70b44ca835
chore(reactivity): remove unecessary array copy (#12400) 2024-11-15 10:37:24 +08:00
三咲智子 Kevin Deng 59975ed36b
feat(runtime-vapor): export createBranch 2024-11-15 04:49:06 +08:00
三咲智子 Kevin Deng 3da5ecfb5f
fix(runtime-vapor): add scope id for fallback component 2024-11-15 04:10:59 +08:00
三咲智子 Kevin Deng c223eb2684
fix(runtime-vapor): switch to fallback when slot is empty 2024-11-15 03:57:46 +08:00
三咲智子 Kevin Deng 7f3ca46523
fix(runtime-vapor): scope id for `v-if` 2024-11-15 01:21:30 +08:00
三咲智子 Kevin Deng faa3e2c0d2
fix(runtime-vapor): `v-if` with inherit attrs 2024-11-15 00:42:54 +08:00
三咲智子 Kevin Deng 7a98f4b565
fix(runtime-vapor): invoke getter for static attrs 2024-11-14 23:59:37 +08:00
edison 8bff142f99
fix(teleport): handle deferred teleport update before mounted (#12168)
close #12161
2024-11-14 20:55:18 +08:00
三咲智子 Kevin Deng af75b64b40
feat: scope id for child component 2024-11-14 20:52:23 +08:00
三咲智子 Kevin Deng 247617612a
feat(vapor): merge inherited attrs with current attrs 2024-11-14 20:21:20 +08:00
linzhe c4312f9c71
fix(runtime-dom): set css vars on update to handle child forcing reflow in onMount (#11561) 2024-11-14 15:58:28 +08:00
Evan You 2d5c5e25e9
fix(runtime-dom): set css vars before user onMounted hooks
close #11533
2024-11-14 15:50:19 +08:00
linzhe 99009eee0e
fix(compiler-core): handle v-memo + v-for with functional key (#12014)
close #12013
2024-11-14 15:14:29 +08:00
edison 37300fc261
fix(v-once): setting hasOnce to current block only when in v-once (#12374)
close #12371
2024-11-14 14:53:55 +08:00
edison bee2f5ee62
fix(reactivity): release nested effects/scopes on effect scope stop (#12373)
close #12370
2024-11-14 14:24:22 +08:00
Evan You 21932840ea
fix(reactiivty): avoid unnecessary watcher effect removal from inactive scope
close #5783
close #5806
2024-11-14 14:12:41 +08:00
Evan You e9f3e6b546
workflow: bench against bundled dist file to avoid import access overhead
ref https://github.com/vitest-dev/vitest/issues/6903
2024-11-14 08:38:48 +08:00
Kevin Deng 三咲智子 c91586528a
feat(runtime-vapor): fallback component (#232)
* feat(runtime-vapor): fallback component

* fix
2024-11-13 16:53:44 +08:00
三咲智子 Kevin Deng f85ac40f6c
chore(compiler-vapor): fix type error 2024-11-13 16:36:23 +08:00
三咲智子 Kevin Deng 39f85ecc21
fix(runtime-vapor): don't overridden attrs in static template
closes #253
2024-11-13 16:16:21 +08:00
三咲智子 Kevin Deng 5f92ff8ca2
feat(vapor): dynamic component 2024-11-13 14:56:39 +08:00
三咲智子 Kevin Deng fab9917ae4
fix(runtime-vapor): component self-reference 2024-11-13 11:00:07 +08:00
三咲智子 Kevin Deng 114d501524
feat(compiler-vapor): support implicit prop in template 2024-11-13 10:12:12 +08:00
三咲智子 Kevin Deng 51d9bbe7f0
fix(compiler-vapor): nested component 2024-11-13 09:28:15 +08:00
三咲智子 Kevin Deng 8ea6e4fb22
fix(vue-vapor): remove compiler version 2024-11-13 09:08:03 +08:00
Kevin Deng 三咲智子 c574faa8f3
refactor(runtime-vapor): simplify directive mechanism (#278)
* feat: custom directive v2

* wip

* fix: directive

* fix

* refactor

* refactor: remove ref for el
2024-11-13 08:41:02 +08:00
三咲智子 Kevin Deng eed7d1d4fd
refactor(compiler-vapor): drop browser build 2024-11-13 08:38:38 +08:00
Evan You b1260e0dd6
Merge remote-tracking branch 'upstream/main' 2024-11-11 17:05:52 +08:00
renovate[bot] b5ff930089
fix(deps): update dependency postcss to ^8.4.48 (#12356)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-11 10:20:54 +08:00
renovate[bot] 7d0dc7394f
chore(deps): update all non-major dependencies (#12316)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-04 09:25:09 +08:00
renovate[bot] ad247b3323
chore(deps): update all non-major dependencies (#12275)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-28 09:17:49 +08:00
renovate[bot] ed01d92571
chore(deps): update all non-major dependencies (#12222)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-22 09:53:31 +08:00
Tycho 657603d7b7
docs: update package name to `@vue/compiler-core` (#12192)[ci skip] 2024-10-17 12:00:03 +08:00
edison 828d4a4439
fix(test): update snapshot (#12169) 2024-10-14 11:24:13 +08:00
btea a038505c65
chore: improve `renderComponentRoot` warn message (#10914) 2024-10-14 10:14:32 +08:00
远方os 4e19a99461
test(shared): improve test coverage (#8456)
Co-authored-by: edison <daiwei521@126.com>
2024-10-14 10:10:27 +08:00
zr 3b5d8d2511
test(defineProps): add intersection type test (#8684)
Co-authored-by: daiwei <daiwei521@126.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-10-14 10:09:13 +08:00
renovate[bot] be9eed2593
chore(deps): update all non-major dependencies (#12164)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-14 10:06:33 +08:00
skirtle 1755ac0a10
perf(runtime-core): use feature flag for call to resolveMergedOptions (#12163)
Reduce bundle size when using `__VUE_OPTIONS_API__: false`
2024-10-14 08:18:18 +08:00
Evan You 770ea67a9c
release: v3.5.12 2024-10-11 21:12:32 +08:00
skirtle c82b66214b
refactor(reactivity): reduce size of collectionHandlers (#12152) 2024-10-11 21:10:09 +08:00
Tycho ea943afe40
fix(runtime-dom): prevent unnecessary updates in v-model checkbox when value is unchanged (#12146)
close #12144
2024-10-11 21:00:08 +08:00
Evan You d82fa611e8
chore: format 2024-10-11 11:25:48 +08:00
KevinXi d96883cf7d
test(reactivity): test for verifying no unnecessary calls of reactive array identity methods (#11328)
related: #9511
2024-10-11 11:24:03 +08:00
Michael Brevard 1ae545a378
fix(hydration): provide compat fallback for idle callback hydration strategy (#11935) 2024-10-11 11:22:01 +08:00
edison 05685a9d7c
fix(types): retain union type narrowing with defaults applied (#12108)
close #12106
2024-10-11 11:17:48 +08:00
山吹色御守 cde2c0671b
fix(compiler): clone loc to `ifNode` (#12131)
fix vuejs/language-tools#4911
2024-10-11 11:07:07 +08:00
山吹色御守 4474c113d1
fix(compiler-sfc): use sass modern api if available and avoid deprecation warning (#11992) 2024-10-11 11:05:54 +08:00
YangLGggggggggg 9da1ac1565
fix(runtime-core): fix required prop check false positive for kebab-case edge cases (#12034)
close #12011
2024-10-11 11:02:58 +08:00
edison 10a46f43c0
chore(runtime-core): warn if use a non-ref to hold the element reference in DEV (#12051)
close #12029
2024-10-11 10:53:45 +08:00
linzhe d3ecde8a69
fix(compiler-sfc): do not skip TSInstantiationExpression when transforming props destructure (#12064) 2024-10-11 10:51:57 +08:00
linzhe 76a8223199
fix(teleport): handle disabled teleport with updateCssVars (#12113)
close #12112
2024-10-11 10:50:36 +08:00
yangxiuxiu b4d35349d8
fix(useId): ensure useId consistency when using serverPrefetch (#12128)
close #12102
2024-10-11 10:49:14 +08:00
skirtle ec917cfdb9
perf(reactivity): avoid unnecessary recursion in removeSub (#12135) 2024-10-11 10:48:54 +08:00
edison f6d9926236
fix(compiler-dom): avoid stringify option with null value (#12096)
close #12093
2024-10-11 10:41:55 +08:00
Tycho 7ad289e1e7
fix(reactivity): trigger reactivity for Map key `undefined` (#12055)
close #12054
2024-10-11 10:39:08 +08:00
山吹色御守 c0418a3b8f
fix(defineModel): handle kebab-case model correctly (#12063)
close #12060
2024-10-11 10:35:57 +08:00
edison f1a4f67aed
fix(transition/ssr): make transition appear work with Suspense in SSR (#12047)
close #12046
2024-10-11 10:34:28 +08:00
Tycho 704173e242
fix(types): ensure `this.$props` type does not include `string` (#12123)
close #12122
2024-10-11 10:30:09 +08:00