npm / @ast-grep/cli
@ast-grep/cli
What changed in @ast-grep/cli 0.45 to 0.51, from its official release notes, upgrade guides and advisories. Also covers @ast-grep/napi. Sources checked 2026-11-11.
6 breaking2 security10 new APIs and options1 behavior and defaults2 tooling12 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@ast-grep/cli 0.5117 changes
Breaking changes 4
The command fails when IDs are unmatched or when no tests run.
The convert transform no longer splits words at digits.
LSP columns are reported in UTF-16 code units.
Unknown top-level keys in rule config are rejected.
Security 1
A memory corruption issue with web-tree-sitter 0.26 is fixed.
New APIs and options 1
Project config now supports no-ignore.
Behavior and default changes 1
The inspect entity output now reports skipped files and the reason each file was skipped.
Tooling 2
CLI binaries are now distributed for musl Linux.
The project setup hint now uses the ast-grep name.
Fixes and other changes 8
A dollar sign followed by a digit remains literal in fix templates.
Special characters in GitHub format output are escaped.
Matching for macOS universal2 wheels is fixed.
Only metavariable sigils are replaced with the expando character.
Utility directories are bound for rules supplied through --inline-rules and --rules.
The SARIF log version is set to 2.1.0.
File paths in SARIF URIs are percent-encoded.
Files are preserved when update-all writes fail.
@ast-grep/cli 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/cli 0.455 changes
New APIs and options 3
Adds Markdown heading support to outline.
Adds a CLI option to set the minimum severity.
Adds namedChildren support to the napi API.
Fixes and other changes 2
Fixes the ordering requirement for ast-grep-ignore to take effect.
Anchors fallback signatures to names.