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@ast-grep/napi 0.512 changes
Tooling 1
The project setup hint now uses the ast-grep name.
Fixes and other changes 1
Files are preserved when update-all writes fail.
@ast-grep/napi 0.5011 changes
Breaking changes 2
Custom language loading now uses a policy, and custom language libraries require opt-in.
Schema validation now rejects null relation fields.
Security 1
The CLI can trust and revoke custom language policies.
New APIs and options 6
Java outline rules were added for annotation types and elements.
An outline rule was added for Java enum members.
An outline rule was added for Java module declarations.
An outline rule was added for Java record declarations.
Outline rules were added for Java wildcard imports.
Zig support was added.
Fixes and other changes 2
C/C++ declarator identifier names are now captured.
Java private and protected fields are now reported in the outline.
@ast-grep/napi 0.454 changes
New APIs and options 2
Adds Markdown heading support to outline.
Adds a CLI option to set the minimum severity.
Fixes and other changes 2
Fixes the ordering requirement for ast-grep-ignore to take effect.
Anchors fallback signatures to names.