@willbooster/tree-sitter-c 35.0.0 → 36.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 +2 -2
- package/package.json +3 -4
- package/tree-sitter-c.wasm +0 -0
- package/tree-sitter.json +1 -1
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ the trees that error recovery produces may change; such changes are released as
|
|
|
24
24
|
## Usage
|
|
25
25
|
|
|
26
26
|
The npm package ships `tree-sitter-c.wasm` for
|
|
27
|
-
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version
|
|
27
|
+
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 20.0.0 or later within 20.x, which runs in Node.js, Bun, browsers, and Cloudflare Workers. The parser carries the ABI number of the WillBooster/tree-sitter generator (`0x5742000c`), so it loads only with that runtime; upstream tree-sitter runtimes reject it. In Node.js and Bun, load the grammar from its path:
|
|
28
28
|
|
|
29
29
|
```js
|
|
30
30
|
import { fileURLToPath } from 'node:url';
|
|
@@ -214,7 +214,7 @@ In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-
|
|
|
214
214
|
fuzzed with, at the version recorded in `Cargo.lock`:
|
|
215
215
|
|
|
216
216
|
```sh
|
|
217
|
-
cargo add willbooster-tree-sitter@
|
|
217
|
+
cargo add willbooster-tree-sitter@20.0.0 --rename tree-sitter
|
|
218
218
|
cargo add willbooster-tree-sitter-c --rename tree-sitter-c
|
|
219
219
|
```
|
|
220
220
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-c",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "36.0.0",
|
|
4
4
|
"description": "C grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"c",
|
|
7
|
-
"incremental",
|
|
8
7
|
"parsing",
|
|
9
8
|
"tree-sitter"
|
|
10
9
|
],
|
|
@@ -60,7 +59,7 @@
|
|
|
60
59
|
"@vitest/browser-playwright": "5.0.5",
|
|
61
60
|
"@willbooster/oxlint-config": "1.4.9",
|
|
62
61
|
"@willbooster/wb": "23.3.0",
|
|
63
|
-
"@willbooster/web-tree-sitter": "
|
|
62
|
+
"@willbooster/web-tree-sitter": "20.0.0",
|
|
64
63
|
"conventional-changelog-conventionalcommits": "10.4.1",
|
|
65
64
|
"lefthook": "2.2.2",
|
|
66
65
|
"oxlint": "1.90.0",
|
|
@@ -71,7 +70,7 @@
|
|
|
71
70
|
"wrangler": "4.156.0"
|
|
72
71
|
},
|
|
73
72
|
"peerDependencies": {
|
|
74
|
-
"@willbooster/web-tree-sitter": "^
|
|
73
|
+
"@willbooster/web-tree-sitter": "^20.0.0"
|
|
75
74
|
},
|
|
76
75
|
"peerDependenciesMeta": {
|
|
77
76
|
"@willbooster/web-tree-sitter": {
|
package/tree-sitter-c.wasm
CHANGED
|
Binary file
|