Skip to content

Releases: tree-sitter/tree-sitter

nightly: fix(bindings): embed queries in Bun standalone executables

Choose a tag to compare

@github-actions github-actions released this 08 Oct 05:46
In an executable built by `bun build --compile`, `root` resolves to the
filesystem root, so the query getters never found the grammar's query
files. Import them as text with static paths there so Bun embeds them.

v0.27.0

Choose a tag to compare

@github-actions github-actions released this 30 Aug 17:16
v0.27.0
6070dbf

What's Changed

Read more

v0.26.13

Choose a tag to compare

@github-actions github-actions released this 23 Aug 09:06

What's Changed

  • fix(query): correctly identify MISSING nodes in queries by @tree-sitter-ci-bot[bot] in #5835
  • fix(query): correctly set a state's skipped_quantifier flag when a by @tree-sitter-ci-bot[bot] in #5842
  • fix(generate): fold case-insensitive patterns at the AST leaves by @WillLillis in #5854
  • fix(parser): avoid wide error nodes on unparseable input by @tree-sitter-ci-bot[bot] in #5855
  • fix(ci): run all workspace tests by @WillLillis in #5867
  • build(deps): bump wasmtime-c-api to v36.0.14 by @clason in #5870
  • fix(rust): remove must_use attribute from Tree::changed_ranges by @tree-sitter-ci-bot[bot] in #5877
  • release v0.26.13 by @clason in #5873

Full Changelog: v0.26.12...v0.26.13

v0.26.12

Choose a tag to compare

@github-actions github-actions released this 08 Aug 13:26

What's Changed

  • fix(generate): fold case-insensitive patterns ourselves by @WillLillis in #5761
  • fix(query): keep the trailing anchor when a zero-matched quantifier is anchored on both sides by @tree-sitter-ci-bot[bot] in #5764
  • fix(templates): add C source files to Python sdist by @WillLillis in #5765
  • fix(init): don't lowercase repository url by @tree-sitter-ci-bot[bot] in #5768
  • fix(highlight): use std::sync::OnceCell for various loader fields by @WillLillis in #5785
  • fix(parser): restart recovery for invalid tokens in the error state by @tree-sitter-ci-bot[bot] in #5792
  • Fix associativity resolution with mixed shift precedences by @tree-sitter-ci-bot[bot] in #5796
  • fix(parser): fix parsing bug repeat operator by @tree-sitter-ci-bot[bot] in #5829
  • release v0.26.12 by @clason in #5831

Full Changelog: v0.26.11...v0.26.12

v0.26.11

Choose a tag to compare

@github-actions github-actions released this 12 Jul 10:27

What's Changed

  • fix(deps): zig manifest for wasmtime is missing windows hashes by @tree-sitter-ci-bot[bot] in #5720
  • fix(xtask): eliminate silent errors in zig fetch by @WillLillis in #5724
  • fix(query): short-circuit longest-match dedup for disjoint states by @tree-sitter-ci-bot[bot] in #5726
  • fix(query): various anchor fixes by @tree-sitter-ci-bot[bot] in #5727
  • Fix C++ compilation errors in array macros. by @tree-sitter-ci-bot[bot] in #5735
  • fix(rust): address new clippy lints by @WillLillis in #5743
  • fix(generate): strip non-ASCII case folds by @tree-sitter-ci-bot[bot] in #5744
  • fix(ci): re-set executable permission on release artifacts before zipping by @clason in #5746
  • release v0.26.11 by @clason in #5748

Full Changelog: v0.26.10...v0.26.11

v0.26.10

Choose a tag to compare

@github-actions github-actions released this 28 Jun 16:11
v0.26.10

What's Changed

  • fix(lib): update doc comment for ts_parser_parse by @WillLillis in #5642
  • fix(lib): use correct TREE_SITTER_HIDE_SYMBOLS macro name in alloc.h by @tree-sitter-ci-bot[bot] in #5643
  • fix(cli): improve soundness of cst range calculation by @WillLillis in #5650
  • fix(lib): Consider subtree lookahead bytes when determining whether the parser can reuse a node. by @tree-sitter-ci-bot[bot] in #5656
  • fix(cli): display warning to user if parser test corpus dir isn't found by @tree-sitter-ci-bot[bot] in #5669
  • fix: add DESCRIPTION to grammar Makefile template by @WillLillis in #5672
  • fix(cli): infinite loop in highlight test by @WillLillis in #5674
  • fix(lib): address strict aliasing violations in TreeCursor type by @WillLillis in #5693
  • build(deps): bump wasmtime-c-api to v36.0.12 by @clason in #5709
  • fix(dsl): forbid invalid field names by @WillLillis in #5710
  • Fix issues with queries matching a parent node with anchored children (siblings) by @tree-sitter-ci-bot[bot] in #5712
  • test(query): regression test for anchored siblings inside a parent by @tree-sitter-ci-bot[bot] in #5716
  • release v0.26.10 by @WillLillis in #5717

Full Changelog: v0.26.9...v0.26.10

v0.26.9

Choose a tag to compare

@github-actions github-actions released this 19 May 18:08

What's Changed

  • ci(actions): bump actions/cache to v5 by @tree-sitter-ci-bot[bot] in #5482
  • build(deps): bump wasmtime-c-api to v36.0.7 by @WillLillis in #5514
  • fix(loader): allow filenames with dots by @tree-sitter-ci-bot[bot] in #5538
  • fix(rust): fix new clippy lints by @WillLillis in #5539
  • test: bump c test fixture to v0.24.2 by @tree-sitter-ci-bot[bot] in #5542
  • fix(generate): pass default optimization level in generate_parser_for_grammar by @tree-sitter-ci-bot[bot] in #5543
  • feat(dist): enable install via cargo binstall (#5533) by @clason in #5544
  • Prevent a buffer over-read when parsing 4-byte UTF-16 characters. by @tree-sitter-ci-bot[bot] in #5549
  • fix(query): overflow in capture pool ids + some perf by @tree-sitter-ci-bot[bot] in #5555
  • docs: note zero point unbounded behavior in query functions by @WillLillis in #5563
  • build(deps): bump wasmtime-c-api to v36.0.8 by @clason in #5574
  • fix(cli): account for process versions > 5 in the parse command's pretty debug output. by @tree-sitter-ci-bot[bot] in #5577
  • fix(generate): improve error message for nonterminals used in immediate token rule by @tree-sitter-ci-bot[bot] in #5583
  • fix(generate): rewrite parse_grammar with forward DFS by @WillLillis in #5584
  • fix(wasm): load supertype tables for ABI 15 grammars by @tree-sitter-ci-bot[bot] in #5606
  • build(deps): bump wasmtime-c-api to v36.0.9 by @clason in #5611
  • Validate Wasm language memory reads by @tree-sitter-ci-bot[bot] in #5613
  • release v0.26.9 by @clason in #5612

Full Changelog: v0.26.8...v0.26.9

v0.26.8

Choose a tag to compare

@github-actions github-actions released this 31 Mar 17:53

What's Changed

  • fix(generate): allow disabling qjs-rt feature from CLI by @WillLillis in #5448
  • fix(lib): document invariants that must be upheld for TSInputEdit by @WillLillis in #5452
  • fix(cli): correct typo in parse command's help text by @WillLillis in #5465
  • perf(cli): misc. improvements by @tree-sitter-ci-bot[bot] in #5476
  • Fix wasm loading of languages w/ multiple reserved word sets by @tree-sitter-ci-bot[bot] in #5477
  • generate: avoid panicking when a supertype only has hidden external token children by @tree-sitter-ci-bot[bot] in #5478
  • release v0.26.8 by @clason in #5479

Full Changelog: v0.26.7...v0.26.8

v0.26.7

Choose a tag to compare

@github-actions github-actions released this 14 Mar 16:47

Notable Changes

  • A regression in v0.26.6 with quantified alternations was fixed.
  • Release artifacts for the tree-sitter CLI are now published as zip archives (in addition to gzipped executables, which are planned for removal in a future minor release).

What's Changed

  • fix: skip missing Makefile in version command by @tree-sitter-ci-bot[bot] in #5386
  • fix(wasm): pass target triple to clang (#5385) by @clason in #5390
  • chore(parser): return NULL, not false, for incomplete parse by @tree-sitter-ci-bot[bot] in #5398
  • fix(loader): link with libc on OpenBSD to compile parser by @tree-sitter-ci-bot[bot] in #5399
  • refactor(query): remove alternative_is_immediate by @tree-sitter-ci-bot[bot] in #5412
  • fix(query): don't add copies for quantifier steps outside alternations by @tree-sitter-ci-bot[bot] in #5414
  • revert allowing dashes in parser name by @tree-sitter-ci-bot[bot] in #5433
  • ci(release): publish zip archives by @clason in #5434
  • release v0.26.7 by @clason in #5435

Full Changelog: v0.26.6...v0.26.7

v0.26.6

Choose a tag to compare

@github-actions github-actions released this 25 Feb 17:08

What's Changed

  • lib: clean up strict aliasing fixes in array.h by @tree-sitter-ci-bot[bot] in #5311
  • feat: allow - in grammar names by @tree-sitter-ci-bot[bot] in #5318
  • fix(cli): allow for both debug logs and graphs by @tree-sitter-ci-bot[bot] in #5319
  • web: add default export to CJS bundle by @tree-sitter-ci-bot[bot] in #5323
  • fix(query): prevent cross-branch capture contamination in alternations with quantifiers by @tree-sitter-ci-bot[bot] in #5320
  • ci: speed it up by @WillLillis in #5325
  • use provided by RedoxOS byte orders implementations by @tree-sitter-ci-bot[bot] in #5346
  • build(deps): bump wasmtime to v36.0.5 LTS by @clason in #5351
  • fix(lib): cast NULL in ts_subtree_children macro by @tree-sitter-ci-bot[bot] in #5353
  • ci: backport release check workflow by @WillLillis in #5358
  • ci: retrigger crates check on PR updates by @tree-sitter-ci-bot[bot] in #5361
  • cli: init -u fixes by @WillLillis in #5367
  • build(deps): bump wasmtime to v36.0.6 by @clason in #5370
  • 0.26.6 by @clason in #5372

Full Changelog: v0.26.5...v0.26.6