@willbooster/tree-sitter-c-sharp 1.0.1 → 1.0.3

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
@@ -76,11 +76,13 @@ parser.setLanguage(await Language.load(cSharp));
76
76
 
77
77
  The package also ships the node types in `src/node-types.json`.
78
78
 
79
- In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-c-sharp):
79
+ In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-c-sharp) and the
80
+ [runtime](https://crates.io/crates/willbooster-tree-sitter), whose fixes keep incremental reparses consistent with
81
+ fresh parses:
80
82
 
81
83
  ```toml
82
84
  [dependencies]
83
- tree-sitter = "0.27"
85
+ tree-sitter = { package = "willbooster-tree-sitter", version = "1.0.4" }
84
86
  tree-sitter-c-sharp = { package = "willbooster-tree-sitter-c-sharp", version = "1" }
85
87
  ```
86
88
 
@@ -117,6 +119,9 @@ cargo test
117
119
  which needs Chromium installed once by `bunx playwright install chromium`) and in Cloudflare Workers with and without
118
120
  `nodejs_compat` (`test/unit/workers.test.ts`).
119
121
 
122
+ `cargo test` also replays edits that `tree-sitter fuzz` found to break incremental parsing, with the
123
+ willbooster-tree-sitter runtime that fixes them; `tree-sitter fuzz` itself runs the runtime built into tree-sitter-cli.
124
+
120
125
  CI also runs these tests on Linux arm64 and macOS, where the Rust binding compiles the parser natively, and fuzzes the parser with libFuzzer and sanitizers
121
126
  (`.github/workflows/robustness.yml`).
122
127
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-c-sharp",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "C# grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
Binary file
package/tree-sitter.json CHANGED
@@ -19,7 +19,7 @@
19
19
  }
20
20
  ],
21
21
  "metadata": {
22
- "version": "1.0.1",
22
+ "version": "1.0.3",
23
23
  "license": "MIT",
24
24
  "description": "C# grammar for tree-sitter",
25
25
  "authors": [