@willbooster/tree-sitter-embedded-template 10.0.0 → 11.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 +6 -6
- package/package.json +3 -4
- package/tree-sitter-embedded_template.wasm +0 -0
- package/tree-sitter.json +1 -1
package/README.md
CHANGED
|
@@ -19,19 +19,19 @@ It generates the parser with the
|
|
|
19
19
|
[WillBooster/tree-sitter](https://github.com/WillBooster/tree-sitter) generator (ABI `0x5742000c`). The parser loads only
|
|
20
20
|
with that fork's runtime ([willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter),
|
|
21
21
|
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter)); upstream's runtime rejects it.
|
|
22
|
-
This package targets and is tested with version
|
|
22
|
+
This package targets and is tested with version 20.0.0 or later in the 20.x series.
|
|
23
23
|
|
|
24
24
|
## Support Scope
|
|
25
25
|
|
|
26
26
|
This fork maintains only full parsing: valid input yields a correct tree, and invalid input yields `ERROR` or `MISSING`
|
|
27
|
-
nodes without crashing, hanging, or taking more than linear time. Incremental parsing
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
nodes without crashing, hanging, or taking more than linear time. Incremental parsing is not supported, and no queries
|
|
28
|
+
(highlights, locals, injections, tags) are shipped. Node types, field names, and the trees that error recovery produces
|
|
29
|
+
may change; such changes are released as new major versions.
|
|
30
30
|
|
|
31
31
|
## Usage
|
|
32
32
|
|
|
33
33
|
The npm package ships `tree-sitter-embedded_template.wasm` for
|
|
34
|
-
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version
|
|
34
|
+
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 20.0.0 or later in the 20.x series, which runs in Node.js, Bun, browsers, and Cloudflare Workers.
|
|
35
35
|
In Node.js and Bun, load the grammar from its path:
|
|
36
36
|
|
|
37
37
|
```js
|
|
@@ -80,7 +80,7 @@ In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-
|
|
|
80
80
|
fuzzed with:
|
|
81
81
|
|
|
82
82
|
```sh
|
|
83
|
-
cargo add willbooster-tree-sitter@
|
|
83
|
+
cargo add willbooster-tree-sitter@20.0.0 --rename tree-sitter
|
|
84
84
|
cargo add willbooster-tree-sitter-embedded-template --rename tree-sitter-embedded-template
|
|
85
85
|
```
|
|
86
86
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-embedded-template",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "Embedded template (ERB, EJS) grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"embedded-template",
|
|
7
|
-
"incremental",
|
|
8
7
|
"parsing",
|
|
9
8
|
"tree-sitter"
|
|
10
9
|
],
|
|
@@ -49,7 +48,7 @@
|
|
|
49
48
|
"@vitest/browser-playwright": "5.0.5",
|
|
50
49
|
"@willbooster/oxlint-config": "1.4.9",
|
|
51
50
|
"@willbooster/wb": "23.3.0",
|
|
52
|
-
"@willbooster/web-tree-sitter": "
|
|
51
|
+
"@willbooster/web-tree-sitter": "20.0.0",
|
|
53
52
|
"conventional-changelog-conventionalcommits": "10.4.1",
|
|
54
53
|
"lefthook": "2.2.2",
|
|
55
54
|
"oxlint": "1.90.0",
|
|
@@ -60,7 +59,7 @@
|
|
|
60
59
|
"wrangler": "4.156.0"
|
|
61
60
|
},
|
|
62
61
|
"peerDependencies": {
|
|
63
|
-
"@willbooster/web-tree-sitter": "^
|
|
62
|
+
"@willbooster/web-tree-sitter": "^20.0.0"
|
|
64
63
|
},
|
|
65
64
|
"peerDependenciesMeta": {
|
|
66
65
|
"@willbooster/web-tree-sitter": {
|
|
Binary file
|