Packages

@vue/compiler-sfc

3.5.46 · 20 Nov 2026MIT36.7M / weekRepositoryHomepagenpmAtom feed

Your version

3.5.22

25 Sep 2025Where it was published

3.5.46 is the newest release of 3.x.

In short

2 new16 fixed1 changed

Release note

Bug Fixes

  • compiler-core: identifiers in switch-case should not be inferred as references

  • compiler-dom: nodes with v-once shouldn't be stringified

  • compiler-sfc: add support for @vue-ignore in runtime type resolution

  • compiler-sfc: enhance inferRuntimeType to support TSMappedType with indexed access (#13848) (e388f1a), closes #13847

  • compiler-sfc: ensure css custom properties do not start with a digit

  • compiler-sfc: ensure props bindings register before compiling template (#13922) (abd5638), closes #13920

  • compiler-ssr: ensure v-show has a higher priority in SSR (#12171) (836b829), closes #12162

  • custom-element: properly mount multiple Teleports in custom element component w/ shadowRoot false (#13900) (5e1e791), closes #13899

  • custom-element: set prop runs pending mutations before disconnect (#13897) (c4a88cd), closes #13315

  • custom-element: use PatchFlags.BAIL for slot when props are present (#13907) (5358bca), closes #13904

  • reactivity: respect readonly during ref unwrapping (#13905) (aba7fed), closes #13903

  • reactivity: update iterator to check for completion instead of value presence

  • runtime-core: simplify block-tracking disabling in h helper

  • transition-group: run forceReflow on the correct document (fix #13849)

  • types: more precise types for Events and added missing definitions

  • types: set dom stub type to never instead of {} (#13915) (8620a61), closes #11564

  • types: widen directive arg type from string to any (#13758) (4b71706), closes #13757

Features

  • custom-element: allow specifying additional options for shadowRoot in custom elements (#12965) (47e628d), closes #12964

Reverts

  • Revert "fix(hmr): prevent VUE_HMR_RUNTIME from being overwritten by vue runtime in 3rd-party libraries" (#13925) (6b68f72), closes #13925

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.