unstale

npm / ast-types

ast-types

What changed in ast-types 0.16, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-18.

9 new APIs and options1 behavior and defaults13 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

ast-types 0.1623 changes

New APIs and options 9

  • Registers decorators so visitors traverse and deep checks accept class declarations with decorators.

    0.16.3release notes

  • Registers options so visitors traverse and deep checks accept import attributes in import() types.

    0.16.3release notes

  • Allows kind to be "using" and "await using" for explicit resource management declarations.

    0.16.3release notes

  • CallExpression now carries TypeScript type arguments, and the visitor traverses them.

    0.16.2release notes

  • ExportAllDeclaration gains an exportKind field with value or type variants, supporting TypeScript type-only star exports.

    0.16.2release notes

  • ExportNamedDeclaration gains an exportKind field with value or type variants, supporting TypeScript type-only star exports.

    0.16.2release notes

  • specifiers now accepts ExportNamespaceSpecifier, ExportDefaultSpecifier and ExportBatchSpecifier; code reading local on every specifier needs an ExportSpecifier check.

    0.16.2release notes

  • NewExpression now carries TypeScript type arguments, and the visitor traverses them.

    0.16.2release notes

  • OptionalCallExpression now carries TypeScript type arguments, and the visitor traverses them.

    0.16.2release notes

Behavior and default changes 1

  • declaration now defaults to null, allowing Babel ASTs that omit the property for specifier-only exports to validate.

    0.16.2release notes

Fixes and other changes 13

  • Registers the optional field on array patterns so visitors traverse and deep checks accept these nodes.

    0.16.3release notes

  • Registers typeAnnotation on array patterns so visitors traverse and deep checks accept the shared Flow and TypeScript definition.

    0.16.3release notes

  • Registers the optional field on assignment patterns so visitors traverse and deep checks accept these nodes.

    0.16.3release notes

  • Registers typeAnnotation on assignment patterns so visitors traverse and deep checks accept the shared Flow and TypeScript definition.

    0.16.3release notes

  • Registers decorators so visitors traverse and deep checks accept class expressions with decorators.

    0.16.3release notes

  • Registers typeParameters so visitors traverse and deep checks accept explicit JSX type arguments.

    0.16.3release notes

  • Registers the optional field on object patterns so visitors traverse and deep checks accept these nodes.

    0.16.3release notes

  • Registers typeParameters so visitors traverse and deep checks accept TypeScript instantiation expressions such as f<T>.

    0.16.3release notes

  • Registers typeParameters so visitors traverse and deep checks accept TypeScript instantiation expressions such as typeof f<T>.

    0.16.3release notes

  • exported may be a string Literal; code reading exported.name needs to check for Identifier first.

    0.16.2release notes

  • The package is now published on the latest dist-tag, so npm install ast-types resolves to this release instead of the older build.

    0.16.2release notes

  • NodePath imported from the package is now usable as a generic type, and declaration imports no longer conflict with declared values under isolatedModules.

    0.16.2release notes

  • Type imported from the package is now usable as a generic type, and declaration imports no longer conflict with declared values under isolatedModules.

    0.16.2release notes