@willbooster/tree-sitter-html 14.0.1 → 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
@@ -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 `0x5742000c`, so it loads with the WillBooster runtime, version 17.0.1 or later in the 17.x series
17
+ number `0x5742000c`, 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. Input that contains NUL characters can parse to a different tree than with upstream's 0.23.2 parser, because the
20
+ it. This package targets and is tested with version 19.1.1 or later in the 19.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 17.0.1 or later in the 17.x series, which runs in Node.js, Bun, browsers, and Cloudflare Workers.
73
+ [@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 19.1.1 or later in the 19.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@17.0.1 --rename tree-sitter
120
+ cargo add willbooster-tree-sitter@19.1.1 --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": "14.0.1",
3
+ "version": "15.0.0",
4
4
  "description": "HTML grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "html",
@@ -49,7 +49,7 @@
49
49
  "@vitest/browser-playwright": "5.0.5",
50
50
  "@willbooster/oxlint-config": "1.4.9",
51
51
  "@willbooster/wb": "23.3.0",
52
- "@willbooster/web-tree-sitter": "18.0.2",
52
+ "@willbooster/web-tree-sitter": "19.1.1",
53
53
  "conventional-changelog-conventionalcommits": "10.4.1",
54
54
  "lefthook": "2.2.2",
55
55
  "oxlint": "1.90.0",
@@ -60,7 +60,7 @@
60
60
  "wrangler": "4.156.0"
61
61
  },
62
62
  "peerDependencies": {
63
- "@willbooster/web-tree-sitter": "^17.0.1 || ^18.0.0"
63
+ "@willbooster/web-tree-sitter": "^19.1.1"
64
64
  },
65
65
  "peerDependenciesMeta": {
66
66
  "@willbooster/web-tree-sitter": {
Binary file
package/tree-sitter.json CHANGED
@@ -18,7 +18,7 @@
18
18
  }
19
19
  ],
20
20
  "metadata": {
21
- "version": "14.0.1",
21
+ "version": "15.0.0",
22
22
  "license": "MIT",
23
23
  "description": "HTML grammar for tree-sitter",
24
24
  "authors": [