Skip to content

v0.21.0

Choose a tag to compare

@verhovsky verhovsky released this 17 Mar 06:12
· 46 commits to master since this release

BREAKING CHANGES:

  • node-tree-sitter now uses Node-API instead of NAN for Node bindings. This requires updating the binding.cc file for all languages you want to use by running tree-sitter generate with tree-sitter 0.22.0 or newer. See #193 (comment) (contributed by @segevfiner in #190)
  • SyntaxNode.hasChanges, SyntaxNode.hasError and SyntaxNode.isMissing are now properties (they used to be methods) (contributed by @amaanq in #190)

Other changes:

  • add more methods/properties to bring Node inline with Rust bindings (contributed by @amaanq in #191)
  • make module context aware (contributed by @segevfiner in #184)
  • drop Node 14 and 16 support
  • switch to prebuildify instead of prebuild-install (now binaries are stored on npm instead of GitHub Releases) (contributed by @ObserverOfTime in #192)