@willbooster/tree-sitter-javascript 8.0.4 → 9.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
@@ -5,7 +5,7 @@
5
5
  [![Test](https://github.com/WillBooster/tree-sitter-javascript/actions/workflows/test.yml/badge.svg)](https://github.com/WillBooster/tree-sitter-javascript/actions/workflows/test.yml)
6
6
  [![Test rust](https://github.com/WillBooster/tree-sitter-javascript/actions/workflows/test-rust.yml/badge.svg)](https://github.com/WillBooster/tree-sitter-javascript/actions/workflows/test-rust.yml)
7
7
  [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
8
- [![wbfy](https://img.shields.io/badge/wbfy-20.41.8-1e90ff.svg)](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
8
+ [![wbfy](https://img.shields.io/badge/wbfy-20.43.2-1e90ff.svg)](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
9
9
  [![crates.io](https://img.shields.io/crates/v/willbooster-tree-sitter-javascript.svg)](https://crates.io/crates/willbooster-tree-sitter-javascript)
10
10
 
11
11
  JavaScript and JSX grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter), forked from
@@ -19,8 +19,8 @@ This fork fixes parsing bugs and raises conformance with [ECMAScript (ECMA-262)]
19
19
 
20
20
  The npm package ships two languages 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 (`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
22
+ browsers, and Cloudflare Workers. The parser carries the ABI number of WillBooster/tree-sitter (`0x57420007`), so it
23
+ requires that runtime ABI; the upstream runtime rejects it. This package is tested with runtime 10.0.1, and its optional peer dependency covers major 10. In Node.js and Bun, load it from
24
24
  the package. Choose `tree-sitter-javascript.wasm` for the Module goal, or
25
25
  `tree-sitter-javascript_script.wasm` for the Script goal. The source goal comes from the host or file type;
26
26
  `.mjs` uses Module and `.cjs` uses Script, while `.js` depends on the host. For example, `await\nvalue` is one
@@ -72,12 +72,12 @@ The package also ships the node types in `src/node-types.json`, the highlight, i
72
72
  `require('@willbooster/tree-sitter-javascript/grammar')`). The crate ships `tree-sitter.json` and `queries/` too.
73
73
 
74
74
  In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-javascript) and the
75
- [willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter) runtime, 7.0.5 or newer within major 7:
75
+ [willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter) runtime with the matching ABI. The tested version is 10.0.1:
76
76
 
77
77
  ```toml
78
78
  [dependencies]
79
- tree-sitter = { package = "willbooster-tree-sitter", version = "7.0.5" }
80
- tree-sitter-javascript = { package = "willbooster-tree-sitter-javascript", version = "8" }
79
+ tree-sitter = { package = "willbooster-tree-sitter", version = "10.0.1" }
80
+ tree-sitter-javascript = { package = "willbooster-tree-sitter-javascript", version = "9" }
81
81
  ```
82
82
 
83
83
  ```rust
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-javascript",
3
- "version": "8.0.4",
3
+ "version": "9.0.0",
4
4
  "description": "JavaScript grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -43,17 +43,20 @@
43
43
  "verify-full": "bun wb verify --full"
44
44
  },
45
45
  "devDependencies": {
46
+ "@babel/parser": "7.29.9",
46
47
  "@tsconfig/bun": "1.0.11",
47
- "@types/bun": "1.4.2",
48
+ "@types/bun": "1.4.3",
48
49
  "@vitest/browser-playwright": "5.0.3",
49
50
  "@willbooster/oxfmt-config": "1.2.2",
50
51
  "@willbooster/oxlint-config": "1.4.8",
51
- "@willbooster/wb": "22.26.1",
52
- "@willbooster/web-tree-sitter": "7.0.5",
52
+ "@willbooster/wb": "22.26.2",
53
+ "@willbooster/web-tree-sitter": "10.0.1",
54
+ "acorn": "8.18.0",
55
+ "acorn-jsx": "5.3.2",
53
56
  "conventional-changelog-conventionalcommits": "10.4.1",
54
- "lefthook": "2.2.1",
55
- "oxfmt": "0.72.0",
56
- "oxlint": "1.87.0",
57
+ "lefthook": "2.2.2",
58
+ "oxfmt": "0.73.0",
59
+ "oxlint": "1.88.0",
57
60
  "oxlint-tsgolint": "7.0.2004",
58
61
  "playwright": "1.64.0",
59
62
  "semantic-release": "25.0.9",
@@ -63,7 +66,7 @@
63
66
  "wrangler": "4.149.0"
64
67
  },
65
68
  "peerDependencies": {
66
- "@willbooster/web-tree-sitter": "^7.0.5"
69
+ "@willbooster/web-tree-sitter": "^10.0.1"
67
70
  },
68
71
  "peerDependenciesMeta": {
69
72
  "@willbooster/web-tree-sitter": {
Binary file
Binary file
package/tree-sitter.json CHANGED
@@ -48,7 +48,7 @@
48
48
  }
49
49
  ],
50
50
  "metadata": {
51
- "version": "8.0.4",
51
+ "version": "9.0.0",
52
52
  "license": "MIT",
53
53
  "description": "JavaScript grammar for tree-sitter",
54
54
  "authors": [