node-tree-sitter icon indicating copy to clipboard operation
node-tree-sitter copied to clipboard

Proper tree-sitter 0.25 support

Open ObserverOfTime opened this issue 3 months ago • 3 comments

This is an ongoing effort to update node-tree-sitter with the changes introduced in tree-sitter 0.25, and more:

  • [x] Track tree-sitter release branch
  • [x] Enable dependabot updates
  • [x] Use arm runners in CI
  • [x] Update Node versions
    • Drop tests on 18
    • Run tests on 24
  • [x] Enable trusted publishing
  • [x] Improve binding.gyp cflags
    • Add -fvisibility=hidden to the flags on Linux
    • Adapt std based on Node version
      • closes #238
      • closes #240
  • [ ] Update the API to tree-sitter 0.25
    • closes #244
    • closes #248
    • closes #253
    • closes #256
    • closes #261
  • [ ] Introduce QueryCursor class
    • May or may not use iterators
      • closes #178
      • closes #207
    • Support custom predicates
      • closes #179
  • [ ] Improve errors, docs, types
    • closes #210
    • closes #243
  • [x] Miscellaneous fixes
    • closes #246
    • closes #257

Don't ask when this will be updated/finished/merged. If you want to speed it up, submit a PR on my fork.

ObserverOfTime avatar Sep 09 '25 17:09 ObserverOfTime

Adapt std based on Node version

  • closes https://github.com/tree-sitter/node-tree-sitter/issues/238
  • closes https://github.com/tree-sitter/node-tree-sitter/pull/240

Hello! I have made a PR about this part. Should I rebase it on your PR so you can merge it when you are free to review?

#240 already exists though? Yeah, but I made it conditional via nodejs' config.gypi. This way if it needs another version bump, it should be easier.

Abrifq avatar Oct 21 '25 11:10 Abrifq

I already did that one.

ObserverOfTime avatar Oct 21 '25 20:10 ObserverOfTime

I already did that one.

Ah ok, didn't notice. Have a nice day then!

Abrifq avatar Oct 22 '25 04:10 Abrifq