build: upgrade tree-sitter-typescript 0.21.2 → 0.23.2#391
Merged
askpt merged 2 commits intoJun 20, 2026
Conversation
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>
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
Contributor
There was a problem hiding this comment.
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-typescriptfrom0.21.2to0.23.2inpackage.json. - Update
package-lock.jsonaccordingly, including new/updated transitive dependencies pulled in bytree-sitter-typescript@0.23.2(notably its nestedtree-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. |
…-73d67fd088892884
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
tuple labels, override accessors, etc.)
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