Commit Graph

5909 Commits

Author SHA1 Message Date
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
Tycho d9d4d4e158
fix(runtime-core): allow symbol values for slot prop key (#12069)
close #12068
2024-10-11 10:28:54 +08:00
edison e16e9a7341
fix(custom-element): properly remove hyphenated attribute (#12143)
close #12139
2024-10-11 09:52:06 +08:00
三咲智子 Kevin Deng 2ed0be8020
fix(compiler-vapor): quote slot name 2024-10-07 13:14:18 +08:00
三咲智子 Kevin Deng c849864337
fix(runtime-shared): dedupe deps 2024-10-06 11:22:54 +08:00
三咲智子 Kevin Deng 3fa4069a1c
perf(runtime): clear container on unmount 2024-10-06 01:42:32 +08:00
三咲智子 Kevin Deng c1c316d392
feat(runtime-vapor): fast path for clear all children 2024-10-05 21:27:57 +08:00
三咲智子 Kevin Deng 3867942ddb
fix(runtime-vapor): stale memo cache 2024-10-05 20:33:35 +08:00
三咲智子 Kevin Deng 3d487184ea
chore: rename repo name 2024-10-05 15:59:15 +08:00
三咲智子 Kevin Deng c7fd6ae2dc
Merge tag 'v3.5.11' 2024-10-05 11:40:13 +08:00
skirtle b094c72b3d
fix(watch): watchEffect clean-up with SSR (#12097)
close #11956
2024-10-04 16:09:23 +08:00
Evan You 6e4de8d75e
release: v3.5.11 2024-10-03 23:49:47 +08:00
山吹色御守 6f85894376
fix(type): should not intersect `PublicProps` with `Props` (#12077) 2024-10-03 23:24:09 +08:00
山吹色御守 c97bb84d0b
fix(types): infer the first generic type of `Ref` correctly (#12094) 2024-10-03 23:22:57 +08:00
山吹色御守 57315ab968
fix(types): correctly infer `TypeProps` when it is `any` (#12073)
close #12058
2024-10-03 23:22:27 +08:00
skirtle 577edca8e7
fix(scheduler): job ordering when the post queue is flushing (#12090) 2024-10-03 23:21:31 +08:00
renovate[bot] 435e4fefad
chore(deps): update all non-major dependencies (#12080)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-03 23:17:22 +08:00
Tycho d3f5e6e531
fix(reactivity): prevent overwriting `next` property during batch processing (#12075)
close #12072
2024-10-03 23:16:52 +08:00
三咲智子 Kevin Deng 604c42db49
chore(runtime-vapor): add benchmark build flag 2024-09-29 01:55:00 +08:00
Rizumu Ayaka eda2a43f07
refactor(runtime-vapor): remove shallowRef list for v-for (#281) 2024-09-29 00:47:44 +08:00
Evan You 29de6f8b0b
chore: remove no longer used property on Dep 2024-09-28 19:25:16 +08:00
山吹色御守 2328b051f4
fix(compiler-sfc): do not skip `TSSatisfiesExpression` when transforming props destructure (#12062)
close #12061
2024-09-28 09:56:09 +08:00
Rizumu Ayaka 5f6cd32d8b
test(runtime-vapor): fix shallowRef in v-for (#280) 2024-09-28 01:53:29 +08:00
三咲智子 Kevin Deng b962aa52ff
refactor(runtime-vapor): remove support of shallowRef in v-for
Co-authored-by: Rizumu Ayaka <rizumu@ayaka.moe>
2024-09-28 01:42:45 +08:00
Evan You 4b09ab2074
release: v3.5.10 2024-09-27 23:16:33 +08:00
Evan You 93c95dd4cd
fix(reactivity): fix nested batch edge case 2024-09-27 23:10:20 +08:00
Evan You aa9ef2386a
fix(reactivity): only clear notified flags for computed in first batch iteration
close #12045
2024-09-27 11:25:58 +08:00
Evan You 60c2029f77
test: add test case for #11928 2024-09-27 11:06:34 +08:00
Tycho e2c19c20cf
fix(types/ref): handle nested refs in UnwrapRef (#12049)
close #12044
2024-09-27 10:23:01 +08:00
Evan You ea3efa09e0
fix(custom-element): properly set kebab-case props on Vue custom elements
close #12030
close #12032
2024-09-27 09:25:00 +08:00
Evan You 01f15beeb0
release: v3.5.9 2024-09-26 19:28:03 +08:00
Evan You 10ff159240
fix(reactivity): fix recursive sync watcher on computed edge case
close #12033
close #12037
2024-09-26 18:38:13 +08:00
edison cb34b28a4a
fix(runtime-core): avoid rendering plain object as VNode (#12038)
close #12035
close vitejs/vite-plugin-vue#353
2024-09-26 17:08:48 +08:00
edison fa0ba24b3a
fix(vue): properly cache runtime compilation (#12019) 2024-09-26 17:05:37 +08:00
山吹色御守 4da688141d
fix(types): correct type inference of union event names (#12022) 2024-09-26 17:00:05 +08:00
Evan You 6001e5c81a
fix(reactivity): fix property dep removal regression
close #12020
close #12021
2024-09-26 16:58:38 +08:00
yangxiuxiu c0e9434414
refactor(reactivity): avoid optional chaining in getDepFromReactive (#12007) 2024-09-24 18:02:01 +08:00
btea 7a00f6f093
chore: remove unused argument (#12006) 2024-09-24 18:01:20 +08:00
Boshen 5d9e81d3da
chore(types): disambiguate the `Comment` type in hydration.ts (#12009) 2024-09-24 18:00:39 +08:00
Evan You a177092754
fix(runtime-core): make useId() always return a string 2024-09-23 08:38:38 +08:00
Evan You 5e8898572f
release: v3.5.8 2024-09-22 11:53:14 +08:00
Jürg Lehni 0267a58801
fix(reactivity): do not remove dep from depsMap when cleaning up deps of computed (#11995) 2024-09-22 11:49:35 +08:00
Evan You d1764a142a
test: simplify computed last sub test case 2024-09-22 11:24:10 +08:00
三咲智子 Kevin Deng b8713589de
Merge remote-tracking branch 'upstream/main' 2024-09-22 02:42:52 +08:00
Rizumu Ayaka e07eac9ba3
feat(runtime-vapor): createSelector (#279) 2024-09-22 02:30:21 +08:00
Evan You 6fcb80172f
release: v3.5.7 2024-09-20 23:50:05 +08:00
Evan You 960706eebf
fix(reactivity): do not remove dep from depsMap when unsubbed by computed
follow up of 235ea4772 after discovering regression in vant ecosystem-ci tests
2024-09-20 23:39:59 +08:00
linzhe b030c8bc73
fix(reactivity): fix triggerRef call on ObjectRefImpl returned by toRef (#11986)
close #11982
2024-09-20 20:48:15 +08:00
山吹色御守 9eca65ee98
fix(types): correct type inference of all-optional props (#11644)
fix #11733
fix vuejs/language-tools#4704
2024-09-20 20:36:57 +08:00
Evan You 235ea4772e
fix(reactivity): fix memory leak from dep instances of garbage collected objects
close #11979
close #11971
2024-09-20 20:32:40 +08:00
Evan You 5c8b76ed6c
fix(reactivity): fix dev-only memory leak by updating dep.subsHead on sub removal
ref #11956
2024-09-20 20:06:39 +08:00
Alex Liu f927a4ae6f
fix(transition): respect `duration` setting even when it is `0` (#11967) 2024-09-20 16:47:01 +08:00
edison a2f6edeb02
fix(ssr): don't render comments in TransitionGroup (#11961)
close #11958
2024-09-20 16:46:45 +08:00
edison 62242886d7
fix(compile-core): fix v-model with newlines edge case (#11960)
close #8306
2024-09-20 16:45:47 +08:00
山吹色御守 215e154072
fix(compiler-sfc): initialize scope with null prototype object (#11963) 2024-09-20 16:44:14 +08:00
skirtle d18d6aa1b2
fix(scheduler): ensure recursive jobs can't be queued twice (#11955) 2024-09-20 16:43:35 +08:00
linzhe 7257e6a342
fix(hydration): avoid observing non-Element node (#11954)
close #11952
2024-09-20 16:41:58 +08:00
Kevin Deng 三咲智子 884c190f08
feat: `v-memo` for `v-for` (#276) 2024-09-19 15:40:20 +08:00
三咲智子 Kevin Deng cc58f651e1
refactor(compiler-vapor): remove `proxyRefs` in v-for 2024-09-19 01:17:16 +08:00
Kevin Deng 三咲智子 e1bedb8ad0
refactor!: drop custom directives (#274) 2024-09-19 01:15:17 +08:00
Michael Brevard e075dfad5c
perf(hydration): avoid observer if element is in viewport (#11639) 2024-09-18 15:45:31 +08:00
Rizumu Ayaka 6791c887da
perf: improve benchmark test code (#268) 2024-09-17 23:19:33 +08:00
三咲智子 Kevin Deng 3f1ee07fd2
fix(runtime-vapor): swc minify error 2024-09-17 16:26:31 +08:00
zhiyuanzmj ced7ee684c
feat(compiler-vapor): support v-slots expression for jsx-vapor (#271)
Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
2024-09-17 11:45:20 +08:00
三咲智子 Kevin Deng 594cb1412d
Merge remote-tracking branch 'upstream/main' 2024-09-17 10:33:35 +08:00
Evan You 9a36f2a0b8
release: v3.5.6 2024-09-16 16:11:38 +08:00
Evan You c74bb8c2dd
fix(reactivity): avoid exponential perf cost and reduce call stack depth for deeply chained computeds (#11944)
close #11928
2024-09-16 16:00:31 +08:00
edison 3db0a0f979
chore(deps): update vitest to ^2.1.1 (#11943) 2024-09-16 15:00:41 +08:00
Evan You 8492c3c49a
fix(compiler-sfc): preserve old behavior when using withDefaults with desutructure
close #11930
2024-09-16 11:25:04 +08:00
renovate[bot] 47bda40653
fix(deps): update dependency postcss to ^8.4.47 (#11938)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-16 10:59:38 +08:00
edison 85c138ced1
fix(compile-dom): should be able to stringify mathML (#11891) 2024-09-16 10:58:23 +08:00
Yang Mingshan 49fa673493
fix(watch): `once` option should be ignored by watchEffect (#11884) 2024-09-16 10:56:32 +08:00
Matt Garrett 2d6adf78a0
fix(watch): unwatch should be callable during SSR (#11925)
close #11924
2024-09-16 10:49:16 +08:00
Tycho bc3ddca9d0
chore(types): migrate global types to packages-private (#11904) 2024-09-16 10:30:58 +08:00
ML 1bad606eb3
types: improve app.directive type generics (#11926) 2024-09-16 10:30:04 +08:00
Tycho aa5dafd2b5
fix(reactivity): rely on dirty check only when computed has deps (#11931)
close #11929
2024-09-16 10:28:46 +08:00
Tycho 346bfaf760
refactor(reactivity): simplify isDirty condition (#11933) 2024-09-16 09:59:13 +08:00
2nofa11 817dca8712
chore:fix-issue-id (#11927) [ci skip] 2024-09-14 12:00:10 +08:00
Evan You 7f2de3f53e
release: v3.5.5 2024-09-13 21:38:17 +08:00
Evan You a5f3c2eb4d
fix(hydration): fix mismatch of leading newline in <textarea> and <pre>
close #11873
close #11874
2024-09-13 21:24:59 +08:00
Evan You 3c4bf76276
fix(compiler-dom): should ignore leading newline in <textarea> per spec 2024-09-13 21:24:59 +08:00
edison 10a2c6053b
fix(hmr): reload async child wrapped in Suspense + KeepAlive (#11907)
close #11868
2024-09-13 20:19:47 +08:00
linzhe f2d8019188
fix(custom-element): handle nested customElement mount w/ shadowRoot false (#11861)
close #11851
close #11871
2024-09-13 20:18:10 +08:00
Evan You 1d99d61c1b
fix(compiler-dom): fix stringify static edge for partially eligible chunks in cached parent
close #11879
close #11890
2024-09-13 20:08:40 +08:00
edison 7571f20bc3
fix(TransitionGroup): not warn unkeyed text children with whitespece preserve (#11888)
close #11885
2024-09-13 18:37:42 +08:00
Evan You 8ea5d6d698
fix(reactivity): properly clean up deps, fix memory leak
close #11901
2024-09-13 18:35:16 +08:00
Evan You 11eebcb4df
refactor(reactivity): use class for Link 2024-09-13 18:35:16 +08:00
edison 7fe6c795a1
fix(runtime-core): properly update async component nested in KeepAlive (#11917)
close #11916
2024-09-13 17:17:56 +08:00
linzhe 0e7bc717e6
fix(compiler-sfc): nested css supports atrule and comment (#11899)
close #11896
2024-09-13 16:53:49 +08:00
edison 706d4ac1d0
fix(compiler-core): fix handling of delimiterOpen in VPre (#11915)
close #11913
2024-09-13 16:46:01 +08:00
Evan You 91212fa408
release: v3.5.4 2024-09-10 17:05:04 +08:00
Evan You b1db66a1a9
chore(deps): upgrade to TypeScript 5.6 2024-09-10 16:46:19 +08:00
Evan You e596378e0b
fix: Revert "fix: Revert "fix(reactivity): self-referencing computed should refresh""
This reverts commit 35c760f82f.
2024-09-10 16:01:20 +08:00
Yang Mingshan 48613bb928
refactor(scheduler): simplify checkRecursiveUpdates (#11856) 2024-09-10 15:51:10 +08:00
zhangenming f80d447c17
perf(reactivity): trigger deps directly instead of storing in an array first (#11695) 2024-09-10 15:48:51 +08:00
Tycho ced59ab8f2
fix(runtime-core): handle shallow reactive arrays in renderList correctly (#11870)
close #11869
2024-09-10 15:48:14 +08:00
Konv Suu 67d6596d40
fix(reactivity): fix markRaw error on already marked object (#11864)
close #11862
2024-09-10 15:40:43 +08:00
renovate[bot] 207d0eabdf
chore(deps): update all non-major dependencies (#11858)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-10 15:38:45 +08:00
山吹色御守 b1de75ed04
fix(compiler-sfc): correct scoped injection for nesting selector (#11854)
close #10567
2024-09-10 15:38:33 +08:00
btea fe2ab1bbac
chore: remove unused variable (#11842) 2024-09-07 18:30:58 +08:00
Evan You b1430f250d
refactor: remove rarely used argument in makeMap + optimize perf 2024-09-07 15:40:17 +08:00
山吹色御守 dad6738099
fix(types): correctly infer `TypeEmits` with both tuple and function syntax (#11840)
close #11836
2024-09-06 16:10:56 +08:00
Evan You 632e163a41
release: v3.5.3 2024-09-06 11:27:41 +08:00
Evan You bf3d9a2af4
fix(ssr): respect app.config.warnHandler during ssr
close #11830
2024-09-06 11:20:48 +08:00
Adrien Foulon 8e6c337867
fix(hydration): check __asyncHydrate presence for vue3-lazy-hydration compat (#11825)
close #11793
2024-09-06 11:20:41 +08:00
edison 6b7901d28e
fix(Transition): handle KeepAlive child unmount in Transition out-in mode (#11833)
close #11775
2024-09-06 11:03:58 +08:00
Evan You 7e3b3bb2a1
fix: Revert "fix(Transition): handle KeepAlive child unmount in Transition out-in mode (#11778)"
This reverts commit 3116553529.

close #11829
reopen #11775
2024-09-06 08:50:39 +08:00
Evan You 35c760f82f
fix: Revert "fix(reactivity): self-referencing computed should refresh"
This reverts commit e84c4a608e.
2024-09-06 08:47:12 +08:00
Evan You babfb4cbcb
fix(useId): make generated IDs selector compatible
close #11828
2024-09-06 08:46:47 +08:00
Evan You 72263fa12e
release: v3.5.2 2024-09-05 21:11:36 +08:00
山吹色御守 3f13203564
feat(compiler-core): parse modifiers as expression to provide location data (#11819) 2024-09-05 21:00:16 +08:00
山吹色御守 7a64b6734d
types(internal): provide internal options for using `$el` type in language tools (#11814) 2024-09-05 20:58:13 +08:00
edison 3c0d531fa7
fix(suspense): avoid updating anchor if activeBranch has not been rendered to the actual container (#11818)
close #11806
2024-09-05 20:56:34 +08:00
Oliver Bucher 3634f7a4c1
fix(types): add HTMLDialogElement missing close event (#11811)
Co-authored-by: Evan You <evan@vuejs.org>
2024-09-05 20:52:37 +08:00
skirtle df56cc5287
fix(scheduler): prevent duplicate jobs being queued (#11826)
Fix #11712
Fix #11807
2024-09-05 20:51:26 +08:00
Evan You e84c4a608e
fix(reactivity): self-referencing computed should refresh
ref: https://github.com/vuejs/core/pull/11797#issuecomment-2330738633
2024-09-05 19:04:17 +08:00
Jürg Lehni 716275d1b1
fix(reactivity): prevent endless recursion in computed getters (#11797) 2024-09-05 18:54:30 +08:00