@willbooster/tree-sitter-cpp 28.0.1 → 29.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 +8 -4
- package/package.json +3 -3
- package/tree-sitter-cpp.wasm +0 -0
- package/tree-sitter.json +1 -1
package/README.md
CHANGED
|
@@ -49,8 +49,10 @@ the trees that error recovery produces may change; such changes are released as
|
|
|
49
49
|
|
|
50
50
|
The npm package ships `tree-sitter-cpp.wasm` for
|
|
51
51
|
[@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter), which runs in Node.js, Bun,
|
|
52
|
-
browsers, and Cloudflare Workers. Use
|
|
53
|
-
WillBooster/tree-sitter ABI `0x5742000c
|
|
52
|
+
browsers, and Cloudflare Workers. Use `@willbooster/web-tree-sitter` 19.1.1 or later in the 19.x series. The parser uses
|
|
53
|
+
WillBooster/tree-sitter ABI `0x5742000c`, which upstream Tree-sitter runtimes reject, and omits unused `TSLanguage`
|
|
54
|
+
tables that pre-19.1.0 WillBooster runtimes (`17.x` and `18.x`) dereference despite sharing ABI `0x5742000c`; upgrade
|
|
55
|
+
the grammar and runtime together. Install both:
|
|
54
56
|
|
|
55
57
|
```sh
|
|
56
58
|
npm install @willbooster/tree-sitter-cpp @willbooster/web-tree-sitter
|
|
@@ -98,10 +100,12 @@ The package also ships the node types in `src/node-types.json`.
|
|
|
98
100
|
|
|
99
101
|
In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-cpp) and on
|
|
100
102
|
[willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter), the runtime this package is tested and
|
|
101
|
-
fuzzed with. Use
|
|
103
|
+
fuzzed with. Use `willbooster-tree-sitter` 19.1.1 or later in the 19.x series; upstream Tree-sitter runtimes reject ABI
|
|
104
|
+
`0x5742000c`, and pre-19.1.0 WillBooster runtimes (`17.x` and `18.x`) dereference unused `TSLanguage` tables omitted in
|
|
105
|
+
19.1.0+:
|
|
102
106
|
|
|
103
107
|
```sh
|
|
104
|
-
cargo add --rename tree-sitter willbooster-tree-sitter@
|
|
108
|
+
cargo add --rename tree-sitter willbooster-tree-sitter@19.1.1
|
|
105
109
|
cargo add --rename tree-sitter-cpp willbooster-tree-sitter-cpp
|
|
106
110
|
```
|
|
107
111
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@willbooster/tree-sitter-cpp",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "29.0.0",
|
|
4
4
|
"description": "C++ grammar for tree-sitter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cpp",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@willbooster/oxlint-config": "1.4.9",
|
|
50
50
|
"@willbooster/tree-sitter-c": "18.1.0",
|
|
51
51
|
"@willbooster/wb": "23.3.0",
|
|
52
|
-
"@willbooster/web-tree-sitter": "
|
|
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",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"wrangler": "4.156.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@willbooster/web-tree-sitter": "^
|
|
64
|
+
"@willbooster/web-tree-sitter": "^19.1.1"
|
|
65
65
|
},
|
|
66
66
|
"peerDependenciesMeta": {
|
|
67
67
|
"@willbooster/web-tree-sitter": {
|
package/tree-sitter-cpp.wasm
CHANGED
|
Binary file
|