@willbooster/tree-sitter-cpp 29.0.0 → 31.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
@@ -41,17 +41,16 @@ the compiler's interpretation.
41
41
  ## Support Scope
42
42
 
43
43
  This fork maintains only full parsing: valid input yields a correct tree, and invalid input yields `ERROR` or `MISSING`
44
- nodes without crashing, hanging, or taking more than linear time. Incremental parsing works as in upstream tree-sitter
45
- but is not tested here, and no queries (highlights, locals, injections, tags) are shipped. Node types, field names, and
46
- the trees that error recovery produces may change; such changes are released as new major versions.
44
+ nodes without crashing, hanging, or taking more than linear time. Incremental parsing is not supported, and no queries
45
+ (highlights, locals, injections, tags) are shipped. Node types, field names, and the trees that error recovery produces
46
+ may change; such changes are released as new major versions.
47
47
 
48
48
  ## Usage
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 `@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
52
+ browsers, and Cloudflare Workers. Use `@willbooster/web-tree-sitter` 23.0.0 or later in the 23.x series. The parser uses
53
+ WillBooster/tree-sitter ABI `0x5742000d`, which upstream Tree-sitter runtimes reject; upgrade
55
54
  the grammar and runtime together. Install both:
56
55
 
57
56
  ```sh
@@ -100,12 +99,11 @@ The package also ships the node types in `src/node-types.json`.
100
99
 
101
100
  In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-cpp) and on
102
101
  [willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter), the runtime this package is tested and
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
+ fuzzed with. Use `willbooster-tree-sitter` 23.0.0 or later in the 23.x series; upstream Tree-sitter runtimes reject ABI
103
+ `0x5742000d`:
106
104
 
107
105
  ```sh
108
- cargo add --rename tree-sitter willbooster-tree-sitter@19.1.1
106
+ cargo add --rename tree-sitter willbooster-tree-sitter@23.0.0
109
107
  cargo add --rename tree-sitter-cpp willbooster-tree-sitter-cpp
110
108
  ```
111
109
 
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-cpp",
3
- "version": "29.0.0",
3
+ "version": "31.0.0",
4
4
  "description": "C++ grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "cpp",
7
- "incremental",
8
7
  "parsing",
9
8
  "tree-sitter"
10
9
  ],
@@ -45,23 +44,23 @@
45
44
  "devDependencies": {
46
45
  "@tsconfig/bun": "1.0.11",
47
46
  "@types/bun": "1.4.4",
48
- "@vitest/browser-playwright": "5.0.5",
47
+ "@vitest/browser-playwright": "5.1.0",
49
48
  "@willbooster/oxlint-config": "1.4.9",
50
49
  "@willbooster/tree-sitter-c": "18.1.0",
51
- "@willbooster/wb": "23.3.0",
52
- "@willbooster/web-tree-sitter": "19.1.1",
50
+ "@willbooster/wb": "23.3.4",
51
+ "@willbooster/web-tree-sitter": "23.0.0",
53
52
  "conventional-changelog-conventionalcommits": "10.4.1",
54
53
  "lefthook": "2.2.2",
55
- "oxlint": "1.90.0",
56
- "oxlint-tsgolint": "7.0.2005",
57
- "playwright": "1.64.1",
54
+ "oxlint": "1.92.0",
55
+ "oxlint-tsgolint": "7.0.2006",
56
+ "playwright": "1.65.0",
58
57
  "semantic-release": "25.0.9",
59
- "vite": "8.3.5",
60
- "vitest": "5.0.5",
58
+ "vite": "8.3.6",
59
+ "vitest": "5.1.0",
61
60
  "wrangler": "4.156.0"
62
61
  },
63
62
  "peerDependencies": {
64
- "@willbooster/web-tree-sitter": "^19.1.1"
63
+ "@willbooster/web-tree-sitter": "^23.0.0"
65
64
  },
66
65
  "peerDependenciesMeta": {
67
66
  "@willbooster/web-tree-sitter": {
Binary file
package/tree-sitter.json CHANGED
@@ -27,7 +27,7 @@
27
27
  }
28
28
  ],
29
29
  "metadata": {
30
- "version": "29.0.0",
30
+ "version": "31.0.0",
31
31
  "license": "MIT",
32
32
  "description": "C++ grammar for tree-sitter",
33
33
  "authors": [