From 9173442dd79fbbfb3d38cd13361bf6986616b6be Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Sun, 5 May 2024 17:17:52 -0400 Subject: [PATCH] docs: update changelog --- CHANGELOG.md | 156 ++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 149 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 995afd9b..f57a6310 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,23 +1,165 @@ # Changelog -## [0.22.5] - 2024-04-14 +## [0.22.6] — 2024-05-05 + +### Features + +- Improve handling of serialization buffer overflows () +- Reverse iteration through node parents (#3214) () +- **cli**: Support `NO_COLOR` () +- **cli**: Add test listing and allow users to parse a specific test number () +- **grammar**: Add "inherits" field if available () ### Bug Fixes -- **cli**: Fixed an issue where unused constants were included in generated parsers in some cases. +- Correctly load field data from wasm languages +- Improve error message when the `tree-sitter` field is malformed +- Don't error out on package.json lookup errors if `--no-bindings` is passed () +- **cli**: Keep default cc flags in build +- **cli**: Properly account for multi-grammar repos when using docker to build a wasm parser () +- **generate**: Don't check arbitrarily named dirs +- **generate**: Take `AsRef` for the path parameter to avoid clones () +- **highlight**: Correct signature of `ts_highlighter_add_language` +- **lib**: Do not return field names for extras () +- **lib**: Advance the lookahead end byte by 4 when there's an invalid code point () +- **rust**: Update README example () +- **rust**: Use unix + wasi cfg instead of not windows for fd () +- **test**: Allow newlines in between test name and attribute +- **wasm**: Correct `childrenFromFieldXXX` method signatures () +- **xtask**: Always bump every crate in tandem +- **zig**: Make usable as a zig dependency () -## [0.22.4] - 2024-04-12 +### Documentation + +- Mention build command variables +- Swap `\s` for `\\s` in query example +- **highlight**: Typo () + +### Refactor + +- **tests**: Migrate remaining `grammar.json` tests to `grammar.js` () + +### Build System and CI + +- Add nightly rustfmt to workflow for linting () +- Fix address sanitizer step () +- **deps**: Bump cc from 1.0.92 to 1.0.94 in the cargo group () +- **deps**: Bump the cargo group with 6 updates () +- **xtask**: Bump `build.zig.zon` version when bumping versions + +## [0.22.5] — 2024-04-14 ### Bug Fixes -- **cli**: Fixed an issue where redundant conditionals were included in generated lexer functions. +- Avoid generating unused character set constants +- **cli**: Test parsing on windows () +- **rust**: Compilation on wasm32-wasi () -## [0.22.3] - 2024-04-12 +## [0.22.4] — 2024-04-12 + +### Bug Fixes + +- Fix sorting of transitions within a lex state +- Include 2-character ranges in array-based state transitions + +### Build System and CI + +- Always bump at least the patch version in bump xtask + +## [0.22.3] — 2024-04-12 + +### Features + +- Add strncat to wasm stdlib +- Generate simpler code for matching large character sets () +- When loading languages via WASM, gracefully handle memory errors and leaks in external scanners () + +### Bug Fixes + +- **bindings**: Add utf-8 flag to python & node () +- **bindings**: Generate parser.c if missing () +- **bindings**: Remove required platforms for swift () +- **cli**: Fix mismatched parenthesis when accounting for `&&` () +- **lib**: Do not consider childless nodes for ts_node_parent () +- **lib**: Properly account for aliased root nodes and root nodes with + children in `ts_subtree_string` () +- **lib**: Account for the root node of a tree cursor being an alias () +- **lib**: Use correct format specifier in log message () +- **parser**: Fix variadic macro () +- render: Proper function prototypes () +- **windows**: Add `/utf-8` flag for parsers using unicode symbols () +- Add a semicolon after SKIP macros () +- Add back `build-wasm` temporarily () +- Add lifetime to matches function () +- Default output directory for `build --wasm` should use current_dir () +- Fix sorting of wasm stdlib symbols +- Insert "tree-sitter" section in current directory's package.json if it exists () +- Tie the lifetime of the cursor to the query in `QueryCursor::captures()` () +- Wrong flag check in `build.rs` ### Performance -- **cli**: Reduced the compile time of generated parsers by generating C code with fewer conditionals - (https://github.com/tree-sitter/tree-sitter/pull/3234) +- **cli**: Reduced the compile time of generated parsers by generating C code with fewer conditionals () + +### Documentation + +- Add NGINX grammar + +### Refactor + +- **parser**: Make REDUCE macro non-variadic () +- **js**: Misc fixes & tidying +- **rust**: Misc fixes & tidying + +### Testing + +- Add regression test for node parent + string bug () +- **test**: Allow colons in test names () + +### Build System and CI + +- Upgrade wasmtime +- Update emscripten version () +- **dependabot**: Improve PR labels () + +## [0.22.2] — 2024-03-17 + +### Breaking + +- **cli**: Add a separate build command to compile parsers + +### Features + +- **bindings/rust**: Expose `Parser::included_ranges` +- Lower the lib's MSRV () +- **lib**: Implement Display for Node () + +### Bug Fixes + +- **bindings/wasm**: Fix `Parser.getIncludedRanges()` () +- **lib**: Makefile installation on macOS () +- **lib**: Makefile installation () +- **lib**: Avoid possible UB of calling memset on a null ptr when 0 is passed into `array_grow_by` () +- **lib**: Allow hiding symbols () + +### Documentation + +- Fix typo () +- **licensfe**: Update year () + +### Refactor + +- Remove dependency on which crate () +- Turbofish styling + +### Testing + +- Fix header writes () + +### Build System and CI + +- Simplify workflows () +- **lib**: Allow overriding CFLAGS on the commandline () ## [0.22.1] — 2024-03-10