@willbooster/tree-sitter-bash 12.0.1 → 13.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-bash.wasm +0 -0
- package/tree-sitter.json +1 -1
package/README.md
CHANGED
|
@@ -12,7 +12,7 @@ contributors. This is not an official release of that project.
|
|
|
12
12
|
|
|
13
13
|
This fork aims to parse scripts exactly as bash runs them, so that tools can tell code from data in untrusted
|
|
14
14
|
scripts. It fixes parsing bugs and raises conformance with bash, checked by differential tests against bash itself.
|
|
15
|
-
As a result, its syntax trees differ from the original grammar's
|
|
15
|
+
As a result, its syntax trees differ from the original grammar's.
|
|
16
16
|
|
|
17
17
|
## Support Scope
|
|
18
18
|
|
|
@@ -23,14 +23,14 @@ the trees that error recovery produces may change; such changes are released as
|
|
|
23
23
|
|
|
24
24
|
## Usage
|
|
25
25
|
|
|
26
|
-
The npm package ships `tree-sitter-bash.wasm
|
|
27
|
-
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter)
|
|
26
|
+
The npm package ships `tree-sitter-bash.wasm`, targeting and tested with
|
|
27
|
+
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) 19.1.1 or later in the 19.x series,
|
|
28
28
|
a peer dependency.
|
|
29
29
|
The parser carries the ABI number of WillBooster/tree-sitter (`0x5742000c`), so only that runtime loads it; the
|
|
30
30
|
original tree-sitter runtime rejects it, and earlier WillBooster runtime ABIs do too:
|
|
31
31
|
|
|
32
32
|
```sh
|
|
33
|
-
npm install @willbooster/tree-sitter-bash @willbooster/web-tree-sitter@^
|
|
33
|
+
npm install @willbooster/tree-sitter-bash @willbooster/web-tree-sitter@^19.1.1
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
In Node.js and Bun, load the grammar from its path:
|
|
@@ -75,7 +75,7 @@ parser.setLanguage(await Language.load(bash));
|
|
|
75
75
|
|
|
76
76
|
The package also ships the node types in `src/node-types.json`.
|
|
77
77
|
|
|
78
|
-
Upgrade `@willbooster/web-tree-sitter` to
|
|
78
|
+
Upgrade `@willbooster/web-tree-sitter` to 19.1.1 or later in the 19.x series when upgrading this package. Recovery trees
|
|
79
79
|
for malformed scripts can differ across runtime versions, so review consumers that depend on the exact shape of
|
|
80
80
|
`ERROR` nodes.
|
|
81
81
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-bash",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "Bash grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"bash",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@vitest/browser-playwright": "5.0.5",
|
|
49
49
|
"@willbooster/oxlint-config": "1.4.9",
|
|
50
50
|
"@willbooster/wb": "23.3.0",
|
|
51
|
-
"@willbooster/web-tree-sitter": "
|
|
51
|
+
"@willbooster/web-tree-sitter": "19.1.1",
|
|
52
52
|
"conventional-changelog-conventionalcommits": "10.4.1",
|
|
53
53
|
"lefthook": "2.2.2",
|
|
54
54
|
"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-bash.wasm
CHANGED
|
Binary file
|