v0.32.0 — browser runtime and clean-parse recovery
v0.32.0 extends the browser-focused WebAssembly runtime with structured parsing
and Tree-sitter queries, improves clean-parse C-recovery performance, and turns
the committed Bash real-corpus parity floor into an executable witness.
Highlights
- The runtime WASM target can load generated grammar blobs, parse JavaScript
strings through the UTF-16 entry point, and return a structured JSON tree.
Tree nodes and query captures carry both canonical UTF-8 byte offsets and
JavaScript UTF-16 code-unit offsets, with node- and match-count limits
reporting truncation. - Six confirmed-dead rewrite passes and their exclusively-owned helpers have
been removed from the JavaScript/TypeScript/TSX compatibility walk. The two
remaining live fixups and memory-budget polling are unchanged. - C-recovery condense summaries are now demand-driven for clean parses. A
4,096-entry generated Go witness fell from 18.72 seconds to 93 milliseconds
and from 1,388,988 KiB to 498,240 KiB maximum RSS while preserving the same
full, error-free S-expression. - Bash now has a dedicated real-corpus parity witness that executes its
committed 25 eligible / 9 no-error / 6 S-expression / 6 deep floor and pins
expansion-suffix controls in a focused reducer test. - Missing extra shifts and recovered-suffix resynchronization now mark
error-bearing content before the next condense pass, keeping the clean-tree
shortcut exact.
go get github.com/odvcencio/gotreesitter@v0.32.0See the repository changelog for the complete history and validation details.