Skip to content

[repo-assist] build: upgrade tree-sitter-typescript 0.21.2 β†’ 0.23.2Β #390

Description

@github-actions

πŸ€– This PR was created by Repo Assist, an automated AI assistant.

Summary

Upgrades tree-sitter-typescript from 0.21.2 to 0.23.2 β€” the latest version that is compatible with the current tree-sitter@0.21.1 core (its peer dependency is ^0.21.0).

What Changed

Package Before After
tree-sitter-typescript 0.21.2 0.23.2

All other tree-sitter dependencies are unchanged.

Why tree-sitter-typescript@0.23.2?

The 0.23.x series of the TypeScript grammar brings:

  • Improved TypeScript 5.x support (const type parameters, variadic tuple labels, override keyword, decorator placement)
  • More accurate JSX/TSX parsing edge cases
  • Improved handling of satisfies and using keywords

The update is drop-in compatible: the peer dep ^0.21.0 is satisfied by our tree-sitter@0.21.1.

Why Not Upgrade tree-sitter Core?

Investigated a coordinated ecosystem upgrade (tree-sitter 0.21.1β†’0.22.x or 0.25.x). Found the ecosystem is currently fragmented:

Package Current Latest Requires tree-sitter
tree-sitter-typescript@0.23.2 0.21.2 0.23.2 ^0.21.0 (0.21.x only)
tree-sitter-java@0.23.5 0.23.5 0.23.5 ^0.21.1 (0.21.x only)
tree-sitter-rust@0.24.0 0.21.0 0.24.0 ^0.22.1 (0.22.x only)
tree-sitter-c-sharp@0.23.5 0.23.1 0.23.5 ^0.25.0 (0.25.x)
tree-sitter-go@0.25.x 0.21.2 0.25.x ^0.25.0 (0.25.x)

There is no single tree-sitter version that satisfies all parsers at their latest. A full ecosystem upgrade must wait until all language grammars align on a common tree-sitter version. This is tracked in memory for a future run.

Test Status

  • npm run compile β€” βœ… passes
  • npm run lint β€” βœ… passes
  • npm run test:unit β€” βœ… 103/103 tests pass

Warning

Protected Files β€” Push Permission Denied

This was originally intended as a pull request, but the patch modifies protected files. A human must create the pull request manually.

Protected files
  • package-lock.json
  • package.json

The push was rejected because GitHub Actions does not have workflows permission to push these changes, and is never allowed to make such changes, or other authorization being used does not have this permission.

Create the pull request manually
# Download the patch from the workflow run
gh run download 27874145275 -n agent -D /tmp/agent-27874145275

# Create a new branch
git checkout -b repo-assist/eng-tree-sitter-upgrade-20260620-73d67fd088892884 main

# Apply the patch (--3way handles cross-repo patches)
git am --3way /tmp/agent-27874145275/aw-repo-assist-eng-tree-sitter-upgrade-20260620.patch

# Push the branch and create the pull request
git push origin repo-assist/eng-tree-sitter-upgrade-20260620-73d67fd088892884
gh pr create --title '[repo-assist] build: upgrade tree-sitter-typescript 0.21.2 β†’ 0.23.2' --base main --head repo-assist/eng-tree-sitter-upgrade-20260620-73d67fd088892884 --repo askpt/code-metrics

Warning

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • releaseassets.githubusercontent.com

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "releaseassets.githubusercontent.com"

See Network Configuration for more information.

Generated by 🌈 Repo Assist, see workflow run. Learn more.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions