@willbooster/tree-sitter-c-sharp 3.0.6 → 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 CHANGED
@@ -5,7 +5,7 @@
5
5
  [![Test](https://github.com/WillBooster/tree-sitter-c-sharp/actions/workflows/test.yml/badge.svg)](https://github.com/WillBooster/tree-sitter-c-sharp/actions/workflows/test.yml)
6
6
  [![Test rust](https://github.com/WillBooster/tree-sitter-c-sharp/actions/workflows/test-rust.yml/badge.svg)](https://github.com/WillBooster/tree-sitter-c-sharp/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.6-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-c-sharp.svg)](https://crates.io/crates/willbooster-tree-sitter-c-sharp)
10
10
 
11
11
  C# grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter), forked from
@@ -33,8 +33,9 @@ Known gaps:
33
33
 
34
34
  The npm package ships `tree-sitter-c_sharp.wasm` for
35
35
  [@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter), which runs in Node.js, Bun,
36
- browsers, and Cloudflare Workers. Use runtime version 1.3.0 or later for the compact ABI 16 parser. Install the runtime alongside the grammar when using the Wasm parser; it
37
- remains an optional peer for consumers that only use the grammar source or queries.
36
+ browsers, and Cloudflare Workers. The parser carries the ABI number of WillBooster/tree-sitter, so it loads only with
37
+ that runtime, version 2.0.0 or later; upstream's runtime rejects it. Install the runtime alongside the grammar when using
38
+ the Wasm parser; it remains an optional peer for consumers that only use the grammar source or queries.
38
39
 
39
40
  In Node.js and Bun, load it from the package:
40
41
 
@@ -79,12 +80,12 @@ The package also ships the queries in `queries/` and the node types in `src/node
79
80
 
80
81
  In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-c-sharp) and on
81
82
  [willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter), the runtime this package is tested and
82
- fuzzed with. The compact ABI 16 parser requires runtime 1.3.0 or later:
83
+ fuzzed with. The parser requires runtime 2.0.0 or later:
83
84
 
84
85
  ```toml
85
86
  [dependencies]
86
- tree-sitter = { package = "willbooster-tree-sitter", version = "1.3.0" }
87
- tree-sitter-c-sharp = { package = "willbooster-tree-sitter-c-sharp", version = "3" }
87
+ tree-sitter = { package = "willbooster-tree-sitter", version = "2.0.0" }
88
+ tree-sitter-c-sharp = { package = "willbooster-tree-sitter-c-sharp", version = "4" }
88
89
  ```
89
90
 
90
91
  ```rust
@@ -109,7 +110,7 @@ runtime this package ships. The first run downloads that CLI from its GitHub Rel
109
110
  `cargo` (with the `cmake` that `mise.toml` pins) when the download fails or the release has no binary that runs here. The `tree-sitter-cli` package provides
110
111
  only the types of the grammar DSL that `grammar.js` checks against; its `tree-sitter` binary is upstream's.
111
112
 
112
- `bun run generate` records a fresh ABI 16 generation profile from the applicable `test/corpus` cases and Git-tracked
113
+ `bun run generate` records a fresh generation profile from the applicable `test/corpus` cases and Git-tracked
113
114
  files in `examples/`, then generates compact parser tables. The parser also embeds metadata from `tree-sitter.json`. After changing a grammar,
114
115
  `tree-sitter.json`, a corpus case, or a tracked example,
115
116
  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-c-sharp",
3
- "version": "3.0.6",
3
+ "version": "4.0.0",
4
4
  "description": "C# grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -47,8 +47,8 @@
47
47
  "@vitest/browser-playwright": "5.0.3",
48
48
  "@willbooster/oxfmt-config": "1.2.2",
49
49
  "@willbooster/oxlint-config": "1.4.8",
50
- "@willbooster/wb": "22.23.1",
51
- "@willbooster/web-tree-sitter": "1.4.8",
50
+ "@willbooster/wb": "22.24.0",
51
+ "@willbooster/web-tree-sitter": "2.0.1",
52
52
  "conventional-changelog-conventionalcommits": "10.4.0",
53
53
  "lefthook": "2.1.16",
54
54
  "oxfmt": "0.71.0",
@@ -64,7 +64,7 @@
64
64
  "wrangler": "4.147.0"
65
65
  },
66
66
  "peerDependencies": {
67
- "@willbooster/web-tree-sitter": "^1.3.0"
67
+ "@willbooster/web-tree-sitter": "^2.0.0"
68
68
  },
69
69
  "peerDependenciesMeta": {
70
70
  "@willbooster/web-tree-sitter": {
Binary file
package/tree-sitter.json CHANGED
@@ -19,7 +19,7 @@
19
19
  }
20
20
  ],
21
21
  "metadata": {
22
- "version": "3.0.6",
22
+ "version": "4.0.0",
23
23
  "license": "MIT",
24
24
  "description": "C# grammar for tree-sitter",
25
25
  "authors": [