@willbooster/tree-sitter-html 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 +4 -4
- package/package.json +3 -3
- package/tree-sitter-html.wasm +0 -0
- package/tree-sitter.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ to its authors and contributors. This is not an official release of that project
|
|
|
14
14
|
|
|
15
15
|
This fork is based on upstream's version 0.23.2 grammar and external scanner and generates the parser with the
|
|
16
16
|
[WillBooster/tree-sitter](https://github.com/WillBooster/tree-sitter) generator. The parser carries that fork's own ABI
|
|
17
|
-
number `
|
|
17
|
+
number `0x5742000b`, so it loads with the WillBooster runtime, version 15.0.0 or later in the 15.x series
|
|
18
18
|
([willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter),
|
|
19
19
|
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter)); upstream's runtime rejects
|
|
20
20
|
it. Input that contains NUL characters can parse to a different tree than with upstream's 0.23.2 parser, because the
|
|
@@ -69,7 +69,7 @@ the value, so `noval= bool` remains one attribute with the unquoted value `bool`
|
|
|
69
69
|
## Usage
|
|
70
70
|
|
|
71
71
|
The npm package ships `tree-sitter-html.wasm` for
|
|
72
|
-
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version
|
|
72
|
+
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 15.0.0 or later in the 15.x series, which runs in Node.js, Bun, browsers, and Cloudflare Workers.
|
|
73
73
|
In Node.js and Bun, load the grammar from its path:
|
|
74
74
|
|
|
75
75
|
```js
|
|
@@ -117,8 +117,8 @@ fuzzed with:
|
|
|
117
117
|
|
|
118
118
|
```toml
|
|
119
119
|
[dependencies]
|
|
120
|
-
tree-sitter = { package = "willbooster-tree-sitter", version = "
|
|
121
|
-
tree-sitter-html = { package = "willbooster-tree-sitter-html", version = "
|
|
120
|
+
tree-sitter = { package = "willbooster-tree-sitter", version = "15.0.0" }
|
|
121
|
+
tree-sitter-html = { package = "willbooster-tree-sitter-html", version = "11" }
|
|
122
122
|
```
|
|
123
123
|
|
|
124
124
|
```rust
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-html",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "HTML grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"html",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@vitest/browser-playwright": "5.0.5",
|
|
51
51
|
"@willbooster/oxlint-config": "1.4.9",
|
|
52
52
|
"@willbooster/wb": "22.29.3",
|
|
53
|
-
"@willbooster/web-tree-sitter": "
|
|
53
|
+
"@willbooster/web-tree-sitter": "15.0.0",
|
|
54
54
|
"conventional-changelog-conventionalcommits": "10.4.1",
|
|
55
55
|
"lefthook": "2.2.2",
|
|
56
56
|
"oxlint": "1.88.0",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"wrangler": "4.151.1"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@willbooster/web-tree-sitter": "^
|
|
64
|
+
"@willbooster/web-tree-sitter": "^15.0.0"
|
|
65
65
|
},
|
|
66
66
|
"peerDependenciesMeta": {
|
|
67
67
|
"@willbooster/web-tree-sitter": {
|
package/tree-sitter-html.wasm
CHANGED
|
Binary file
|