@willbooster/tree-sitter-javascript 4.0.1 → 4.0.2

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
@@ -19,7 +19,8 @@ This fork fixes parsing bugs and raises conformance with [ECMAScript (ECMA-262)]
19
19
 
20
20
  The npm package ships `tree-sitter-javascript.wasm` for
21
21
  [@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter), which runs in Node.js, Bun,
22
- browsers, and Cloudflare Workers. Use runtime 1.3.0 or newer. In Node.js and Bun, load it from the package:
22
+ browsers, and Cloudflare Workers. The compact ABI 16 parser requires runtime 1.3.0 or newer.
23
+ Runtime 1.4.3 or newer is recommended for improved error recovery. In Node.js and Bun, load it from the package:
23
24
 
24
25
  ```js
25
26
  import { fileURLToPath } from 'node:url';
@@ -61,12 +62,12 @@ The package also ships the node types in `src/node-types.json`, the highlight, i
61
62
  `queries/` that `tree-sitter.json` lists, and `grammar.js` for grammars that extend this one (e.g.
62
63
  `require('@willbooster/tree-sitter-javascript/grammar')`). The crate ships `tree-sitter.json` and `queries/` too.
63
64
 
64
- In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-javascript) and on
65
- [willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter) 1.3.0 or newer for the compact ABI 16 parser:
65
+ In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-javascript) and the recommended
66
+ [willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter) runtime:
66
67
 
67
68
  ```toml
68
69
  [dependencies]
69
- tree-sitter = { package = "willbooster-tree-sitter", version = "1.3.0" }
70
+ tree-sitter = { package = "willbooster-tree-sitter", version = "1.4.3" }
70
71
  tree-sitter-javascript = { package = "willbooster-tree-sitter-javascript", version = "4" }
71
72
  ```
72
73
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-javascript",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "JavaScript 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.13.1",
50
- "@willbooster/web-tree-sitter": "1.4.0",
50
+ "@willbooster/web-tree-sitter": "1.4.3",
51
51
  "conventional-changelog-conventionalcommits": "10.4.0",
52
52
  "lefthook": "2.1.14",
53
53
  "oxfmt": "0.70.0",
Binary file
package/tree-sitter.json CHANGED
@@ -24,7 +24,7 @@
24
24
  }
25
25
  ],
26
26
  "metadata": {
27
- "version": "4.0.1",
27
+ "version": "4.0.2",
28
28
  "license": "MIT",
29
29
  "description": "JavaScript grammar for tree-sitter",
30
30
  "authors": [