@willbooster/tree-sitter-xml 3.0.2 → 4.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-dtd.wasm +0 -0
- package/tree-sitter-xml.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 builds on the grammars and queries of upstream's version 0.7.0 and generates the parsers with the
|
|
16
16
|
[WillBooster/tree-sitter](https://github.com/WillBooster/tree-sitter) generator. The parsers carry that fork's own ABI
|
|
17
|
-
number (`
|
|
17
|
+
number (`0x57420009`) and load with that fork's runtime, version 13.0.0 or later in the 13.x series. The XML scanner
|
|
18
18
|
adapts to the generated array API with the change upstream itself made after 0.7.0. The parsers differ from
|
|
19
19
|
upstream's 0.7.0 packages in these ways:
|
|
20
20
|
|
|
@@ -38,7 +38,7 @@ parses external DTD files.
|
|
|
38
38
|
## Usage
|
|
39
39
|
|
|
40
40
|
The npm package ships `tree-sitter-xml.wasm` and `tree-sitter-dtd.wasm` for
|
|
41
|
-
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version
|
|
41
|
+
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 13.0.0 or later in the 13.x series, which runs in Node.js, Bun, browsers, and Cloudflare Workers.
|
|
42
42
|
In Node.js and Bun, load the grammar from its path:
|
|
43
43
|
|
|
44
44
|
```js
|
|
@@ -87,8 +87,8 @@ fuzzed with:
|
|
|
87
87
|
|
|
88
88
|
```toml
|
|
89
89
|
[dependencies]
|
|
90
|
-
tree-sitter = { package = "willbooster-tree-sitter", version = "
|
|
91
|
-
tree-sitter-xml = { package = "willbooster-tree-sitter-xml", version = "
|
|
90
|
+
tree-sitter = { package = "willbooster-tree-sitter", version = "13.0.0" }
|
|
91
|
+
tree-sitter-xml = { package = "willbooster-tree-sitter-xml", version = "4" }
|
|
92
92
|
```
|
|
93
93
|
|
|
94
94
|
```rust
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-xml",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "XML & DTD grammars for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"incremental",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"@willbooster/oxfmt-config": "1.2.2",
|
|
54
54
|
"@willbooster/oxlint-config": "1.4.8",
|
|
55
55
|
"@willbooster/wb": "22.26.2",
|
|
56
|
-
"@willbooster/web-tree-sitter": "
|
|
56
|
+
"@willbooster/web-tree-sitter": "13.0.0",
|
|
57
57
|
"conventional-changelog-conventionalcommits": "10.4.0",
|
|
58
58
|
"lefthook": "2.2.2",
|
|
59
59
|
"oxfmt": "0.73.0",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"wrangler": "4.147.0"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@willbooster/web-tree-sitter": "^
|
|
69
|
+
"@willbooster/web-tree-sitter": "^13.0.0"
|
|
70
70
|
},
|
|
71
71
|
"peerDependenciesMeta": {
|
|
72
72
|
"@willbooster/web-tree-sitter": {
|
package/tree-sitter-dtd.wasm
CHANGED
|
Binary file
|
package/tree-sitter-xml.wasm
CHANGED
|
Binary file
|