Skip to content

build: upgrade tree-sitter-typescript 0.21.2 → 0.23.2#391

Merged
askpt merged 2 commits into
mainfrom
repo-assist/eng-tree-sitter-upgrade-20260620-73d67fd088892884
Jun 20, 2026
Merged

build: upgrade tree-sitter-typescript 0.21.2 → 0.23.2#391
askpt merged 2 commits into
mainfrom
repo-assist/eng-tree-sitter-upgrade-20260620-73d67fd088892884

Conversation

@askpt

@askpt askpt commented Jun 20, 2026

Copy link
Copy Markdown
Owner

The tree-sitter-typescript grammar at 0.23.2 is compatible with the
current tree-sitter@0.21.1 core (peerDependency: ^0.21.0).

Changes in 0.23.x grammar:

  • Improved TypeScript 5.x support (const type parameters, variadic
    tuple labels, override accessors, etc.)
  • Better handling of decorator positioning
  • More accurate JSX / TSX parsing edge cases

The upgrade is a drop-in replacement: all 103 unit tests pass,
compile and lint are clean.

Note: a coordinated upgrade of the full tree-sitter ecosystem to 0.25.x
is the forward path to unlock tree-sitter-c-sharp@0.23.5,
tree-sitter-go@0.25.x, and others. However, tree-sitter-java@0.23.5 and
tree-sitter-rust@0.24.0 still peg to tree-sitter ^0.21.x and ^0.22.x
respectively, so the full upgrade must wait until all language parsers
align on a common tree-sitter version.

closes #390

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

The tree-sitter-typescript grammar at 0.23.2 is compatible with the
current tree-sitter@0.21.1 core (peerDependency: ^0.21.0).

Changes in 0.23.x grammar:
- Improved TypeScript 5.x support (const type parameters, variadic
  tuple labels, override accessors, etc.)
- Better handling of decorator positioning
- More accurate JSX / TSX parsing edge cases

The upgrade is a drop-in replacement: all 103 unit tests pass,
compile and lint are clean.

Note: a coordinated upgrade of the full tree-sitter ecosystem to 0.25.x
is the forward path to unlock tree-sitter-c-sharp@0.23.5,
tree-sitter-go@0.25.x, and others. However, tree-sitter-java@0.23.5 and
tree-sitter-rust@0.24.0 still peg to tree-sitter ^0.21.x and ^0.22.x
respectively, so the full upgrade must wait until all language parsers
align on a common tree-sitter version.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 20, 2026 15:03
@codecov

codecov Bot commented Jun 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 73.51%. Comparing base (02eceef) to head (743b056).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #391   +/-   ##
=======================================
  Coverage   73.51%   73.51%           
=======================================
  Files          13       13           
  Lines        4086     4086           
  Branches      426      426           
=======================================
  Hits         3004     3004           
  Misses       1080     1080           
  Partials        2        2           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the tree-sitter-typescript grammar dependency to improve TypeScript 5.x / TSX parsing accuracy while keeping the project on the existing tree-sitter@0.21.1 core.

Changes:

  • Bump tree-sitter-typescript from 0.21.2 to 0.23.2 in package.json.
  • Update package-lock.json accordingly, including new/updated transitive dependencies pulled in by tree-sitter-typescript@0.23.2 (notably its nested tree-sitter-javascript@0.23.1).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
package.json Updates the pinned tree-sitter-typescript version to 0.23.2.
package-lock.json Regenerates lock entries for tree-sitter-typescript@0.23.2 and its transitive dependency graph.

@askpt askpt merged commit 18c9c95 into main Jun 20, 2026
9 checks passed
@askpt askpt deleted the repo-assist/eng-tree-sitter-upgrade-20260620-73d67fd088892884 branch June 20, 2026 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[repo-assist] build: upgrade tree-sitter-typescript 0.21.2 → 0.23.2

2 participants