unstale

npm / @ast-grep/napi

@ast-grep/napi

What changed in @ast-grep/napi 0.45 to 0.51, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.

2 breaking1 security8 new APIs and options1 tooling5 fixes and other

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

npx @unstale/cli init

@unstale/cli 0.2.1 on npm

@ast-grep/napi 0.512 changes

Tooling 1

  • The project setup hint now uses the ast-grep name.

    0.51.0release notes

Fixes and other changes 1

  • Files are preserved when update-all writes fail.

    0.51.0release notes

@ast-grep/napi 0.5011 changes

Breaking changes 2

  • Custom language loading now uses a policy, and custom language libraries require opt-in.

    0.50.0release notes

  • Schema validation now rejects null relation fields.

    0.50.0release notes

Security 1

  • The CLI can trust and revoke custom language policies.

    0.50.0release notes

New APIs and options 6

  • Java outline rules were added for annotation types and elements.

    0.50.0release notes

  • An outline rule was added for Java enum members.

    0.50.0release notes

  • An outline rule was added for Java module declarations.

    0.50.0release notes

  • An outline rule was added for Java record declarations.

    0.50.0release notes

  • Outline rules were added for Java wildcard imports.

    0.50.0release notes

  • Zig support was added.

    0.50.0release notes

Fixes and other changes 2

  • C/C++ declarator identifier names are now captured.

    0.50.0release notes

  • Java private and protected fields are now reported in the outline.

    0.50.0release notes

@ast-grep/napi 0.454 changes

New APIs and options 2

Fixes and other changes 2

  • Fixes the ordering requirement for ast-grep-ignore to take effect.

    0.45.3release notes

  • Anchors fallback signatures to names.

    0.45.3release notes