@willbooster/tree-sitter-cpp 2.0.7 → 3.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
@@ -5,7 +5,7 @@
5
5
  [![Test](https://github.com/WillBooster/tree-sitter-cpp/actions/workflows/test.yml/badge.svg)](https://github.com/WillBooster/tree-sitter-cpp/actions/workflows/test.yml)
6
6
  [![Test rust](https://github.com/WillBooster/tree-sitter-cpp/actions/workflows/test-rust.yml/badge.svg)](https://github.com/WillBooster/tree-sitter-cpp/actions/workflows/test-rust.yml)
7
7
  [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
8
- [![wbfy](https://img.shields.io/badge/wbfy-20.28.8-1e90ff.svg)](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
8
+ [![wbfy](https://img.shields.io/badge/wbfy-20.36.11-1e90ff.svg)](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
9
9
  [![crates.io](https://img.shields.io/crates/v/willbooster-tree-sitter-cpp.svg)](https://crates.io/crates/willbooster-tree-sitter-cpp)
10
10
 
11
11
  C++ grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter), forked from
@@ -19,7 +19,8 @@ This fork fixes parsing bugs and raises conformance with the ISO C++ standard
19
19
 
20
20
  The npm package ships `tree-sitter-cpp.wasm` for
21
21
  [@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter), which runs in Node.js, Bun,
22
- browsers, and Cloudflare Workers. The compact ABI 16 parser requires runtime 1.3.0 or later. Install both:
22
+ browsers, and Cloudflare Workers. The parser carries the ABI number of the WillBooster/tree-sitter fork, so it loads
23
+ only with that runtime, version 2.0.0 or later; upstream's runtime rejects it. Install both:
23
24
 
24
25
  ```sh
25
26
  npm install @willbooster/tree-sitter-cpp @willbooster/web-tree-sitter
@@ -67,12 +68,12 @@ grammar's in `queries/` and, in `queries/c/`, the highlights of the C grammar it
67
68
 
68
69
  In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-cpp) and on
69
70
  [willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter), the runtime this package is tested and
70
- fuzzed with. The compact ABI 16 parser requires runtime 1.3.0 or later:
71
+ fuzzed with. The parser loads only with that runtime, version 2.0.0 or later:
71
72
 
72
73
  ```toml
73
74
  [dependencies]
74
- tree-sitter = { package = "willbooster-tree-sitter", version = "1.3.0" }
75
- tree-sitter-cpp = { package = "willbooster-tree-sitter-cpp", version = "2" }
75
+ tree-sitter = { package = "willbooster-tree-sitter", version = "2.0.0" }
76
+ tree-sitter-cpp = { package = "willbooster-tree-sitter-cpp", version = "3" }
76
77
  ```
77
78
 
78
79
  ```rust
@@ -99,7 +100,7 @@ not the ones this package ships with. Its first run downloads that CLI from the
99
100
  with `cargo` (whose build runs the CMake that `mise.toml` pins) when the download fails or the release has no binary
100
101
  that runs here. Run other CLI commands through it as well (e.g. `script/tree-sitter parse file.cpp`).
101
102
 
102
- `bun run generate` records a fresh ABI 16 generation profile from the applicable `test/corpus` cases and Git-tracked
103
+ `bun run generate` records a fresh generation profile from the applicable `test/corpus` cases and Git-tracked
103
104
  files in `examples/`, then generates compact parser tables. The parser also embeds metadata from `tree-sitter.json`. After changing a grammar, the pinned `@willbooster/tree-sitter-c` dependency,
104
105
  `tree-sitter.json`, a corpus case, or a tracked example,
105
106
  regenerate and commit `src/`. Stage added or removed examples with `git add -A examples` before generation so the profile uses the intended file list.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-cpp",
3
- "version": "2.0.7",
3
+ "version": "3.0.0",
4
4
  "description": "C++ grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -46,8 +46,8 @@
46
46
  "@willbooster/oxfmt-config": "1.2.2",
47
47
  "@willbooster/oxlint-config": "1.4.8",
48
48
  "@willbooster/tree-sitter-c": "2.0.0",
49
- "@willbooster/wb": "22.23.1",
50
- "@willbooster/web-tree-sitter": "1.4.7",
49
+ "@willbooster/wb": "22.24.0",
50
+ "@willbooster/web-tree-sitter": "2.0.1",
51
51
  "conventional-changelog-conventionalcommits": "10.4.0",
52
52
  "lefthook": "2.1.16",
53
53
  "oxfmt": "0.71.0",
@@ -63,7 +63,7 @@
63
63
  "wrangler": "4.147.0"
64
64
  },
65
65
  "peerDependencies": {
66
- "@willbooster/web-tree-sitter": "^1.3.0"
66
+ "@willbooster/web-tree-sitter": "^2.0.0"
67
67
  },
68
68
  "peerDependenciesMeta": {
69
69
  "@willbooster/web-tree-sitter": {
Binary file
package/tree-sitter.json CHANGED
@@ -24,7 +24,7 @@
24
24
  }
25
25
  ],
26
26
  "metadata": {
27
- "version": "2.0.7",
27
+ "version": "3.0.0",
28
28
  "license": "MIT",
29
29
  "description": "C++ grammar for tree-sitter",
30
30
  "authors": [