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 = "10.0.2" }
tree-sitter = { package = "willbooster-tree-sitter", version = "13.0.0" }
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ Annotation interface declarations expose separate `@` and `interface` tokens.
Postfix updates appear inside surrounding cast or unary nodes. An `update_expression` has a primary expression as its operand.

The parser ships as compact tables under the [WillBooster/tree-sitter](https://github.com/WillBooster/tree-sitter)
fork's ABI (`0x57420007`). This package is tested with runtime 10.0.2. Runtimes with a different ABI, including
fork's ABI (`0x57420009`). This package is tested with runtime 13.0.0. Runtimes with a different ABI, including
upstream's tree-sitter, reject the parser.

## Usage

The npm package ships `tree-sitter-java.wasm` for
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 10.0.2 or later within major version 10, 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 13.0.0 or later within major version 13, 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 @@ -143,8 +143,8 @@ fuzzed with:

```toml
[dependencies]
tree-sitter = { package = "willbooster-tree-sitter", version = "10.0.2" }
tree-sitter-java = { package = "willbooster-tree-sitter-java", version = "10" }
tree-sitter = { package = "willbooster-tree-sitter", version = "13.0.0" }
tree-sitter-java = { package = "willbooster-tree-sitter-java", version = "11" }
```

```rust
Expand Down
8 changes: 4 additions & 4 deletions bindings/rust/lib.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! This crate provides Java language support for the [tree-sitter] parsing library.
//!
//! The parser carries the ABI number of the WillBooster fork (`0x57420007`) and is tested with the
//! [`willbooster-tree-sitter`] runtime 10.0.2 (depend on it as
//! `tree-sitter = { package = "willbooster-tree-sitter", version = "10.0.2" }`). Runtimes with a different ABI,
//! The parser carries the ABI number of the WillBooster fork (`0x57420009`) and is tested with the
//! [`willbooster-tree-sitter`] runtime 13.0.0 (depend on it as
//! `tree-sitter = { package = "willbooster-tree-sitter", version = "13.0.0" }`). Runtimes with a different ABI,
//! including upstream's `tree-sitter` crate, reject it with a `LanguageError`.
//!
//! Typically, you will use the [`LANGUAGE`] constant to add this language to a
Expand All @@ -19,7 +19,7 @@
//! assert!(!tree.root_node().has_error());
//! ```
//!
//! [`Parser`]: https://docs.rs/willbooster-tree-sitter/10/tree_sitter/struct.Parser.html
//! [`Parser`]: https://docs.rs/willbooster-tree-sitter/13/tree_sitter/struct.Parser.html
//! [tree-sitter]: https://tree-sitter.github.io/
//! [`willbooster-tree-sitter`]: https://crates.io/crates/willbooster-tree-sitter

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 @@ -47,7 +47,7 @@
"@willbooster/oxfmt-config": "1.2.2",
"@willbooster/oxlint-config": "1.4.8",
"@willbooster/wb": "22.26.2",
"@willbooster/web-tree-sitter": "10.0.2",
"@willbooster/web-tree-sitter": "13.0.0",
"conventional-changelog-conventionalcommits": "10.4.0",
"lefthook": "2.2.2",
"oxfmt": "0.73.0",
Expand All @@ -60,7 +60,7 @@
"wrangler": "4.147.0"
},
"peerDependencies": {
"@willbooster/web-tree-sitter": "^10.0.2"
"@willbooster/web-tree-sitter": "^13.0.0"
},
"peerDependenciesMeta": {
"@willbooster/web-tree-sitter": {
Expand Down
Loading
Loading