@willbooster/tree-sitter-bash 13.0.0 → 15.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
@@ -17,20 +17,20 @@ As a result, its syntax trees differ from the original grammar's.
17
17
  ## Support Scope
18
18
 
19
19
  This fork maintains only full parsing: valid input yields a correct tree, and invalid input yields `ERROR` or `MISSING`
20
- nodes without crashing, hanging, or taking more than linear time. Incremental parsing works as in upstream tree-sitter
21
- but is not tested here, and no queries (highlights, locals, injections, tags) are shipped. Node types, field names, and
22
- the trees that error recovery produces may change; such changes are released as new major versions.
20
+ nodes without crashing, hanging, or taking more than linear time. Incremental parsing is not supported, and no queries
21
+ (highlights, locals, injections, tags) are shipped. Node types, field names, and the trees that error recovery produces
22
+ may change; such changes are released as new major versions.
23
23
 
24
24
  ## Usage
25
25
 
26
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,
27
+ [@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) 23.0.0 or later in the 23.x series,
28
28
  a peer dependency.
29
- The parser carries the ABI number of WillBooster/tree-sitter (`0x5742000c`), so only that runtime loads it; the
30
- original tree-sitter runtime rejects it, and earlier WillBooster runtime ABIs do too:
29
+ The parser carries the ABI number of WillBooster/tree-sitter (`0x5742000d`), so only that runtime loads it; the
30
+ original tree-sitter runtime and WillBooster runtimes prior to 22.0.0 reject it:
31
31
 
32
32
  ```sh
33
- npm install @willbooster/tree-sitter-bash @willbooster/web-tree-sitter@^19.1.1
33
+ npm install @willbooster/tree-sitter-bash @willbooster/web-tree-sitter@^23.0.0
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 19.1.1 or later in the 19.x series when upgrading this package. Recovery trees
78
+ Upgrade `@willbooster/web-tree-sitter` to 23.0.0 or later in the 23.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/grammar.js CHANGED
@@ -880,8 +880,8 @@ module.exports = grammar({
880
880
  ),
881
881
 
882
882
  // Text led by a blank outranks `}`: otherwise the lexer, having consumed the blank as the start of
883
- // text, extends it into a `}` token that swallows the blank (`${x:- }`), which a reparse after an
884
- // edit does not reproduce, and the blank, which bash expands, would be lost.
883
+ // text, extends it into a `}` token that swallows the blank (`${x:- }`), losing the blank that bash
884
+ // expands.
885
885
  _blank_expansion_text: () => token(prec(1, seq(/[ \t\n]/, repeat(choice(...expansionTextUnits()))))),
886
886
 
887
887
  // A `<` or `>` that the text above cannot end with, e.g. before `}`. A single character, so that a
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-bash",
3
- "version": "13.0.0",
3
+ "version": "15.0.0",
4
4
  "description": "Bash grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "bash",
7
- "incremental",
8
7
  "parsing",
9
8
  "tree-sitter"
10
9
  ],
@@ -45,22 +44,22 @@
45
44
  "devDependencies": {
46
45
  "@tsconfig/bun": "1.0.11",
47
46
  "@types/bun": "1.4.4",
48
- "@vitest/browser-playwright": "5.0.5",
47
+ "@vitest/browser-playwright": "5.1.0",
49
48
  "@willbooster/oxlint-config": "1.4.9",
50
- "@willbooster/wb": "23.3.0",
51
- "@willbooster/web-tree-sitter": "19.1.1",
49
+ "@willbooster/wb": "23.3.4",
50
+ "@willbooster/web-tree-sitter": "23.0.0",
52
51
  "conventional-changelog-conventionalcommits": "10.4.1",
53
52
  "lefthook": "2.2.2",
54
- "oxlint": "1.90.0",
55
- "oxlint-tsgolint": "7.0.2005",
56
- "playwright": "1.64.1",
53
+ "oxlint": "1.92.0",
54
+ "oxlint-tsgolint": "7.0.2006",
55
+ "playwright": "1.65.0",
57
56
  "semantic-release": "25.0.9",
58
- "vite": "8.3.5",
59
- "vitest": "5.0.5",
57
+ "vite": "8.3.6",
58
+ "vitest": "5.1.0",
60
59
  "wrangler": "4.156.0"
61
60
  },
62
61
  "peerDependencies": {
63
- "@willbooster/web-tree-sitter": "^19.1.1"
62
+ "@willbooster/web-tree-sitter": "^23.0.0"
64
63
  },
65
64
  "peerDependenciesMeta": {
66
65
  "@willbooster/web-tree-sitter": {
Binary file
package/tree-sitter.json CHANGED
@@ -18,7 +18,7 @@
18
18
  }
19
19
  ],
20
20
  "metadata": {
21
- "version": "13.0.0",
21
+ "version": "15.0.0",
22
22
  "license": "MIT",
23
23
  "description": "Bash grammar for tree-sitter",
24
24
  "authors": [