Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ tree-sitter-language = "0.1"
cc = "1.2"

[dev-dependencies]
tree-sitter = { package = "willbooster-tree-sitter", version = "15.0.0" }
tree-sitter = { package = "willbooster-tree-sitter", version = "16.0.0" }
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ to its authors and contributors. This is not an official release of that project

This fork extends upstream's version 0.25.0 grammar with method type parameters and generates the parser with the
[WillBooster/tree-sitter](https://github.com/WillBooster/tree-sitter) generator. The parser carries that fork's own ABI
number (`0x5742000b`), so it loads only with the WillBooster runtime, version 15.0.0 or later within 15.x
number (`0x5742000b`), so it loads only with the WillBooster runtime, version 15.0.0 or later within 15.x or 16.x
(`willbooster-tree-sitter`, `@willbooster/web-tree-sitter`), and not with upstream's tree-sitter.

## Support Scope
Expand All @@ -27,7 +27,7 @@ the trees that error recovery produces may change; such changes are released as
## Usage

The npm package ships `tree-sitter-go.wasm` for
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 15.0.0 or later within 15.x, which runs in Node.js, Bun, browsers, and Cloudflare Workers. In Node.js and Bun, load the grammar from its path:
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 15.0.0 or later within 15.x or 16.x, which runs in Node.js, Bun, browsers, and Cloudflare Workers. In Node.js and Bun, load the grammar from its path:

```js
import { fileURLToPath } from 'node:url';
Expand Down Expand Up @@ -73,7 +73,7 @@ In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-
fuzzed with:

```sh
cargo add willbooster-tree-sitter@15.0.0 --rename tree-sitter
cargo add willbooster-tree-sitter@16.0.0 --rename tree-sitter
cargo add willbooster-tree-sitter-go --rename tree-sitter-go
```

Expand Down
4 changes: 2 additions & 2 deletions bindings/rust/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! This crate provides Go language support for the [tree-sitter] parsing library.
//!
//! The parser carries the ABI number of the WillBooster fork of tree-sitter, so it loads only with
//! the `willbooster-tree-sitter` runtime, version 15.0.0 or later within 15.x.
//! the `willbooster-tree-sitter` runtime, version 15.0.0 or later within 15.x or 16.x.
//!
//! Typically, you will use the [`LANGUAGE`] constant to add this language to a
//! tree-sitter [`Parser`], and then use the parser to parse some code:
Expand All @@ -17,7 +17,7 @@
//! assert!(!tree.root_node().has_error());
//! ```
//!
//! [`Parser`]: https://docs.rs/willbooster-tree-sitter/15.0.0/tree_sitter/struct.Parser.html
//! [`Parser`]: https://docs.rs/willbooster-tree-sitter/16.0.0/tree_sitter/struct.Parser.html
//! [tree-sitter]: https://tree-sitter.github.io/

use tree_sitter_language::LanguageFn;
Expand Down
6 changes: 3 additions & 3 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@vitest/browser-playwright": "5.0.5",
"@willbooster/oxlint-config": "1.4.9",
"@willbooster/wb": "23.0.2",
"@willbooster/web-tree-sitter": "15.5.4",
"@willbooster/web-tree-sitter": "16.0.2",
"conventional-changelog-conventionalcommits": "10.4.1",
"lefthook": "2.2.2",
"oxlint": "1.89.0",
Expand All @@ -60,7 +60,7 @@
"wrangler": "4.152.0"
},
"peerDependencies": {
"@willbooster/web-tree-sitter": "^15.0.0"
"@willbooster/web-tree-sitter": "^15.0.0 || ^16.0.0"
},
"peerDependenciesMeta": {
"@willbooster/web-tree-sitter": {
Expand Down
Loading