@willbooster/tree-sitter-go 9.0.1 → 10.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 +8 -5
- package/package.json +3 -3
- package/tree-sitter-go.wasm +0 -0
- package/tree-sitter.json +1 -1
package/README.md
CHANGED
|
@@ -13,9 +13,12 @@ Go grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter), forked
|
|
|
13
13
|
to its authors and contributors. This is not an official release of that project.
|
|
14
14
|
|
|
15
15
|
This fork extends upstream's version 0.25.0 grammar with method type parameters and generates the parser with the
|
|
16
|
-
[WillBooster/tree-sitter](https://github.com/WillBooster/tree-sitter) generator. The parser carries that fork's
|
|
17
|
-
number (`0x5742000c`),
|
|
18
|
-
(`willbooster-tree-sitter
|
|
16
|
+
[WillBooster/tree-sitter](https://github.com/WillBooster/tree-sitter) generator. The parser carries that fork's ABI
|
|
17
|
+
number (`0x5742000c`), which upstream tree-sitter runtimes reject. It requires the WillBooster runtime
|
|
18
|
+
(`willbooster-tree-sitter` or `@willbooster/web-tree-sitter`) version 19.1.1 or later within 19.x. Earlier 17.x, 18.x,
|
|
19
|
+
and 19.0.x WillBooster runtimes share ABI `0x5742000c` and pass the ABI check, but dereference `TSLanguage` tables
|
|
20
|
+
(`alias_map` and `primary_state_bitmap`) omitted since 19.1.0 in pre-19.0.0 query APIs and pre-19.1.0 Wasm language
|
|
21
|
+
loading.
|
|
19
22
|
|
|
20
23
|
## Support Scope
|
|
21
24
|
|
|
@@ -27,7 +30,7 @@ the trees that error recovery produces may change; such changes are released as
|
|
|
27
30
|
## Usage
|
|
28
31
|
|
|
29
32
|
The npm package ships `tree-sitter-go.wasm` for
|
|
30
|
-
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version
|
|
33
|
+
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 19.1.1 or later within 19.x, which runs in Node.js, Bun, browsers, and Cloudflare Workers. In Node.js and Bun, load the grammar from its path:
|
|
31
34
|
|
|
32
35
|
```js
|
|
33
36
|
import { fileURLToPath } from 'node:url';
|
|
@@ -73,7 +76,7 @@ In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-
|
|
|
73
76
|
fuzzed with:
|
|
74
77
|
|
|
75
78
|
```sh
|
|
76
|
-
cargo add willbooster-tree-sitter@
|
|
79
|
+
cargo add willbooster-tree-sitter@19.1.1 --rename tree-sitter
|
|
77
80
|
cargo add willbooster-tree-sitter-go --rename tree-sitter-go
|
|
78
81
|
```
|
|
79
82
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-go",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "Go grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"go",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@vitest/browser-playwright": "5.0.5",
|
|
50
50
|
"@willbooster/oxlint-config": "1.4.9",
|
|
51
51
|
"@willbooster/wb": "23.3.0",
|
|
52
|
-
"@willbooster/web-tree-sitter": "
|
|
52
|
+
"@willbooster/web-tree-sitter": "19.1.1",
|
|
53
53
|
"conventional-changelog-conventionalcommits": "10.4.1",
|
|
54
54
|
"lefthook": "2.2.2",
|
|
55
55
|
"oxlint": "1.90.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"wrangler": "4.156.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"@willbooster/web-tree-sitter": "^
|
|
63
|
+
"@willbooster/web-tree-sitter": "^19.1.1"
|
|
64
64
|
},
|
|
65
65
|
"peerDependenciesMeta": {
|
|
66
66
|
"@willbooster/web-tree-sitter": {
|
package/tree-sitter-go.wasm
CHANGED
|
Binary file
|