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
白雾三语
c74176ec7b
fix(types): added name attribute support to details tag ( #11823 )
...
close #11821
2024-09-05 17:53:05 +08:00
Evan You
9b7797d0d1
fix(useTemplateRef): properly fix readonly warning in dev and ensure prod behavior consistency
...
close #11808
close #11816
close #11810
2024-09-05 17:47:03 +08:00
Evan You
46c3ab1d71
fix(reactivity): make toRaw work on proxies created by proxyRef
2024-09-05 17:47:03 +08:00
edison
3116553529
fix(Transition): handle KeepAlive child unmount in Transition out-in mode ( #11778 )
...
close #11775
2024-09-05 16:47:50 +08:00
Evan You
fca20a39aa
fix(types): fix defineComponent props inference when setup() has explicit annotation
...
close #11803
2024-09-05 16:44:47 +08:00
yangxiuxiu
98864a7ef5
fix(reactivity): pass oldValue to computed getter ( #11813 )
...
close #11812
2024-09-05 16:10:37 +08:00
远方os
c518517cb3
chore(types): removed the Awaited compatibility type tool ( #11820 )
2024-09-05 16:09:10 +08:00
Evan You
1b6bc2374d
release: v3.5.1
2024-09-04 21:07:29 +08:00
edison
51912f8a02
fix(Transition): avoid applying transition hooks on comment vnode ( #11788 )
...
close #11782
2024-09-04 20:54:04 +08:00
Evan You
bc63df0199
fix(useTemplateRef): fix readonly warning when useTemplateRef has same variable name as template ref
...
close #11795
close #11802
close #11804
2024-09-04 20:53:12 +08:00
Johnson Chu
7518bc19dc
fix(types): avoid using intersection type in `Readonly<...>` to fix JSDoc emit ( #11799 )
2024-09-04 20:34:36 +08:00
Evan You
40193696b3
chore(build): use /*@__PURE__*/ annotation consistently
2024-09-04 20:24:33 +08:00
Evan You
4eee630b31
fix(build): improve built-in components treeshakability
2024-09-04 20:22:33 +08:00
Tycho
475977a6f7
fix(reactivity): handle non-array arguments in reactive `concat` method ( #11794 )
...
close #11792
2024-09-04 20:21:10 +08:00
Evan You
6402b98408
release: v3.5.0
2024-09-03 21:13:50 +08:00
Alex Liu
c3ce9fe3d8
fix(runtime-dom): avoid unnecessary prop patch for checkbox ( #11657 )
...
close #11647
2024-09-03 21:10:18 +08:00
Tycho
fe07f70736
fix(types/defineModel): allow getter and setter types to be unrelated ( #11699 )
...
close #11697
2024-09-03 17:47:50 +08:00
Hanse Kim
b1be9bd64f
fix(runtime-dom): prevent unnecessary DOM update from v-model ( #11656 )
...
close #11647
2024-09-03 17:44:07 +08:00
Matt Garrett
6039e25e04
fix(server-renderer): Fix call to serverPrefetch in server renderer with an async setup ( #10893 )
2024-09-03 17:43:52 +08:00
edison
7b5b6e0275
fix(cssVars): correctly escape double quotes in SSR ( #11784 )
...
close #11779
2024-09-03 17:39:07 +08:00
Tycho
9817c80187
fix(reactivity): correctly handle method calls on user-extended arrays ( #11760 )
...
close #11759
2024-09-03 17:32:13 +08:00
山吹色御守
52cdb0f991
fix(server-renderer): render `className` during SSR ( #11722 )
2024-09-03 08:26:08 +08:00
edison
ca12e776bc
fix(hydration): escape css var name to avoid mismatch ( #11739 )
...
close #11735
2024-09-03 08:25:00 +08:00
renovate[bot]
cb843e0be3
fix(deps): update dependency postcss to ^8.4.44 ( #11774 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-03 08:22:26 +08:00
Evan You
0f7c0e5dc0
fix(compiler-sfc): fix import usage check for kebab-case same name shorthand binding
...
fix #11745
close #11754
2024-09-02 17:29:59 +08:00
chirokas
d86fe0ec00
feat(types): add loading prop to iframe ( #11767 )
2024-09-02 17:10:14 +08:00
edison
c756da24b2
fix(hydration): handle text nodes with 0 during hydration ( #11772 )
...
close #11771
2024-09-02 17:09:38 +08:00
Maisha Tremblay
3de5556521
test(reactive): use vitest fn instead of counting manually ( #11746 )
2024-09-02 17:08:19 +08:00
Cédric Exbrayat
d427bcd71c
chore: document parameters of onWatcherCleanup ( #11768 )
2024-09-02 17:06:30 +08:00
Evan You
d298c431cc
release: v3.5.0-rc.1
2024-08-29 15:25:43 +08:00
edison
f1d1831f07
fix(custom-element): handle keys set on custom elements ( #11655 )
...
close #11641
2024-08-29 15:09:15 +08:00
lidlanca
1d988b5b99
test(reactivity): test case for #6358 ( #6376 )
2024-08-29 14:20:04 +08:00
Evan You
313e4bf552
fix(reactivity): avoid infinite recursion when mutating ref wrapped in reactive
...
close #11696
2024-08-29 14:10:29 +08:00
cyrilluce
9c4c2e51b0
fix(compiler-sfc): skip circular tsconfig project reference ( #11680 )
...
Co-authored-by: cluezhang <cluezhang@futurefab.ai>
close #11382
2024-08-29 11:42:35 +08:00
Evan You
ac9e7e8bfa
test: adjust coverage config, use v8 coverage
2024-08-29 10:41:29 +08:00
linzhe
29c321bfd3
fix(keep-alive): reset keep alive flag when the component is removed from include ( #11718 )
...
close #11717
2024-08-29 10:41:19 +08:00
HEGGRIA
64e1ca2657
chore(reactivity): effectScope.ts variable declarations optimized and remove useless code in effect.ts ( #11721 )
...
* chore(reactivity): effectScope.ts variable declarations optimized and remove useless code in effect.ts
* fix(reactivity): batchDepth count error fixed
* fix(reactivity): batchDepth count error fixed
* chore(reactivity): modify the batchDepth increase type
2024-08-28 18:16:59 +08:00
Paul Werner
334d47ddf3
dx(compiler-sfc): improve error message for missing template and script tag in vue file ( #11723 )
2024-08-28 17:49:33 +08:00
Evan You
d875de54e9
fix(runtime-dom): setting innerHTML when patching props should go through trusted types
2024-08-28 17:37:39 +08:00
Evan You
42e8df6203
fix(types): GlobalDirective / GlobalComponents should not be records
2024-08-28 15:00:36 +08:00
edison
342657b717
chore: correct the issue number ( #11715 ) [ci skip]
2024-08-26 18:08:46 +08:00
yangxiuxiu
fbc0c42bcf
fix(reactivity): ensure watcher with once: true are properly removed from effect scope ( #11665 )
2024-08-20 16:35:08 +08:00
Evan You
f2ea25dc54
refactor(watch): reuse watch types
2024-08-20 16:16:25 +08:00
Evan You
8c3fdd1a7d
release: v3.5.0-beta.3
2024-08-20 08:24:06 +08:00
Rizumu Ayaka
205e5b5e27
feat(reactivity): base `watch`, `getCurrentWatcher`, and `onWatcherCleanup` ( #9927 )
2024-08-20 08:21:44 +08:00
yangxiuxiu
44973bb3e7
fix(types): strip non-prop default values from return type of withDefaults ( #9998 )
...
close #9899
2024-08-19 16:29:43 +08:00
zhangenming
bb6babca8f
perf( runtime-core): use `apply` to avoid spreading. ( #5985 )
2024-08-19 16:25:01 +08:00
edison
98b83e86d1
fix(ssr): apply ssr props to the the fallback vnode-based branch in ssr ( #7247 )
...
close #6123
2024-08-19 16:22:05 +08:00
edison
ac2a410e46
fix(runtime-core): ensure suspense content inherit scopeId ( #10652 )
...
close #5148
2024-08-19 16:19:24 +08:00
skirtle
4b608a9449
refactor(scheduler): remove invalidateJob ( #11650 )
...
Co-authored-by: Evan You <evan@vuejs.org>
2024-08-19 10:49:59 +08:00
renovate[bot]
448c2396b9
chore(deps): update dependency postcss-selector-parser to ^6.1.2 ( #11652 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-19 10:34:10 +08:00
skirtle
7fbf4964e4
refactor(scheduler): remove redundant sorting ( #11646 )
2024-08-19 10:17:45 +08:00
skirtle
b332f80f0e
fix(runtime-core): pre jobs without an id should run first ( #7746 )
2024-08-19 10:13:50 +08:00
edison
9de1d101f9
fix(reactivity): extended methods respect reactive ( #11629 )
...
close #11628
2024-08-16 16:23:09 +08:00
Andy Li
5e0f6d5f8f
fix(types/custom-element): `defineCustomElement` with required props ( #11578 )
2024-08-16 16:22:03 +08:00
Jakob
8bcaad4a32
fix(watch): handle errors in computed used as watch source ( #11626 )
...
close #11624
2024-08-16 16:14:08 +08:00
山吹色御守
d7d0371e74
fix(runtime-core): correct type inference for PascalCase emits ( #11579 )
...
fix vuejs/language-tools#4269
2024-08-15 17:49:43 +08:00
Evan You
7d700c215d
release: v3.5.0-beta.2
2024-08-15 15:29:43 +08:00
Evan You
e19fc27042
fix(custom-element): keep instance.isCE for backwards compat
2024-08-15 15:18:19 +08:00
Evan You
3d6f01571b
fix(compiler-sfc): fix prefixIdentifier default value
2024-08-15 14:29:28 +08:00
disservin
fe008152c0
fix(compiler-sfc): handle keyof operator with index object ( #11581 )
2024-08-15 10:24:04 +08:00
Evan You
e9e08155bf
fix(build): revert entities to 4.5 to avoid runtime resolution errors
...
close #11603
2024-08-15 10:16:32 +08:00
Evan You
5861229475
fix(compiler-core): use ast-based check for function expressions when possible
...
close #11615
2024-08-15 09:58:30 +08:00
Raman Paulau
c96ec67c87
chore(types): update examples in JSDoc for augmenting global properties and custom options to align with docs ( #11609 )
2024-08-14 15:12:13 +08:00
Tycho
5cf5a1620d
fix(types/computed): ensure type safety for `WritableComputedRef` ( #11608 )
2024-08-14 15:11:10 +08:00
linzhe
3bda3e83fd
fix(reactivity): sync watch should be executed correctly ( #11589 )
...
close #11577
2024-08-13 22:54:08 +08:00
btea
3653bc0f45
fix(keep-alive): ensure include/exclude regexp work with global flag ( #11595 )
2024-08-13 22:07:35 +08:00
Tycho
fee669764f
fix(types): add fallback stub for DOM types when DOM lib is absent ( #11598 )
2024-08-13 22:06:10 +08:00
edison
73fa91fabd
refactor: remove unnecessary check as filter is always non-null ( #11599 )
2024-08-13 22:05:14 +08:00
edison
4e7d5db4d2
feat(deprecated): remove deprecated parseExpressions option ( #11597 )
2024-08-13 22:04:48 +08:00
Tycho
d0f882d5bb
chore: add explicit type annotation to `initDirectivesForSSR` ( #11596 )
2024-08-13 22:02:57 +08:00
renovate[bot]
4c4e12ae28
fix(deps): update dependency postcss to ^8.4.41 ( #11585 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-12 09:31:46 +08:00
Evan You
85ee76f29d
chore: bump transition tests buffer in ci
2024-08-12 08:07:41 +08:00
Evan You
6a5b2098e1
workflow: move private packages to separate directory
2024-08-12 08:02:03 +08:00
Evan You
90caac473d
test(custom-element): test custom element hydration w/ declarative shadow dom
2024-08-10 16:39:20 +08:00
edison
4085def1ba
fix(reactivity): ensure extended method arguments are not lost ( #11574 )
...
close #11570
2024-08-10 15:54:38 +08:00
三咲智子 Kevin Deng
2ef97fec30
refactor: isolatedDeclarations for vapor
2024-08-09 17:00:27 +08:00
三咲智子 Kevin Deng
4468a2bea8
Merge tag 'v3.5.0-beta.1'
2024-08-09 00:55:35 +08:00
三咲智子 Kevin Deng
5632e2fe68
refactor: `baseWatch` always return effect
2024-08-09 00:41:31 +08:00
Evan You
23e098807b
release: v3.5.0-beta.1
2024-08-08 23:31:46 +08:00
Evan You
741d8a0710
chore: Merge branch 'main' into minor
2024-08-08 23:06:53 +08:00
Kevin Deng 三咲智子
928af5fe2f
refactor(types): enable `isolatedDeclarations` ( #11178 )
2024-08-08 23:05:21 +08:00
Evan You
28db2e69f4
release: v3.4.37
2024-08-08 22:36:10 +08:00
disservin
c6841bdf4e
test(compiler-sfc): add assertion for template functional ( #11557 )
2024-08-08 21:08:58 +08:00
LiuSeen
f8ce86bad7
chore(playground): support copying vue version ( #11558 )
2024-08-08 21:07:57 +08:00
Evan You
506c4c53fd
fix(custom-element): delete prop on attribute removal
...
close #11276
2024-08-08 18:37:54 +08:00
山吹色御守
236fb7abeb
fix(compiler-core): use `isProp.arg.loc` instead of `isProp.loc` ( #11547 )
2024-08-08 17:13:24 +08:00
Evan You
be84f33ab0
chore(sfc-playground): default isCustomElement for sfc playground
2024-08-08 16:49:16 +08:00
Evan You
a07e7bf553
fix(custom-element): support early-set domProps for async custom elements
...
close #11081
close #11082
2024-08-08 16:26:48 +08:00
Evan You
9b531d5716
test: rectify accidentally passing test
2024-08-08 15:57:07 +08:00
Evan You
7d5743223f
chore: use fresh containers for app mount tests
2024-08-08 14:42:16 +08:00
Evan You
1ef8f46af0
feat(custom-element): expose this.$host in Options API
2024-08-08 12:40:40 +08:00
Evan You
775103af37
feat(custom-element): useHost() helper
2024-08-08 12:35:00 +08:00
Alex
e044b6e737
feat(reactivity): store value cache on CustomRefs impls ( #11539 )
...
Co-authored-by: Evan You <evan@vuejs.org>
2024-08-07 22:24:28 +08:00
LiuSeen
e0428884b5
fix(defineModel): detect changes respect custom getter and setter ( #11543 )
...
fix : #11541
fix : #11526
close : #11527
2024-08-07 22:10:01 +08:00
Cédric Exbrayat
5753a10fc5
chore: fix wrong test name for useShadowRoot ( #11550 )
2024-08-07 21:29:56 +08:00
三咲智子 Kevin Deng
95b9550f73
style: format html files
2024-08-07 19:58:07 +08:00
Evan You
eaf5455d77
chore: Merge branch 'main' into minor
2024-08-07 18:25:58 +08:00
Evan You
b1abac06cd
fix: Revert "fix(types/ref): allow getter and setter types to be unrelated ( #11442 )"
...
This reverts commit e0b2975ef6
.
This change requires TypeScript 5.1 so it is moved to a minor release.
2024-08-07 18:12:07 +08:00
Evan You
3a56315f94
fix: Revert "fix(types/ref): correct type inference for nested refs ( #11536 )"
...
This reverts commit 536f62332c
.
2024-08-07 18:11:39 +08:00
Evan You
978ff3c1db
fix(custom-element): fix custom-element double render on immediate prop change
...
fix #9885
close #11335
2024-08-07 17:44:11 +08:00
Evan You
197afc2c1f
chore: fix useShadowRoot warning method name
2024-08-07 17:21:36 +08:00
Alex Liu
1058ce8e74
fix(types): allow `DirectiveArguments` third parameter to accept undefined ( #11540 )
2024-08-07 17:02:15 +08:00
Evan You
6758c3cd04
feat(custom-element): support configurable app instance in defineCustomElement
...
Support configuring via `configureApp` option:
```js
defineCustomElement({
// ...
}, {
configureApp(app) {
// ...
}
})
```
close #4356
close #4635
2024-08-07 16:08:06 +08:00
Michael Brevard
261c8b111d
feat(hydration): allow fine tuning of lazy hydration strategy triggers ( #11530 )
2024-08-07 12:06:15 +08:00
edison
7e75de002f
fix(runtime-core): prioritize using the provides from currentApp in nested createApp ( #11502 )
...
close #11488
2024-08-07 12:02:38 +08:00
かっこかり
81351dc7fb
fix(keep-alive): fix render error in cached is undefined ( #11496 )
...
fix #11427
close #11431
2024-08-07 11:58:44 +08:00
Yuyao Nie
6c90324870
fix(ssr): ensure content is valid when rendering normal slot ( #11491 )
...
fix #11326
2024-08-07 11:56:00 +08:00
linzhe
fdc2a31dbd
fix(runtime-dom): apply css vars before mount ( #11538 )
...
fix #11533
2024-08-07 11:51:44 +08:00
skirtle
e359ff0046
fix(runtime-core): fix warning for missing event handler ( #11489 )
...
fix #4803
close #8268
2024-08-07 11:29:41 +08:00
edison
a917c0539c
fix(keep-alive): avoid cache suspense comment root ( #11479 )
2024-08-07 11:24:17 +08:00
Tycho
536f62332c
fix(types/ref): correct type inference for nested refs ( #11536 )
...
close #11532
close #11537
2024-08-07 11:20:04 +08:00
sq800
139548e0e0
chore: fix typo ( #11535 ) [ci skip]
2024-08-07 10:57:39 +08:00
Kevin Deng 三咲智子
8a99f903db
style: format html&markdown files ( #11531 )
2024-08-07 10:57:18 +08:00
Evan You
63689ed776
fix(custom-element): reflect prop default value on custom element
...
close #9006
close #10537
2024-08-07 02:51:29 +08:00
Evan You
bcb9a70290
types: custom element interface should be internal
2024-08-07 02:33:20 +08:00
Evan You
37ccb9b9a0
fix(custom-element): delay mounting of custom elements with async parent
...
close #8127
close #9341
close #9351
the fix is based on #9351 with reused tests
2024-08-07 02:18:54 +08:00
白雾三语
03a9ea2b88
feat(custom-element): support css `:host` selector by applying css vars on host element ( #8830 )
...
close #8826
2024-08-06 23:33:57 +08:00
vue-bot
1cbbb04008
release: v3.4.36
2024-08-06 14:00:05 +00:00
edison
275354caba
fix(compiler-ssr): don't render v-if comments in TransitionGroup + static tag ( #11515 )
...
close #11514
2024-08-06 18:25:13 +08:00
edison
917c0631cc
chore: fix typo ( #11522 )
2024-08-06 18:20:40 +08:00
Evan You
79602f9ecd
fix(ssr): respect textContent/innerHTML from getSSRProps in optimized SSR output
...
close #8112
2024-08-06 18:14:59 +08:00
三咲智子 Kevin Deng
d23095e866
Merge tag 'v3.5.0-alpha.5'
2024-08-06 17:39:59 +08:00
Evan You
7d473b7721
fix(hydration): force hydrate custom element dynamic props
...
close #7203
close #8038
2024-08-06 15:58:45 +08:00
Evan You
bb4a02a70c
feat(custom-element): support nonce option for injected style tags
...
close #6530
2024-08-06 15:41:54 +08:00
Evan You
60a88a2b12
feat(custom-element): support passing custom-element-specific options via 2nd argument of defineCustomElement
2024-08-06 15:37:28 +08:00
Evan You
56c76a8b05
feat(custom-element): inject child components styles to custom element shadow root ( #11517 )
...
close #4662
close #7941
close #7942
2024-08-05 20:49:28 +08:00
Evan You
b74687c0bb
refactor: isCE -> ce
2024-08-05 16:33:48 +08:00
Evan You
6e541db29f
chore: warn style injection in shadowRoot: false mode
2024-08-05 16:33:05 +08:00
renovate[bot]
ed1bf72715
chore(deps): update build ( #11495 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-05 14:49:04 +08:00
Evan You
7ecf91f760
chore(deps): limit minimatch range
...
minimatch 10+ only supports Node 20+
2024-08-05 14:48:22 +08:00
Evan You
ea190f24e4
chore(deps): upgrade to entities 5.0
...
close #11507
2024-08-05 14:14:52 +08:00
Evan You
67bb820904
fix(compiler-core): properly handle for loop variable declarations in expression transforms
...
ref https://github.com/vuejs/core/pull/11467#issuecomment-2263069794
2024-08-05 14:07:44 +08:00
Evan You
077a1aeb3c
fix(compiler-core): fix expression transform for try...catch block params
...
close #11465
close #11467
2024-08-05 13:46:51 +08:00
Andy Li
e94b01bd8a
fix(types/custome-element): `defineCustomElement` props inference with array emits ( #11384 )
...
close #11353
2024-08-05 11:14:36 +08:00
Tycho
4592b63c6a
fix(types/withDefaults): ensure default values of type `any` do not include `undefined` ( #11490 )
2024-08-05 10:59:44 +08:00
btea
3430bffa4b
test(runtime-core): test cases when the value of the `$stable` flag is false ( #11485 )
2024-08-05 10:53:21 +08:00
远方os
a01675ef8f
feat(types): allow computed getter and setter types to be unrelated ( #11472 )
...
close #7271
2024-08-05 10:51:56 +08:00
Tycho
5ffd1a8945
feat(types): provide internal options for using refs type in language tools ( #11492 )
2024-08-05 10:50:43 +08:00
Sunny Fu
33cd61356f
chore(runtime-test): remove useless test code ( #11483 )
2024-08-05 10:42:13 +08:00
Tycho
ba2092981c
refactor(types/ref): update `MaybeRef` to include all ref-like types ( #11379 )
...
Co-authored-by: Evan You <evan@vuejs.org>
2024-08-05 10:40:17 +08:00
郝晨光
af838c1b5e
feat(custom-element): support for expose on customElement ( #6256 )
...
close #5540
2024-08-03 14:48:21 +08:00
Evan You
5a1a89bd61
feat(custom-element): useShadowRoot() helper
...
close #6113
close #8195
2024-08-03 14:19:19 +08:00
Evan You
e181bff6dc
feat(custom-element): support emit with options
...
In a custom element created via `defineCustomElement`, if the first
event argument is an object, it will be used as the options object
for the emitted CustomEvent. The entire argument list is still exposed
via the CustomEvent's `detail` property.
```js
emit('event', { bubbles: true })
```
close #7605
2024-08-03 13:46:58 +08:00
Evan You
7f2c505f92
fix(custom-element): ignore scoped id
2024-08-03 13:40:57 +08:00
Evan You
37d2ce5d8e
feat(custom-element): support shadowRoot: false in defineCustomElement()
...
close #4314
close #4404
2024-08-03 13:14:22 +08:00
远方os
267093c314
feat(reactivity/watch): add pause/resume for ReactiveEffect, EffectScope, and WatchHandle ( #9651 )
2024-08-02 14:41:27 +08:00
Tycho
55acabe88c
dx(useTemplateRef): warn when declaring with the same key ( #11462 )
2024-08-02 13:18:58 +08:00
Haoqun Jiang
6d4eb94853
feat(runtime-dom): Trusted Types compatibility ( #10844 )
2024-08-02 12:46:12 +08:00
Damian Głowala
998dca59f1
feat(types): export `MultiWatchSources` type ( #9563 )
2024-08-02 12:43:22 +08:00
David Matter
2a29a71d8a
test(types): add test for generic discriminated unions in props ( #9336 )
2024-08-02 11:45:23 +08:00
远方os
22f7d96757
feat(watch): support passing number to `deep` option to control the watch depth ( #9572 )
2024-08-02 11:38:07 +08:00