Skip to content

Latest commit

 

History

History
218 lines (180 loc) · 13.8 KB

CHANGELOG.md

File metadata and controls

218 lines (180 loc) · 13.8 KB

Changelog

[0.22.1] — 2024-03-10

Bug Fixes

  • Cli build script behavior on release

[0.22.0] — 2024-03-10

Breaking

  • Remove top-level corpus dir for tests The cli will now only look in test/corpus for tests
  • Remove redundant escape regex & curly brace regex preprocessing (tree-sitter#2838)
  • bindings: Convert node bindings to NAPI (tree-sitter#3077)
  • wasm: Make current*, is*, and has* methods properties (tree-sitter#3103)
  • wasm: Keep API in-line with upstream and start aligning with node (tree-sitter#3149)

Features

  • Add xtasks to assist with bumping crates (tree-sitter#3065)
  • Improve language bindings (tree-sitter#2438)
  • Expose the allocator and array header files for external scanners (tree-sitter#3063)
  • Add typings for the node bindings
  • Replace nan with node-addon-api and conditionally print logs
  • bindings: Add more make targets
  • bindings: Add peerDependencies for npm
  • bindings: Add prebuildify to node
  • bindings: Remove dsl types file (tree-sitter#3126)
  • node: Type tag the language (tree-sitter#3109)
  • test: Add attributes for corpus tests

Bug Fixes

Documentation

Refactor

  • Rename TS_REUSE_ALLOCATOR flag (tree-sitter#3088)
  • Remove extern/const where possible
  • array: Use pragma GCC in clang too
  • bindings: Remove npmignore (tree-sitter#3089)

Testing

Build System and CI

Other

  • Make Node.js language bindings context aware (tree-sitter#2841) They don't have any dynamic global data, so all it takes is just declaring them as such
  • Fix crash when attempting to load ancient languages via wasm (tree-sitter#3068)
  • Use workspace dependencies for internal crates like Tree-sitter (tree-sitter#3076)
  • Remove vendored wasmtime headers (tree-sitter#3084) When building rust binding, use wasmtime headers provided via cargo by the wasmtime-c-api crate.
  • Fix invalid parse stack recursive merging with mismatched error cost (tree-sitter#3086) Allowing this invalid merge caused an invariant to be violated later on during parsing, when handling a later error.
  • Fix regression in subtree_compare (tree-sitter#3111)
  • docs: Add Ohm language parser (tree-sitter#3114)
  • Delete binding_files.rs (tree-sitter#3106)
  • bindings: Consistent wording (tree-sitter#3096)
  • bindings: Ignore more artifacts (tree-sitter#3119)

[0.21.0] — 2024-02-21

Breaking

  • Remove the apply-all-captures flag, make last-wins precedence the default

    NOTE: This change might cause breakage in your grammar's highlight tests. Just flip the order around of the relevant queries, and keep in mind that the last query that matches will win.

Features

  • Use lockfiles to dedup recompilation
  • Improve error message for files with an unknown grammar path (tree-sitter#2475)
  • Implement first-line-regex (tree-sitter#2479)
  • Error out if an empty string is in the extras array
  • Allow specifying an external scanner's files (tree-sitter#3031)
  • Better error info when a scanner is missing required symbols
  • cli: Add an optional grammar-path argument for the playground (tree-sitter#3014)
  • cli: Add optional config-path argument (tree-sitter#3050)
  • loader: Add more commonly used default parser directories

Bug Fixes

  • Prettify xml output and add node position info (tree-sitter#2970)
  • Inherited grammar generation
  • Properly error out when the word property is an invalid rule
  • Update schema for regex flags (tree-sitter#3006)
  • Properly handle Query.matches when filtering out results (tree-sitter#3013)
  • Sexp format edge case with quoted closed parenthesis (tree-sitter#3016)
  • Always push the default files if there's no externals
  • Don't log NUL characters (tree-sitter#3037)
  • Don't throw an error if the user uses map in the grammar (tree-sitter#3041)
  • Remove redundant imports (tree-sitter#3047)
  • cli: Installation via a HTTP tunnel proxy (tree-sitter#2824)
  • cli: Don't update tests automatically if parse errors are detected (tree-sitter#3033)
  • cli: Don't use long for grammar_path
  • test: Allow writing updates to tests without erroneous nodes instead of denying all of them if a single error is found
  • test: Edge case when parsing UNEXPECTED/MISSING nodes with an indentation level greater than 0
  • wasm: Remove C++ mangled symbols (tree-sitter#2971)

Documentation

Refactor

Testing

Build System and CI

Other