@willbooster/tree-sitter-java 3.1.2 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -16,13 +16,13 @@ This fork is based on tree-sitter-java 0.23.5 and accepts `final` modifiers on s
16
16
  and typed record-pattern components, plus qualified names in record patterns. Unnamed variables in switch and
17
17
  `instanceof` type patterns, including typed record-pattern components, use `underscore_pattern` nodes. It ships the
18
18
  parser as the compact tables that the [WillBooster/tree-sitter](https://github.com/WillBooster/tree-sitter) generator
19
- emits under that fork's own ABI number (`0x57420001`), so the parser loads only with that runtime, version 2.0.0 or
20
- later, and not with upstream's tree-sitter.
19
+ emits under that fork's own ABI number (`0x57420006`), so the parser loads only with that runtime, version 7.0.5 or
20
+ later within major version 7, and not with upstream's tree-sitter.
21
21
 
22
22
  ## Usage
23
23
 
24
24
  The npm package ships `tree-sitter-java.wasm` for
25
- [@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 2.0.0 or later, which runs in Node.js, Bun, browsers, and Cloudflare Workers. In Node.js and Bun, load the grammar from its path:
25
+ [@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 7.0.5 or later within major version 7, which runs in Node.js, Bun, browsers, and Cloudflare Workers. In Node.js and Bun, load the grammar from its path:
26
26
 
27
27
  ```js
28
28
  import { fileURLToPath } from 'node:url';
@@ -68,8 +68,8 @@ fuzzed with:
68
68
 
69
69
  ```toml
70
70
  [dependencies]
71
- tree-sitter = { package = "willbooster-tree-sitter", version = "2" }
72
- tree-sitter-java = { package = "willbooster-tree-sitter-java", version = "2" }
71
+ tree-sitter = { package = "willbooster-tree-sitter", version = "7.0.5" }
72
+ tree-sitter-java = { package = "willbooster-tree-sitter-java", version = "4" }
73
73
  ```
74
74
 
75
75
  ```rust
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-java",
3
- "version": "3.1.2",
3
+ "version": "4.0.0",
4
4
  "description": "Java grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -47,7 +47,7 @@
47
47
  "@willbooster/oxfmt-config": "1.2.2",
48
48
  "@willbooster/oxlint-config": "1.4.8",
49
49
  "@willbooster/wb": "22.26.1",
50
- "@willbooster/web-tree-sitter": "2.0.1",
50
+ "@willbooster/web-tree-sitter": "7.0.5",
51
51
  "conventional-changelog-conventionalcommits": "10.4.0",
52
52
  "lefthook": "2.2.1",
53
53
  "oxfmt": "0.72.0",
@@ -60,7 +60,7 @@
60
60
  "wrangler": "4.147.0"
61
61
  },
62
62
  "peerDependencies": {
63
- "@willbooster/web-tree-sitter": "^2.0.0"
63
+ "@willbooster/web-tree-sitter": "^7.0.5"
64
64
  },
65
65
  "peerDependenciesMeta": {
66
66
  "@willbooster/web-tree-sitter": {
Binary file
package/tree-sitter.json CHANGED
@@ -14,7 +14,7 @@
14
14
  }
15
15
  ],
16
16
  "metadata": {
17
- "version": "3.1.2",
17
+ "version": "4.0.0",
18
18
  "license": "MIT",
19
19
  "description": "Java grammar for tree-sitter",
20
20
  "authors": [