Skip to content

chore(ast-grep): upgrade to ast-grep 0.51.3 - #698

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
vendor/ast-grep/upgrade
Open

github-actions[bot] wants to merge 1 commit into
mainfrom
vendor/ast-grep/upgrade

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Upstream ast-grep is ahead of the version this repository pins.

This moves every @ast-grep/cli* pin in packages/cli/package.json
from 0.51.1 to 0.51.3 and regenerates
pnpm-lock.yaml. The pins move together on purpose: the platform
packages are selected by optional dependency, so a straggler left at
the old version is a different ast-grep on one platform than on the
others. sg-detect.cjs fails the run rather than open a partial bump.

The rewrite replaces a version string in pins it can already
enumerate and refuses if the count does not match, so it cannot add a
dependency or reformat the file. It also moves AST_GREP_VERSION in
capabilities.ts and refetches src/generated/ast-grep-rule-schema.json
for the 0.51.3 tag, and the workflow ran
engine-version-consistency against the result before pushing. What
this does not carry is judgment: if ast-grep-vendor-contract
is red on this pull request, ast-grep 0.51.3 added a language
or changed a measured behaviour, and that edit, the update ledger,
and the release note's prose belong in a child pull request.

This pull request rolls: if upstream releases again before it merges,
the branch, title, and body are rewritten to the newer version rather
than a second pull request being opened. Push a commit to the branch
and that stops — the workflow will not force-push over a commit it did
not write.


Upstream release notes — 0.51.3

https://github.com/ast-grep/ast-grep/releases/tag/0.51.3

  • feat(cli): load built-in outline rules from project config #2978
  • fix(cli): replace npm binaries atomically in postinstall #3083
  • chore(deps): update rust crate inquire to v0.9.5 #3097
  • fix(config): allow range rule with only one column on a single line #3091
  • Revert "chore(deps): update dependency node to v26 (#3069)" #3095
  • chore(deps): update dependency python to 3.15 #2996
  • chore(deps): update rust crate tree-sitter-scala to v0.26.13 #3086
  • chore(deps): update dependency @ast-grep/napi to v0.51.2 #3089
  • chore(deps): update rust crate libloading to v0.9.1 #3093
  • ci(pyo3): build Python 3.15 wheels on Linux and Windows #3094
  • chore(deps): update rust crate napi to v3.16.2 #3087
  • chore(deps): update rust crate napi-derive to v3.7.1 #3088
  • chore(npm): require Node.js 20 or later 4fd48c5
  • fix: bump pyo3 version c7e005c

@github-actions github-actions Bot added ast-grep-upgrade ast-grep pin bump from ast-grep-upgrade.yml. A rolling PR: each release rewrites it. automated Opened and maintained by a workflow, not a person. Read the PR body for what to do with it. labels Nov 16, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ast-grep-upgrade ast-grep pin bump from ast-grep-upgrade.yml. A rolling PR: each release rewrites it. automated Opened and maintained by a workflow, not a person. Read the PR body for what to do with it.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants