Update dependency vue to v3.4.18 - autoclosed
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
vue (source) | dependencies | minor | 3.3.11 -> 3.4.18 |
⚠ WarningSome dependencies could not be looked up. Check the warning logs for more information.
Release Notes
vuejs/core (vue)
v3.4.18
Bug Fixes
- dx: warn against reserved keys as prop name (77a804b), closes #10281
- runtime-dom: ensure v-show respects display value set via v-bind (#10297) (c224897), closes #10151
v3.4.17
Reverts
- fix(runtime-dom): ensure v-show respects display value set via v-bind (#10161) (2cd5b05), closes #10294 #10151
v3.4.16
Bug Fixes
- compiler-core: handle same-name shorthand edge case for in-DOM templates (cb87b62), closes #10280
- compiler-core: support v-bind shorthand syntax for dynamic slot name (#10218) (91f058a), closes #10213
- deps: update compiler (#10269) (336bb65)
- hydration: fix SFC style v-bind hydration mismatch warnings (#10250) (f0b5f7e), closes #10215
- reactivity: avoid infinite recursion from side effects in computed getter (#10232) (0bced13), closes #10214
-
reactivity: handle
MaybeDirty
recurse (#10187) (6c7e0bd), closes #10185 -
reactivity: skip non-extensible objects when using
markRaw
(#10289) (2312184), closes #10288 - runtime-core: avoid inlining isShallow (#10238) (53eee72)
- runtime-core: support for nested calls to runWithContext (#10261) (75e02b5), closes #10260
- runtime-dom: ensure v-show respects display value set via v-bind (#10161) (9b19f09), closes #10151
- runtime-dom: fix option selected update failed (#10200) (f31d782), closes #10194 #10267
Reverts
- perf(templateRef): avoid double render when using template ref on v-for (eb1b911), closes #9908 #10210 #10234
v3.4.15
Bug Fixes
- compiler-sfc: fix type resolution for symlinked node_modules structure w/ pnpm (75e866b), closes #10121
- correct url for production error reference links (c3087ff)
- hydration: fix incorect mismatch warning for option with non-string value and inner text (d16a213)
- reactivity: re-fix #10114 (#10123) (c2b274a)
- runtime-core: should not warn out-of-render slot fn usage when mounting another app in setup (#10125) (6fa33e6), closes #10124
Performance Improvements
- templateRef: avoid double render when using template ref on v-for (de4d2e2), closes #9908
- v-model: optimize v-model multiple select w/ large lists (2ffb956), closes #10014
v3.4.14
Bug Fixes
- compiler-sfc: enable prefixIdentifiers by default when reparsing on consumed AST (#10105) (48bf8e4)
- deps: update dependency postcss to ^8.4.33 (#10110) (a557006)
- reactivity: fix regression for computed with mutation (#10119) (20f62af), closes #10114
v3.4.13
Bug Fixes
v3.4.12
Reverts
- fix(reactivity): correct dirty assign in render function (#10091) (8b18481), closes #10098 #10100
v3.4.11
Bug Fixes
- hydration: improve mismatch when client value is null or undefined (#10086) (08b60f5)
- reactivity: correct dirty assign in render function (#10091) (8d04205), closes #10082
- runtime-core: filter single root for nested DEV_ROOT_FRAGMENT (#8593) (d35b877), closes #5203 #8581 #10087
v3.4.10
Bug Fixes
- hydration: should not warn on falsy bindings of non-property keys (3907c87)
v3.4.9
Bug Fixes
- build: avoid accessing FEATURE_PROD_DEVTOOLS flag in root scope (dfd9654)
- hydration: do not warn against bindings w/ object values (dcc68ef)
- runtime-dom: unify behavior for v-show + style display binding (#10075) (cd419ae), closes #10074
- suspense: avoid double-patching nested suspense when parent suspense is not resolved (#10055) (bcda96b), closes #8678
v3.4.8
Bug Fixes
- hydration: fix class and style hydration mismatch message (5af3987), closes #10067
- hydration: improve attr hydration mismatch check for boolean attrs (972face), closes #10057 #10060
- suspense: fix more suspense patch before resolve edge cases (70ad4ca), closes #10017
v3.4.7
Bug Fixes
-
parser: skip compat mode check for SFC root
<template>
tags (#10034) (923d560) -
types: fix functional component for
h
(#9991) (438a74a)
Reverts
- "dx(computed): warn incorrect use of getCurrentInstance inside computed" (2fd3905)
v3.4.6
Bug Fixes
- build: revert "build: add production/development export conditions (#9977)" (7bd4e90), closes #10012 #10020
- fix post watcher fire timing on nested app mounts (3c3561e), closes #10005
- hydration: avoid hydration mismatch warning for styles with different order (#10011) (2701355), closes #10000 #10006
- runtime-core: handle fragment with null children (#10010) (3bf34b7), closes #10007
- scheduler: sort nested postFlushCbs (d9162df), closes #10003
- suspense: fix anchor for suspense with transition out-in (#9999) (a3fbf21), closes #9996
-
types: allow
null
type for textarea value (#9997) (c379bc2), closes #9904
v3.4.5
Bug Fixes
- compiler-sfc: fix co-usage of defineModel transform options and props destructure (b20350d), closes #9972
- compiler-sfc: fix sfc template unref rewrite for class instantiation (ae60a91), closes #6483 #6491
- compiler-ssr: fix node clone edge case caused by AST reuse (#9983) (7dbdb3e), closes #9981
- watch: cleanup watcher effect from scope when manually stopped (#9978) (d2d8955)
v3.4.4
Bug Fixes
- compiler-sfc: fix scss source map regression (71d3121), closes #9970 #9969
- compiler-sfc: use compilerOptions when re-parsing consumed AST (d94d8d4)
- defineModel: support kebab-case/camelCase mismatches (#9950) (10ccb9b)
- runtime-core: correctly assign suspenseId to avoid conflicts with the default id (#9966) (0648804), closes #9944
- ssr: avoid rendering transition-group slot content as a fragment (#9961) (0160264), closes #9933
-
watch: remove instance unmounted short circuit in getter of
watchEffect
(#9948) (f300a40) - watch: revert watch behavior when watching shallow reactive objects (a9f781a), closes #9965
Performance Improvements
- watch: avoid double traverse for reactive source (24d77c2)
v3.4.3
Bug Fixes
- compiler-sfc: respect sfc parse options in cache key (b8d58ec)
v3.4.2
Bug Fixes
- compiler-sfc: fix dev regression for dot / namespace component usage (dce99c1), closes #9947
- runtime-core: support deep: false when watch reactive (#9928) (4f703d1), closes #9916
- ssr: fix hydration error for slot outlet inside transition-group (#9937) (6cb00ed), closes #9933
v3.4.1
Bug Fixes
- dx: warn against reserved keys as prop name (77a804b), closes #10281
- runtime-dom: ensure v-show respects display value set via v-bind (#10297) (c224897), closes #10151
v3.4.0
Read this blog post for an overview of the release highlights.
Potential Actions Needed
-
To fully leverage new features in 3.4, it is recommended to also update the following dependencies when upgrading to 3.4:
- Volar / vue-tsc@^1.8.27 (required)
- @vitejs/plugin-vue@^5.0.0 (if using Vite)
- nuxt@^3.9.0 (if using Nuxt)
- vue-loader@^17.4.0 (if using webpack or vue-cli)
-
If using TSX with Vue, check actions needed in Removed: Global JSX Namespace.
-
Make sure you are no longer using any deprecated features (if you are, you should have warnings in the console telling you so). They may have been removed in 3.4.
Features
- general: MathML support (#7836) (d42b6ba), closes #7820
- reactivity: more efficient reactivity system (#5912) (16e06ca), closes #311 #1811 #6018 #7160 #8714 #9149 #9419 #9464
- reactivity: expose last result for computed getter (#9497) (48b47a1)
- runtime-core / dx: link errors to docs in prod build (#9165) (9f8ba98)
-
runtime-core: add
once
option to watch (#9034) (a645e7a) - runtime-core: provide full props to props validator functions (#3258) (8e27692)
- compiler-core: export error message (#8729) (f7e80ee)
- compiler-core: support specifying root namespace when parsing (40f72d5)
- compiler-core: support v-bind shorthand for key and value with the same name (#9451) (26399aa)
- compiler-core: improve parsing tolerance for language-tools (41ff68e)
- compiler-core: support accessing Error as global in template expressions (#7018) (bcca475)
- compiler-core: lift vnode hooks deprecation warning to error (8abc754)
- compiler-core: export runtime error strings (#9301) (feb2f2e)
- compiler-core: add current filename to TransformContext (#8950) (638f1ab)
- compiler-sfc: analyze import usage in template via AST (#9729) (e8bbc94), closes #8897 nuxt/nuxt#22416
- compiler-sfc: expose resolve type-based props and emits (#8874) (9e77580)
- compiler-sfc: bump postcss-modules to v6 (2a507e3)
- compiler-sfc: promote defineModel stable (#9598) (ef688ba)
-
compiler-sfc: support import attributes and
using
syntax (#8786) (5b2bd1d) -
compiler-sfc:
defineModel
support local mutation by default, remove local option (f74785b), closes /github.com/vuejs/rfcs/discussions/503#discussioncomment-7566278 -
ssr: add
__VUE_PROD_HYDRATION_MISMATCH_DETAILS__
feature flag (#9550) (bc7698d) - ssr: improve ssr hydration mismatch checks (#5953) (2ffc1e8), closes #5063
- types: use enum to replace const enum (#9261) (fff7b86), closes #1228
-
types: add emits and slots type to
FunctionalComponent
(#8644) (927ab17) -
types: export
AriaAttributes
type (#8909) (fd0b6ba) -
types: export
ObjectPlugin
andFunctionPlugin
types (#8946) (fa4969e), closes #8577 -
types: expose
DefineProps
type (096ba81) -
types: expose
PublicProps
type (#2403) (44135dc) -
types: improve event type inference when using
h
with native elements (#9756) (a625376) -
types: provide
ComponentInstance
type (#5408) (bfb8565) - types: support passing generics when registering global directives (#9660) (a41409e)
Performance Improvements
- compiler-sfc: avoid sfc source map unnecessary serialization and parsing (f15d2f6)
- compiler-sfc: remove magic-string trim on script (e8e3ec6)
- compiler-sfc: use faster source map addMapping (50cde7c)
- compiler-core: optimize away isBuiltInType (66c0ed0)
- compiler-core: optimize position cloning (2073236)
- codegen: optimize line / column calculation during codegen (3be53d9)
- codegen: optimize source map generation (c11002f)
- shared: optimize makeMap (ae6fba9)
BREAKING CHANGES
Global JSX Registration Removed
Starting in 3.4, Vue no longer registers the global JSX
namespace by default. This is necessary to avoid global namespace collision with React so that TSX of both libs can co-exist in the same project. This should not affect SFC-only users with latest version of Volar.
If you are using TSX, there are two options:
-
Explicitly set jsxImportSource to
'vue'
intsconfig.json
before upgrading to 3.4. You can also opt-in per file by adding a/* @​jsxImportSource vue */
comment at the top of the file. -
If you have code that depends on the presence of the global
JSX
namespace, e.g. usage of types likeJSX.Element
etc., you can retain the exact pre-3.4 global behavior by explicitly referencingvue/jsx
, which registers the globalJSX
namespace.
Note that this is a type-only breaking change in a minor release, which adheres to our release policy.
Deprecated Features Removed
- Reactivity Transform was marked deprecated in 3.3 and is now removed in 3.4. This change does not require a major due to the feature being experimental. Users who wish to continue using the feature can do so via the Vue Macros plugin.
-
app.config.unwrapInjectedRef
has been removed. It was deprecated and enabled by default in 3.3. In 3.4 it is no longer possible to disable this behavior. -
@vnodeXXX
event listeners in templates are now a compiler error instead of a deprecation warning. Use@vue:XXX
listeners instead. -
v-is
directive has been removed. It was deprecated in 3.3. Use theis
attribute withvue:
prefix instead.
v3.3.13
Bug Fixes
- compiler-core: fix v-on with modifiers on inline expression of undefined (#9866) (bae79dd), closes #9865
- runtime-dom: cache event handlers by key/modifiers (#9851) (04d2c05), closes #9849
- types: extract properties from extended collections (#9854) (24b1c1d), closes #9852
v3.3.12
Bug Fixes
- hydration: handle appear transition before patch props (#9837) (e70f4c4), closes #9832
- sfc/cssVars: fix loss of CSS v-bind variables when setting inline style with string value (#9824) (0a387df), closes #9821
- ssr: fix suspense hydration of fallback content (#7188) (60415b5)
-
types: add
xmlns:xlink
toSVGAttributes
(#9300) (0d61b42), closes #9299 -
types: fix
shallowRef
type error (#9839) (9a57158) - types: support for generic keyof slots (#8374) (213eba4)
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.