npm / @sveltejs/acorn-typescript
@sveltejs/acorn-typescript
What changed in @sveltejs/acorn-typescript 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-01.
20 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@sveltejs/acorn-typescript 120 changes
Fixes and other changes 20
Assignment target AST nodes preserve TypeScript assertion wrappers.
Classes with const type parameters parse correctly.
Enum declarations are registered as local runtime bindings.
Parser state is restored and callback events from abandoned parse branches are discarded.
Keywords parse correctly when used as tuple labels.
Type arguments on decorators parse correctly.
Type arguments are disambiguated from greater-than operators during parsing.
Type predicates parse correctly when parameters are named asserts.
Keywords parse correctly when used as type references.
Adds parsing support for decorators on declared and declared abstract classes.
Preserves parameters in generic async arrow function AST nodes.
Decodes astral JSX numeric entities and ignores inherited entity table names.
Parses JSX spread children as JSXSpreadChild nodes.
Isolates namespace variable scopes.
Allows static auto-accessor class fields.
Parses TypeScript expressions beginning with
<as yield arguments.Fixes export validation for ambient declarations in dts.
Avoids emitting duplicate comments.
Fixes handling of const initializers in ambient contexts.
Allows the
inoperator inside parenthesized expressions in aforloop initializer.