@willbooster/tree-sitter-javascript 6.0.2 → 7.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 +5 -5
- package/package.json +3 -3
- package/tree-sitter-javascript.wasm +0 -0
- package/tree-sitter.json +1 -1
package/README.md
CHANGED
|
@@ -19,8 +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. The parser carries the ABI number of WillBooster/tree-sitter (`
|
|
23
|
-
loads only with that runtime, version
|
|
22
|
+
browsers, and Cloudflare Workers. The parser carries the ABI number of WillBooster/tree-sitter (`0x57420006`), so it
|
|
23
|
+
loads only with that runtime, version 7.0.5 or newer within major 7; the upstream runtime rejects it. In Node.js and Bun, load it from
|
|
24
24
|
the package:
|
|
25
25
|
|
|
26
26
|
```js
|
|
@@ -64,12 +64,12 @@ The package also ships the node types in `src/node-types.json`, the highlight, i
|
|
|
64
64
|
`require('@willbooster/tree-sitter-javascript/grammar')`). The crate ships `tree-sitter.json` and `queries/` too.
|
|
65
65
|
|
|
66
66
|
In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-javascript) and the
|
|
67
|
-
[willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter) runtime,
|
|
67
|
+
[willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter) runtime, 7.0.5 or newer within major 7:
|
|
68
68
|
|
|
69
69
|
```toml
|
|
70
70
|
[dependencies]
|
|
71
|
-
tree-sitter = { package = "willbooster-tree-sitter", version = "
|
|
72
|
-
tree-sitter-javascript = { package = "willbooster-tree-sitter-javascript", version = "
|
|
71
|
+
tree-sitter = { package = "willbooster-tree-sitter", version = "7.0.5" }
|
|
72
|
+
tree-sitter-javascript = { package = "willbooster-tree-sitter-javascript", version = "7" }
|
|
73
73
|
```
|
|
74
74
|
|
|
75
75
|
```rust
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-javascript",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
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.26.1",
|
|
50
|
-
"@willbooster/web-tree-sitter": "
|
|
50
|
+
"@willbooster/web-tree-sitter": "7.0.5",
|
|
51
51
|
"conventional-changelog-conventionalcommits": "10.4.1",
|
|
52
52
|
"lefthook": "2.2.1",
|
|
53
53
|
"oxfmt": "0.72.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"wrangler": "4.149.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@willbooster/web-tree-sitter": "^
|
|
64
|
+
"@willbooster/web-tree-sitter": "^7.0.5"
|
|
65
65
|
},
|
|
66
66
|
"peerDependenciesMeta": {
|
|
67
67
|
"@willbooster/web-tree-sitter": {
|
|
Binary file
|