@willbooster/tree-sitter-javascript 24.0.0 → 25.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
@@ -18,8 +18,8 @@ This fork fixes parsing bugs and raises conformance with [ECMAScript (ECMA-262)]
18
18
  ## Support Scope
19
19
 
20
20
  This fork maintains only full parsing: valid input yields a correct tree, and invalid input yields `ERROR` or `MISSING`
21
- nodes without crashing, hanging, or taking more than linear time. Incremental parsing works as in upstream tree-sitter
22
- but is not tested here, and no queries (highlights, locals, injections, tags) are shipped. Node types, field names, and
21
+ nodes without crashing, hanging, or taking more than linear time. Incremental parsing is not supported, and no queries
22
+ (highlights, locals, injections, tags) are shipped. Node types, field names, and
23
23
  the trees that error recovery produces may change; such changes are released as new major versions.
24
24
 
25
25
  ## Usage
@@ -27,7 +27,7 @@ the trees that error recovery produces may change; such changes are released as
27
27
  The npm package ships two languages for
28
28
  [@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter), which runs in Node.js, Bun,
29
29
  browsers, and Cloudflare Workers. The parser carries the ABI number of WillBooster/tree-sitter (`0x5742000c`), so it
30
- requires that runtime ABI; the upstream runtime rejects it. This package is tested with runtime 19.1.1, and its optional peer dependency requires 19.1.1 or later within 19.x. In Node.js and Bun, load it from
30
+ requires that runtime ABI; the upstream runtime rejects it. This package is tested with runtime 20.0.0, and its optional peer dependency requires 20.0.0 or later within 20.x. In Node.js and Bun, load it from
31
31
  the package. Choose `tree-sitter-javascript.wasm` for the Module goal, or
32
32
  `tree-sitter-javascript_script.wasm` for the Script goal. The source goal comes from the host or file type;
33
33
  `.mjs` uses Module and `.cjs` uses Script, while `.js` depends on the host. For example, `await\nvalue` is one
@@ -81,10 +81,10 @@ array/formal and object-rest extension hooks. Their external scanners can includ
81
81
  characters and escapes and JSX text for the tokens they pass it. The crate ships `tree-sitter.json` too.
82
82
 
83
83
  In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-javascript) and the
84
- [willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter) runtime with the matching ABI. The tested version is 19.1.1:
84
+ [willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter) runtime with the matching ABI. The tested version is 20.0.0:
85
85
 
86
86
  ```sh
87
- cargo add willbooster-tree-sitter@19.1.1 --rename tree-sitter
87
+ cargo add willbooster-tree-sitter@20.0.0 --rename tree-sitter
88
88
  cargo add willbooster-tree-sitter-javascript --rename tree-sitter-javascript
89
89
  ```
90
90
 
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-javascript",
3
- "version": "24.0.0",
3
+ "version": "25.0.0",
4
4
  "description": "JavaScript grammar for tree-sitter",
5
5
  "keywords": [
6
- "incremental",
7
6
  "javascript",
8
7
  "parsing",
9
8
  "tree-sitter"
@@ -53,7 +52,7 @@
53
52
  "@vitest/browser-playwright": "5.0.5",
54
53
  "@willbooster/oxlint-config": "1.4.9",
55
54
  "@willbooster/wb": "23.3.0",
56
- "@willbooster/web-tree-sitter": "19.1.1",
55
+ "@willbooster/web-tree-sitter": "20.0.0",
57
56
  "acorn": "8.19.0",
58
57
  "acorn-jsx": "5.3.2",
59
58
  "conventional-changelog-conventionalcommits": "10.4.1",
@@ -67,7 +66,7 @@
67
66
  "wrangler": "4.156.0"
68
67
  },
69
68
  "peerDependencies": {
70
- "@willbooster/web-tree-sitter": "^19.1.1"
69
+ "@willbooster/web-tree-sitter": "^20.0.0"
71
70
  },
72
71
  "peerDependenciesMeta": {
73
72
  "@willbooster/web-tree-sitter": {
Binary file
Binary file
package/tree-sitter.json CHANGED
@@ -34,7 +34,7 @@
34
34
  }
35
35
  ],
36
36
  "metadata": {
37
- "version": "24.0.0",
37
+ "version": "25.0.0",
38
38
  "license": "MIT",
39
39
  "description": "JavaScript grammar for tree-sitter",
40
40
  "authors": [