npm / vue-tsc
vue-tsc
What changed in vue-tsc 3, from its official release notes, upgrade guides and advisories. Also covers @vue/language-core, vue-component-type-helpers. Sources checked 2026-11-30.
15 breaking1 security5 deprecations12 new APIs and options4 performance5 behavior and defaults47 tooling91 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initvue-tsc 3180 changes
Breaking changes 15
Bindings of generic directive hooks are now checked.
Stops component-meta from checking JavaScript Vue files as TypeScript.
Overrides the inherited plugin list instead of being deduplicated during resolution.
class and style are no longer treated as boolean properties.
Slot props are camelized regardless of the htmlAttributes option.
Plugin configs are now placed under ctx.config.
Prioritizes non-warning completion entries over warning entries.
Narrows component and directive types, affecting the types available when using them.
Removes the ComponentType helper.
A
style="..."attribute now generates{}instead of its string value.Removed special code-generation logic for the style attribute.
Unused @vue-expect-error directives are now reported on components with loose props checks, including in v-else branches.
Drops support for defineProp.
Prevents global types generation in declaration files.
Prevents eager inference of slot props from generics.
Security 1
Improved handling of untrusted Vue files.
Deprecations 5
The allCodeFeatures API is deprecated as code features are centralized.
Deprecates the forceUseTs option.
Deprecates the noDeclarations option.
The
__internal__.tsLsfield is deprecated.The
rawTypefield is deprecated.
New APIs and options 12
Makes the VS Code welcome page configurable.
Language plugins can now be configured.
Adds tags to slot metadata.
Gets preferences and formatOptions in tsserver.
Component metadata now includes a description field.
Component metadata now includes a name field.
Settings are available to enable per-block formatting.
The
vaporattribute is now supported.Adds the ComponentAttrs type for attribute extraction.
Introduces the globalTypesPath option.
Introduces the strictCssModules option.
Introduces the strictVModel option.
Performance 4
Reduces focus mode overhead in the VS Code extension.
A subset of template node transforms was rewritten for performance.
Virtual code is cached by scriptId.
Skipped unnecessary runtime code-generation steps.
Behavior and default changes 5
Unknown components are typed without diagnostic filters.
Already-set props are excluded from inherited attrs only when this option is enabled.
Document symbols use the default HTML data provider.
Object keys are inferred as strings when they do not extend string.
Component auto import is enhanced.
Tooling 47
Hovering setup refs in a template shows the unwrapped type.
Infers the first parameter type of a default factory for defineModel.
Supports calling template bindings without
.value.Generates full fragment props for type checking.
Different extension sets across project references are supported.
Checks unused generic type parameters.
Upgrade to TypeScript 7 and support @typescript/typescript6.
Support vapor directives in language-core.
Setup bindings are included as potential component names.
Hints for destructured props respect variable hoisting.
Duplicate event listeners are detected across name formats.
Preserves literal types for inline v-for sources, allowing their literal types to remain available to type checking.
Gets component prop details from symbols.
Skips unchecked JS identifiers.
Includes extraFileExtensions in the tsserver configure request payload.
Props completion follows TypeScript behavior, filters fallback global completions, and returns props only for component nodes.
Adds checks for required fallthrough attributes.
Navigation now works for kebab-case declarations in GlobalComponents.
SCSS @import navigation now supports TypeScript module resolution.
Uses a regex for TypeScript extension patching to support VS Code 1.110+.
Type annotation is now supported via generics.
Quick info is forwarded only for original results without tags.
Completion edits for boolean props strip
="".Avoids duplicate directive modifiers in completion.
Pre-maps the HTML to Pug offset attribute.
Quick info and suggestion diagnostics are forwarded only for setup bindings.
Corrects code features on v-bind shorthands of special attributes.
Shorthand props are shown only when no prefix has been typed.
Handles type imports in component auto-import.
Handles import type nodes in the definition proxy.
Adds tags to exposed metadata.
Renaming global components now includes end tag locations.
Supports markdown JSDoc for rich hover message descriptions.
Adds rich hover messages in the language service.
Adds support for the
<!-- @strictTemplates -->magic comment.Adds support for multiline attributes on
<script>and<style>tags in VS Code.Adds tsconfig-based document link support for Pug.
Adds support for formatting a selected range in VS Code.
The template now supports the “Add Import” quick fix.
JSDoc information from
<script setup>is now mapped.The tsdk path is now supported for Eclipse Theia.
File references can now be triggered on <template>.
Adds navigation of events written with v-on syntax.
Adds resolution of external stylesheets.
Adds type support for slot children.
Adds document links for template refs.
Adds autocomplete for props with union types.
Fixes and other changes 91
Dot-value bindings are re-asserted in template closures, avoiding incorrect binding types.
Slot props for dynamic slot names in generic components no longer resolve to never.
The $event parameter of inline handlers is explicitly typed.
Malformed html.customData configuration no longer crashes the language service.
Auto-import access maps the whole hyphenated directive name.
Emitted events are omitted from inherited attrs of generic components.
Generated JavaScript slot code avoids a non-null assertion.
Component context variables are declared before slot code.
Tag navigation works again for barrel imports.
Template virtual code is isolated from setup control flow, improving template type checking.
Leading @ts-nocheck and triple-slash reference directives remain effective in script setup.
The v-model assignment target is parenthesized in generated code.
A const type parameter keeps literal bindings on TS 7.1.
The withDotValue assertion no longer causes TS2454.
Avoids calling registerHooks on buggy Node versions.
Setup macros are generated without static imports.
Reports duplicate CSS module names, including names that are not identifiers.
Checks directive bindings with short arity by padding directive hook signatures.
Prevents typedef JSDoc from leaking into emitted declaration files.
Continues reference span fix-up when files have no styles.
Corrects template mapping boundaries and eliminates unmapped diagnostics.
Prevents watch mode from crashing on incremental builds.
Preserves union props when using withDefaults.
Invalidates module resolution caches when files are deleted.
Invalidates casing detection after template changes.
Trailing whitespace after generic parameter commas is ignored, preventing it from affecting type analysis.
SFC blocks are no longer extracted across inline Markdown code.
The item type is resolved over generic sources, improving type inference for v-for items.
Preserves trailing and current directive modifiers when completing inside a directive and when filtering duplicates.
Single-expression event handlers are wrapped to avoid automatic semicolon insertion after return.
Const globals are filtered from template completions.
Event handler expressions are treated as compound more accurately, preserving return types.
Inference is made type-safe across the .d.ts boundary.
CSS v-bind parsing now matches upstream behavior.
Duplicate listener checks now include event modifiers and raw event parts.
Prevents grammar scopes from leaking in capitalized tags.
Preserves TypeScript auto imports behavior in Vue files.
Aligns identifier skipping for v-bind shorthand with interpolation.
Avoids reporting an extraneous children error for conditional slots.
Resolves the TypeScript plugin path from the resolved server path.
Completion edits strip
=""only for plain boolean props, and the default data provider is reset after using the Vue data provider.Re-supports html.customData for supplying custom HTML data.
Avoids infinite diagnostics on Vue files when project diagnostics is enabled.
Root-node collection now penetrates v-if branch fragments, improving single-root detection.
File rename edits are triggered when moving folders with Vue files.
Inline markdown syntax is no longer processed in semantic-aware segments.
Generates the $slots type correctly in templates when using defineSlots.
Avoids false positives when detecting destructured props on binding property names.
Infers only the readonly component of arrays in v-for.
Backtick attributes containing both quote types are handled.
The template is re-parsed when interpolation syntax breaks.
Using defineModel in lang="js" no longer breaks the AST.
Indentation for <style> and <script> tags is corrected.
Rename behavior is corrected for same-name shorthands in templates.
Strings are no longer used with yield*.
Provides accurate mapping for Pug shorthands.
Schema resolution is skipped correctly when option is false.
Array types are now inferred in v-for.
Finding references to CSS classes now includes the leading dot.
Filters irrelevant properties from exposed metadata.
Fixes a missing module error that occurs after a file rename.
Correctly resolves
<script src="">references.Aligns the v-for key type with Object.keys.
Reverts an overcorrection in v-for type inference, changing the types inferred for v-for expressions.
Makes complex export expressions fault-tolerant.
Avoids generating component options within the setup scope.
Restores default import bindings for template scope.
Avoids invalid __VLS_Slots generation, preventing incorrect generated slot types.
The
const props =completion is skipped inside StringLiteral.Promises are now handled properly when resolving CSS links.
The
$eltype is now inferred for generic components.Components with HTML void-element names are now formatted correctly.
A leading
<in SFC scripts is now handled as an operator.Optional boolean props now have consistent types.
Completion now works for the second scoped class name.
Navigation for
v-bind="$attrs"works wheninferTemplateDollarAttrsis disabled.Fixed defineModel for generic component types.
Deduplicated single root element types.
Updated template content is now read from the correct source.
Stopped generating variable accesses for template refs used in v-bind shorthand.
Fixed a crash during single-file checks.
HTML snippets are no longer auto-inserted in template interpolation, and the HTMLDocument structure is corrected.
Directive comments before v-else are now respected.
Corrects syntax highlighting in templates using lang="html".
Only defined emit props are omitted.
Fixes a syntax error when propTypes has no elements.
Corrects code generation for auto imports, src paths and useCssModule/useTemplateRef code features.
Drops undefined from optional prop types with defaults in templates.
Generic props no longer infer as unknown when using Prettify<T>.
Corrects type inference and code generation for template expressions, refs, slots, models and props.
Improves fault tolerance for unsupported script languages.