]> git.ipfire.org Git - thirdparty/vuejs/core.git/log
thirdparty/vuejs/core.git
11 months agochore(deps): bump TypeScript to 5.5
Evan You [Sun, 4 Aug 2024 02:25:39 +0000 (10:25 +0800)] 
chore(deps): bump TypeScript to 5.5

11 months agofeat(custom-element): support for expose on customElement (#6256)
郝晨光 [Sat, 3 Aug 2024 06:48:21 +0000 (14:48 +0800)] 
feat(custom-element): support for expose on customElement (#6256)

close #5540

11 months agofeat(custom-element): useShadowRoot() helper
Evan You [Sat, 3 Aug 2024 06:19:19 +0000 (14:19 +0800)] 
feat(custom-element): useShadowRoot() helper

close #6113
close #8195

11 months agofeat(custom-element): support emit with options
Evan You [Sat, 3 Aug 2024 05:46:58 +0000 (13:46 +0800)] 
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

11 months agofix(custom-element): ignore scoped id
Evan You [Sat, 3 Aug 2024 05:40:57 +0000 (13:40 +0800)] 
fix(custom-element): ignore scoped id

11 months agofeat(custom-element): support shadowRoot: false in defineCustomElement()
Evan You [Sat, 3 Aug 2024 05:14:22 +0000 (13:14 +0800)] 
feat(custom-element): support shadowRoot: false in defineCustomElement()

close #4314
close #4404

11 months agofeat(reactivity/watch): add pause/resume for ReactiveEffect, EffectScope, and WatchHa...
远方os [Fri, 2 Aug 2024 06:41:27 +0000 (14:41 +0800)] 
feat(reactivity/watch): add pause/resume for ReactiveEffect, EffectScope, and WatchHandle (#9651)

11 months agodx(useTemplateRef): warn when declaring with the same key (#11462)
Tycho [Fri, 2 Aug 2024 05:18:58 +0000 (13:18 +0800)] 
dx(useTemplateRef): warn when declaring with the same key (#11462)

11 months agofeat(runtime-dom): Trusted Types compatibility (#10844)
Haoqun Jiang [Fri, 2 Aug 2024 04:46:12 +0000 (12:46 +0800)] 
feat(runtime-dom): Trusted Types compatibility (#10844)

11 months agofeat(types): export `MultiWatchSources` type (#9563)
Damian Głowala [Fri, 2 Aug 2024 04:43:22 +0000 (06:43 +0200)] 
feat(types): export `MultiWatchSources` type (#9563)

11 months agofeat(watch): support passing number to `deep` option to control the watch depth ...
远方os [Fri, 2 Aug 2024 03:38:07 +0000 (11:38 +0800)] 
feat(watch): support passing number to `deep` option to control the watch depth (#9572)

11 months agofix(types): allow using InjectionKey as valid property key
Evan You [Fri, 2 Aug 2024 03:11:03 +0000 (11:11 +0800)] 
fix(types): allow using InjectionKey as valid property key

close #5089

11 months agofeat: support specifying allowed keys via generic argument in useTemplateRef()
Evan You [Thu, 1 Aug 2024 03:13:56 +0000 (11:13 +0800)] 
feat: support specifying allowed keys via generic argument in useTemplateRef()

11 months agorelease: v3.5.0-alpha.5 v3.5.0-alpha.5
Evan You [Wed, 31 Jul 2024 08:57:19 +0000 (16:57 +0800)] 
release: v3.5.0-alpha.5

11 months agochore: Merge branch 'main' into minor
Evan You [Wed, 31 Jul 2024 08:49:22 +0000 (16:49 +0800)] 
chore: Merge branch 'main' into minor

11 months agorelease: v3.4.35 v3.4.35
Evan You [Wed, 31 Jul 2024 08:42:04 +0000 (16:42 +0800)] 
release: v3.4.35

11 months agofix(teleport/ssr): fix Teleport hydration regression due to targetStart anchor addition
Evan You [Wed, 31 Jul 2024 08:09:56 +0000 (16:09 +0800)] 
fix(teleport/ssr): fix Teleport hydration regression due to targetStart anchor addition

11 months agofix(Teleport): ensure targetAnchor and targetStart not null during hydration (#11456)
edison [Wed, 31 Jul 2024 07:46:39 +0000 (15:46 +0800)] 
fix(Teleport): ensure targetAnchor and targetStart not null during hydration (#11456)

close #11400

11 months agofeat: lazy hydration strategies for async components (#11458)
Evan You [Wed, 31 Jul 2024 04:14:51 +0000 (12:14 +0800)] 
feat: lazy hydration strategies for async components (#11458)

11 months agotest: make transition tests more stable locally
Evan You [Mon, 29 Jul 2024 14:07:40 +0000 (22:07 +0800)] 
test: make transition tests more stable locally

11 months agoperf(runtime-core): improve efficiency of normalizePropsOptions (#11409)
skirtle [Mon, 29 Jul 2024 13:47:23 +0000 (14:47 +0100)] 
perf(runtime-core): improve efficiency of normalizePropsOptions (#11409)

close #9739

11 months agochore(types): reuse built-in Iterator type (#11435)
Tycho [Mon, 29 Jul 2024 13:26:48 +0000 (21:26 +0800)] 
chore(types): reuse built-in Iterator type (#11435)

11 months agochore(deps): update dependency conventional-changelog-cli to v5 (#11449)
renovate[bot] [Mon, 29 Jul 2024 12:18:02 +0000 (20:18 +0800)] 
chore(deps): update dependency conventional-changelog-cli to v5 (#11449)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
11 months agochore(deps): update dependency eslint-plugin-import-x to v3 (#11450)
renovate[bot] [Mon, 29 Jul 2024 12:17:45 +0000 (20:17 +0800)] 
chore(deps): update dependency eslint-plugin-import-x to v3 (#11450)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
11 months agofix(types/ref): allow getter and setter types to be unrelated (#11442)
Tycho [Mon, 29 Jul 2024 02:52:38 +0000 (10:52 +0800)] 
fix(types/ref): allow getter and setter types to be unrelated (#11442)

11 months agochore(sfc-playgroud): highlight the commit and latest version when active in dropdown...
wzc520pyfm [Mon, 29 Jul 2024 01:43:25 +0000 (09:43 +0800)] 
chore(sfc-playgroud): highlight the commit and latest version when active in dropdown (#11445)

11 months agochore(deps): update lint (#11448)
renovate[bot] [Mon, 29 Jul 2024 01:26:54 +0000 (09:26 +0800)] 
chore(deps): update lint (#11448)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
11 months agochore(deps): update build (#11447)
renovate[bot] [Mon, 29 Jul 2024 01:24:03 +0000 (09:24 +0800)] 
chore(deps): update build (#11447)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
11 months agorefactor(reactivity): simplify the wrapping logic for returned values in array instru...
Tycho [Mon, 29 Jul 2024 01:22:18 +0000 (09:22 +0800)] 
refactor(reactivity): simplify the wrapping logic for returned values in array instrumentations (#11434)

11 months agochore(deps): update test (#11417)
renovate[bot] [Mon, 29 Jul 2024 01:11:08 +0000 (09:11 +0800)] 
chore(deps): update test (#11417)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
11 months agochore(docs): update the minimum requeird version of node and pnpm (#11443) [ci skip]
wzc520pyfm [Mon, 29 Jul 2024 01:10:52 +0000 (09:10 +0800)] 
chore(docs): update the minimum requeird version of node and pnpm (#11443) [ci skip]

11 months agofix(deps): update compiler (#11416)
renovate[bot] [Mon, 29 Jul 2024 01:06:40 +0000 (09:06 +0800)] 
fix(deps): update compiler (#11416)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
11 months agochore(deps): update all non-major dependencies (#11415)
renovate[bot] [Mon, 29 Jul 2024 01:06:19 +0000 (09:06 +0800)] 
chore(deps): update all non-major dependencies (#11415)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
11 months agochore(deps): update autofix-ci/action digest to ff86a55 (#11414)
renovate[bot] [Mon, 29 Jul 2024 01:06:00 +0000 (09:06 +0800)] 
chore(deps): update autofix-ci/action digest to ff86a55 (#11414)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
11 months agofeat(hydration): support suppressing hydration mismatch via data-allow-mismatch
Evan You [Thu, 25 Jul 2024 03:22:27 +0000 (11:22 +0800)] 
feat(hydration): support suppressing hydration mismatch via data-allow-mismatch

11 months agorelease: v3.5.0-alpha.4 v3.5.0-alpha.4
Evan You [Wed, 24 Jul 2024 15:41:40 +0000 (23:41 +0800)] 
release: v3.5.0-alpha.4

11 months agochore: Merge branch 'main' into minor
Evan You [Wed, 24 Jul 2024 15:37:31 +0000 (23:37 +0800)] 
chore: Merge branch 'main' into minor

11 months agorelease: v3.4.34 v3.4.34
Evan You [Wed, 24 Jul 2024 15:30:30 +0000 (23:30 +0800)] 
release: v3.4.34

11 months agorefactor: use hasChanged for useModel comparisons
Evan You [Wed, 24 Jul 2024 15:26:13 +0000 (23:26 +0800)] 
refactor: use hasChanged for useModel comparisons

11 months agofix(defineModel): correct update with multiple changes in same tick (#11430)
Tycho [Wed, 24 Jul 2024 15:25:22 +0000 (23:25 +0800)] 
fix(defineModel): correct update with multiple changes in same tick (#11430)

close #11429

11 months agofix(useId): properly mark async boundary for already resolved async component
Evan You [Wed, 24 Jul 2024 15:08:56 +0000 (23:08 +0800)] 
fix(useId): properly mark async boundary for already resolved async component

11 months agotest: add test case for useId
Evan You [Wed, 24 Jul 2024 14:50:31 +0000 (22:50 +0800)] 
test: add test case for useId

11 months agofix(suspense/hydration): fix hydration timing of async component inside suspense
Evan You [Wed, 24 Jul 2024 14:15:25 +0000 (22:15 +0800)] 
fix(suspense/hydration): fix hydration timing of async component inside suspense

close #6638

11 months agorefactor: remove unnecessary else
Evan You [Wed, 24 Jul 2024 13:58:04 +0000 (21:58 +0800)] 
refactor: remove unnecessary else

11 months agorelease: v3.5.0-alpha.3 v3.5.0-alpha.3
Evan You [Fri, 19 Jul 2024 10:14:31 +0000 (18:14 +0800)] 
release: v3.5.0-alpha.3

11 months agochore: Merge branch 'main' into minor
Evan You [Fri, 19 Jul 2024 10:07:42 +0000 (18:07 +0800)] 
chore: Merge branch 'main' into minor

11 months agofeat(runtime-core): useId() (#11404)
Evan You [Fri, 19 Jul 2024 10:06:02 +0000 (18:06 +0800)] 
feat(runtime-core): useId() (#11404)

11 months agorelease: v3.4.33 v3.4.33
Evan You [Fri, 19 Jul 2024 09:24:34 +0000 (17:24 +0800)] 
release: v3.4.33

11 months agorefactor(runtime-core): remove attrsProxy and slotsProxy from instance (#11390)
edison [Fri, 19 Jul 2024 09:02:14 +0000 (17:02 +0800)] 
refactor(runtime-core): remove attrsProxy and slotsProxy from instance (#11390)

11 months agofix(runtime-dom): handle undefined values in v-html (#11403)
Tycho [Fri, 19 Jul 2024 08:52:03 +0000 (16:52 +0800)] 
fix(runtime-dom): handle undefined values in v-html (#11403)

11 months agochore(build): fix build error on Windows (#11389)
Hongkun Peng [Fri, 19 Jul 2024 08:48:13 +0000 (16:48 +0800)] 
chore(build): fix build error on Windows (#11389)

11 months agochore: move useTemplateRef tests
Evan You [Fri, 19 Jul 2024 07:50:20 +0000 (15:50 +0800)] 
chore: move useTemplateRef tests

11 months agofix(build): enable SSR branches in esm-browser builds
Evan You [Fri, 19 Jul 2024 04:02:24 +0000 (12:02 +0800)] 
fix(build): enable SSR branches in esm-browser builds

This enables the logic necessary to pick up the correct current instance
when using esm-browser builds for in-browser SSR, and fixes the problem
of `getCurrentInstance()` returning null during SSR in the SFC playground.

11 months agoworkflow: enable prod hydration details in dev script
Evan You [Fri, 19 Jul 2024 03:14:00 +0000 (11:14 +0800)] 
workflow: enable prod hydration details in dev script

11 months agorefactor: move useTemplateRef file
Evan You [Fri, 19 Jul 2024 02:50:06 +0000 (10:50 +0800)] 
refactor: move useTemplateRef file

11 months agotest(teleport): test for accessing template ref inside teleport in mounted
Evan You [Thu, 18 Jul 2024 13:15:27 +0000 (21:15 +0800)] 
test(teleport): test for accessing template ref inside teleport in mounted

11 months agofeat(teleport): support deferred Teleport (#11387)
Evan You [Thu, 18 Jul 2024 13:06:48 +0000 (21:06 +0800)] 
feat(teleport): support deferred Teleport (#11387)

close #2015
close #11386

11 months agofeat: useTemplateRef()
Evan You [Wed, 17 Jul 2024 10:20:23 +0000 (18:20 +0800)] 
feat: useTemplateRef()

11 months agochore: update comments for proxyRefs
Evan You [Wed, 17 Jul 2024 10:01:13 +0000 (18:01 +0800)] 
chore: update comments for proxyRefs

11 months agochore: Merge branch 'main' into minor
Evan You [Wed, 17 Jul 2024 09:32:31 +0000 (17:32 +0800)] 
chore: Merge branch 'main' into minor

11 months agorelease: v3.4.32 v3.4.32
Evan You [Wed, 17 Jul 2024 09:07:05 +0000 (17:07 +0800)] 
release: v3.4.32

11 months agofix(runtime-core): do not emit when defineModel ref is set with same value (#11162)
yangxiuxiu [Wed, 17 Jul 2024 08:46:10 +0000 (16:46 +0800)] 
fix(runtime-core): do not emit when defineModel ref is set with same value (#11162)

close #11125

11 months agofix(runtime-dom): properly handle innerHTML unmount into new children (#11159)
linzhe [Wed, 17 Jul 2024 08:37:14 +0000 (16:37 +0800)] 
fix(runtime-dom): properly handle innerHTML unmount into new children (#11159)

close #9135

11 months agofix(compiler-sfc): correctly resolve type annotation for declared function (#11279)
Zhaolin Liang [Wed, 17 Jul 2024 07:06:14 +0000 (15:06 +0800)] 
fix(compiler-sfc): correctly resolve type annotation for declared function (#11279)

close #11266

11 months agotest: test case for #11286
Evan You [Wed, 17 Jul 2024 06:29:54 +0000 (14:29 +0800)] 
test: test case for #11286

11 months agofix(hydration): fix tracking of reactive style objects in production
Evan You [Wed, 17 Jul 2024 04:14:25 +0000 (12:14 +0800)] 
fix(hydration): fix tracking of reactive style objects in production

close #11372

11 months agofix(compiler-sfc): should properly walk desutructured props when reactive destructure...
Evan You [Wed, 17 Jul 2024 03:41:02 +0000 (11:41 +0800)] 
fix(compiler-sfc): should properly walk desutructured props when reactive destructure is not enabled

close #11325

11 months agofix(reactivity): ensure `unref` correctly resolves type for `ShallowRef` (#11360)
Tycho [Wed, 17 Jul 2024 02:09:57 +0000 (10:09 +0800)] 
fix(reactivity): ensure `unref` correctly resolves type for `ShallowRef` (#11360)

close #11356

11 months agofeat(runtime-core): add app.config.throwUnhandledErrorInProduction
Evan You [Wed, 17 Jul 2024 02:05:09 +0000 (10:05 +0800)] 
feat(runtime-core): add app.config.throwUnhandledErrorInProduction

close #7876

11 months agofix(runtime-core): avoid recursive warning
Evan You [Tue, 16 Jul 2024 10:05:44 +0000 (18:05 +0800)] 
fix(runtime-core): avoid recursive warning

close #8074

11 months agofix(teleport): skip teleported nodes when locating patch anchor
Evan You [Tue, 16 Jul 2024 09:17:25 +0000 (17:17 +0800)] 
fix(teleport): skip teleported nodes when locating patch anchor

close #9071
close #9134
close #9313

Tests reused from #9313

11 months agofix(reactivity): shallowReactive map "unwraps" the nested refs (#8503)
LiuSeen [Tue, 16 Jul 2024 07:07:06 +0000 (15:07 +0800)] 
fix(reactivity): shallowReactive map "unwraps" the nested refs (#8503)

fix #8501
fix #11249

11 months agotest(runtime-core): test effectscope instance null (#8397)
Linghao Su [Tue, 16 Jul 2024 03:40:53 +0000 (11:40 +0800)] 
test(runtime-core): test effectscope instance null (#8397)

11 months agochore: format
Evan You [Tue, 16 Jul 2024 03:09:34 +0000 (11:09 +0800)] 
chore: format

11 months agofix(hydration): handle consectuvie text nodes during hydration
Evan You [Tue, 16 Jul 2024 03:06:45 +0000 (11:06 +0800)] 
fix(hydration): handle consectuvie text nodes during hydration

close #7285
close #7301

11 months agotest: edge case for decodeHtmlBrowser (#11339)
fang-ng4 [Mon, 15 Jul 2024 14:36:48 +0000 (22:36 +0800)] 
test: edge case for decodeHtmlBrowser (#11339)

Co-authored-by: unknown <fangliang@qq.com>
11 months agoperf(server-render): avoid unnecessary checks in `createBuffer` (#11364)
Vlad [Mon, 15 Jul 2024 14:31:27 +0000 (01:31 +1100)] 
perf(server-render): avoid unnecessary checks in `createBuffer` (#11364)

11 months agochore(deps): update dependency rollup to ^4.18.1 (#11358)
renovate[bot] [Mon, 15 Jul 2024 13:56:55 +0000 (21:56 +0800)] 
chore(deps): update dependency rollup to ^4.18.1 (#11358)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
11 months agofix(runtime-core): use separate prop caches for components and mixins (#11350)
skirtle [Mon, 15 Jul 2024 13:56:37 +0000 (14:56 +0100)] 
fix(runtime-core): use separate prop caches for components and mixins (#11350)

Co-authored-by: Red Huang <gcaaa31928@gmail.com>
close #7998

11 months agofix(hmr): hmr reload should work with async component (#11248)
_Kerman [Mon, 15 Jul 2024 13:54:53 +0000 (21:54 +0800)] 
fix(hmr): hmr reload should work with async component (#11248)

11 months agochore: fix @babel/types version in pnpm catalog (#11349)
btea [Mon, 15 Jul 2024 08:31:27 +0000 (16:31 +0800)] 
chore: fix @babel/types version in pnpm catalog (#11349)

11 months agochore: remove codspeed plugin
Evan You [Mon, 15 Jul 2024 08:29:25 +0000 (16:29 +0800)] 
chore: remove codspeed plugin

11 months agochore: remove terser dep
Evan You [Mon, 15 Jul 2024 08:28:47 +0000 (16:28 +0800)] 
chore: remove terser dep

11 months agofix(build): use consistent minify options from previous terser config
Evan You [Mon, 15 Jul 2024 08:25:58 +0000 (16:25 +0800)] 
fix(build): use consistent minify options from previous terser config

11 months agochore(deps): update all non-major dependencies (#11357)
renovate[bot] [Mon, 15 Jul 2024 08:22:03 +0000 (16:22 +0800)] 
chore(deps): update all non-major dependencies (#11357)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
12 months agofix(v-once): properly unmount v-once cached trees 11347/head
Evan You [Sat, 13 Jul 2024 13:38:32 +0000 (21:38 +0800)] 
fix(v-once): properly unmount v-once cached trees

close #5154
close #8809

12 months agorefactor: isVNode -> isVOnce
Evan You [Sat, 13 Jul 2024 13:07:45 +0000 (21:07 +0800)] 
refactor: isVNode -> isVOnce

12 months agorefactor: memoIndex -> cacheIndex
Evan You [Sat, 13 Jul 2024 13:05:06 +0000 (21:05 +0800)] 
refactor: memoIndex -> cacheIndex

12 months agorefactor(compiler): move patchFlag text generation to codegen phase
Evan You [Sat, 13 Jul 2024 10:21:02 +0000 (18:21 +0800)] 
refactor(compiler): move patchFlag text generation to codegen phase

12 months agochore: improve comments
Evan You [Sat, 13 Jul 2024 07:40:09 +0000 (15:40 +0800)] 
chore: improve comments

12 months agofix(v-model): component v-model modifiers trim and number when cases don't match...
skirtle [Sat, 13 Jul 2024 06:57:37 +0000 (07:57 +0100)] 
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>
12 months agoperf(server-renderer): optimize `unrollBuffer` by avoiding promises (#11340)
Vlad [Fri, 12 Jul 2024 14:39:21 +0000 (01:39 +1100)] 
perf(server-renderer): optimize `unrollBuffer` by avoiding promises (#11340)

12 months agofix(runtime-core): force diff slot fallback content and provided content
Evan You [Fri, 12 Jul 2024 10:22:31 +0000 (18:22 +0800)] 
fix(runtime-core): force diff slot fallback content and provided content

fix #7256
fix #9200
fix #9308

close #7266
close #9213

12 months agofix(runtime-core): more edge case fix for manually rendered compiled slot
Evan You [Fri, 12 Jul 2024 09:29:42 +0000 (17:29 +0800)] 
fix(runtime-core): more edge case fix for manually rendered compiled slot

close #11336

12 months agotest: test case for 3d34f406a / #10870
Evan You [Thu, 11 Jul 2024 17:25:08 +0000 (01:25 +0800)] 
test: test case for 3d34f406a / #10870

12 months agofix(runtime-core): errors during component patch should be caught by error handlers
Evan You [Thu, 11 Jul 2024 17:24:17 +0000 (01:24 +0800)] 
fix(runtime-core): errors during component patch should be caught by error handlers

12 months agofix(runtime-core): bail manually rendered compiler slot fragments in all cases
Evan You [Thu, 11 Jul 2024 16:34:05 +0000 (00:34 +0800)] 
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

12 months agochore(repl): avoid duplicate formatter mounts (#10472)
白雾三语 [Thu, 11 Jul 2024 09:30:41 +0000 (17:30 +0800)] 
chore(repl): avoid duplicate formatter mounts (#10472)

close #10466

12 months agofix(defineModel): force local update when setter results in same emitted value
Evan You [Thu, 11 Jul 2024 08:59:55 +0000 (16:59 +0800)] 
fix(defineModel): force local update when setter results in same emitted value

fix #10279
fix #10301

12 months agoworkflow: use pnpm catalog for workspace deps (#11317)
Evan You [Mon, 8 Jul 2024 12:06:37 +0000 (20:06 +0800)] 
workflow: use pnpm catalog for workspace deps (#11317)

ref https://pnpm.io/catalogs