@willbooster/tree-sitter-html 17.0.4 → 18.0.1
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 +15 -10
- package/tree-sitter-html.wasm +0 -0
- package/tree-sitter.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[](https://github.com/WillBooster/tree-sitter-html/actions/workflows/test.yml)
|
|
6
6
|
[](https://github.com/WillBooster/tree-sitter-html/actions/workflows/test-rust.yml)
|
|
7
7
|
[](https://github.com/semantic-release/semantic-release)
|
|
8
|
-
[](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
|
|
9
9
|
[](https://crates.io/crates/willbooster-tree-sitter-html)
|
|
10
10
|
|
|
11
11
|
HTML grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter), forked from
|
|
@@ -14,10 +14,10 @@ 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 `0x5742000e`, so it loads only with the WillBooster runtime
|
|
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
|
-
it. This package targets and is tested with version 23.
|
|
20
|
+
it. This package targets and is tested with version 23.1.0 or later in the 23.x series. Input that contains NUL characters can parse to a different tree than with upstream's 0.23.2 parser, because the
|
|
21
21
|
lexers that generator emits treat a NUL character as an ordinary character. This grammar also accepts literal `>`
|
|
22
22
|
characters and bare `&` in text nodes, which upstream 0.23.2 rejects. A bare `&` becomes its own `text` node beside
|
|
23
23
|
surrounding text, while character references remain `entity` nodes. Text nodes include leading, trailing, and whitespace-only content, including whitespace between markup and character references. A DOCTYPE declaration exposes its uninterpreted body as a `doctype_value` child, including legacy PUBLIC or SYSTEM identifiers. Processing instructions use source-preserving
|
|
@@ -70,7 +70,7 @@ error recovery produces may change; such changes are released as new major versi
|
|
|
70
70
|
## Usage
|
|
71
71
|
|
|
72
72
|
The npm package ships `tree-sitter-html.wasm` for
|
|
73
|
-
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 23.
|
|
73
|
+
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 23.1.0 or later in the 23.x series, which runs in Node.js, Bun, browsers, and Cloudflare Workers.
|
|
74
74
|
In Node.js and Bun, load the grammar from its path:
|
|
75
75
|
|
|
76
76
|
```js
|
|
@@ -117,7 +117,7 @@ In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-
|
|
|
117
117
|
fuzzed with:
|
|
118
118
|
|
|
119
119
|
```sh
|
|
120
|
-
cargo add willbooster-tree-sitter@23.
|
|
120
|
+
cargo add willbooster-tree-sitter@23.1.0 --rename tree-sitter
|
|
121
121
|
cargo add willbooster-tree-sitter-html --rename tree-sitter-html
|
|
122
122
|
```
|
|
123
123
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-html",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "18.0.1",
|
|
4
4
|
"description": "HTML grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"html",
|
|
@@ -43,27 +43,32 @@
|
|
|
43
43
|
"verify-full": "bun wb verify --full"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
+
"@semantic-release/commit-analyzer": "13.0.1",
|
|
47
|
+
"@semantic-release/release-notes-generator": "14.1.1",
|
|
46
48
|
"@tsconfig/bun": "1.0.12",
|
|
47
|
-
"@types/bun": "1.4.
|
|
48
|
-
"@vitest/browser-playwright": "5.1.
|
|
49
|
+
"@types/bun": "1.4.5",
|
|
50
|
+
"@vitest/browser-playwright": "5.1.1",
|
|
49
51
|
"@willbooster/oxlint-config": "1.4.9",
|
|
50
|
-
"@willbooster/wb": "
|
|
51
|
-
"@willbooster/web-tree-sitter": "23.
|
|
52
|
+
"@willbooster/wb": "24.3.1",
|
|
53
|
+
"@willbooster/web-tree-sitter": "23.1.1",
|
|
52
54
|
"conventional-changelog-conventionalcommits": "10.4.1",
|
|
53
55
|
"lefthook": "2.2.2",
|
|
54
|
-
"oxlint": "1.
|
|
55
|
-
"oxlint-tsgolint": "7.0.
|
|
56
|
+
"oxlint": "1.94.0",
|
|
57
|
+
"oxlint-tsgolint": "7.0.2008",
|
|
56
58
|
"playwright": "1.65.1",
|
|
57
|
-
"semantic-release": "
|
|
58
|
-
"vitest": "5.1.
|
|
59
|
+
"semantic-release": "26.0.1",
|
|
60
|
+
"vitest": "5.1.1",
|
|
59
61
|
"wrangler": "4.156.0"
|
|
60
62
|
},
|
|
61
63
|
"peerDependencies": {
|
|
62
|
-
"@willbooster/web-tree-sitter": "^23.
|
|
64
|
+
"@willbooster/web-tree-sitter": "^23.1.0"
|
|
63
65
|
},
|
|
64
66
|
"peerDependenciesMeta": {
|
|
65
67
|
"@willbooster/web-tree-sitter": {
|
|
66
68
|
"optional": true
|
|
67
69
|
}
|
|
70
|
+
},
|
|
71
|
+
"overrides": {
|
|
72
|
+
"cross-spawn": "7.1.0"
|
|
68
73
|
}
|
|
69
74
|
}
|
package/tree-sitter-html.wasm
CHANGED
|
Binary file
|