Socket
Socket
Sign inDemoInstall

vue

Package Overview
Dependencies
20
Maintainers
2
Versions
495
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1245
50Next

3.4.5

Diff

Changelog

Source

3.4.5 (2024-01-04)

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)
yyx990803
published 3.4.4 •

Changelog

Source

3.4.4 (2024-01-03)

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)
yyx990803
published 3.4.3 •

Changelog

Source

3.4.3 (2023-12-30)

Bug Fixes

  • compiler-sfc: respect sfc parse options in cache key (b8d58ec)
yyx990803
published 3.4.2 •

Changelog

Source

3.4.2 (2023-12-30)

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
yyx990803
published 3.4.1 •

Changelog

Source

3.4.1 (2023-12-30)

Bug Fixes

  • compat: correct enum value for COMPILER_FILTERS feature (#9875) (77d33e2)
  • defineModel: always default modifiers to empty object (9bc3c7e), closes #9945
  • defineModel: support local mutation when only prop but no listener is passed (97ce041)
  • types: fix defineModel watch type error (#9942) (4af8583), closes #9939

Features

  • compiler-sfc: support passing template parsing options when parsing sfc (6fab855) (necessary to fix https://github.com/vitejs/vite-plugin-vue/issues/322)

Read this blog post for an overview of the release highlights.

Potential Actions Needed

  1. 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)
  2. If using TSX with Vue, check actions needed in Removed: Global JSX Namespace.

  3. 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

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:

  1. Explicitly set jsxImportSource to 'vue' in tsconfig.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.

  2. If you have code that depends on the presence of the global JSX namespace, e.g. usage of types like JSX.Element etc., you can retain the exact pre-3.4 global behavior by explicitly referencing vue/jsx, which registers the global JSX 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 the is attribute with vue: prefix instead.
yyx990803
published 3.4.0 •

Changelog

Source

3.4.1 (2023-12-30)

Bug Fixes

  • compat: correct enum value for COMPILER_FILTERS feature (#9875) (77d33e2)
  • defineModel: always default modifiers to empty object (9bc3c7e), closes #9945
  • defineModel: support local mutation when only prop but no listener is passed (97ce041)
  • types: fix defineModel watch type error (#9942) (4af8583), closes #9939

Features

  • compiler-sfc: support passing template parsing options when parsing sfc (6fab855) (necessary to fix https://github.com/vitejs/vite-plugin-vue/issues/322)

Read this blog post for an overview of the release highlights.

Potential Actions Needed

  1. 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)
  2. If using TSX with Vue, check actions needed in Removed: Global JSX Namespace.

  3. 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

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:

  1. Explicitly set jsxImportSource to 'vue' in tsconfig.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.

  2. If you have code that depends on the presence of the global JSX namespace, e.g. usage of types like JSX.Element etc., you can retain the exact pre-3.4 global behavior by explicitly referencing vue/jsx, which registers the global JSX 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 the is attribute with vue: prefix instead.
yyx990803
published 3.4.0-rc.3 •

Changelog

Source

3.4.0-rc.3 (2023-12-27)

Bug Fixes

  • also export runtime error strings in all cjs builds (38706e4)

Features

  • defineModel: support modifiers and transformers (a772031)
yyx990803
published 3.4.0-rc.2 •

Changelog

Source

3.4.0-rc.2 (2023-12-26)

Bug Fixes

  • deps: update dependency @vue/repl to ^3.1.0 (#9911) (f96c413)
  • types: fix distribution of union types when unwrapping setup bindings (#9909) (0695c69), closes #9903
  • warning: ensure prod hydration warnings actually work (b4ebe7a)

Features

  • compiler-sfc: export aggregated error messages for compiler-core and compiler-dom (25c726e)
yyx990803
published 3.4.0-rc.1 •

Changelog

Source

3.4.0-rc.1 (2023-12-25)

Bug Fixes

  • compiler-core: fix parsing <script setup> generics with > (7aa3f25), closes #9890
  • compiler-sfc: fix type resolution for shared type w/ different generic parameters (a8d0b1b), closes #9871
  • ssr: avoid hydration mismatch warning for classes with different order (e585b0d)
yyx990803
published 2.7.16 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc