@willbooster/tree-sitter-zig 3.0.1 → 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-zig/actions/workflows/test.yml/badge.svg)](https://github.com/WillBooster/tree-sitter-zig/actions/workflows/test.yml)
6
6
  [![Test rust](https://github.com/WillBooster/tree-sitter-zig/actions/workflows/test-rust.yml/badge.svg)](https://github.com/WillBooster/tree-sitter-zig/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.43.2-1e90ff.svg)](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
8
+ [![wbfy](https://img.shields.io/badge/wbfy-20.45.0-1e90ff.svg)](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
9
9
  [![crates.io](https://img.shields.io/crates/v/willbooster-tree-sitter-zig.svg)](https://crates.io/crates/willbooster-tree-sitter-zig)
10
10
 
11
11
  Zig grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter), forked from
@@ -14,7 +14,7 @@ to its authors and contributors. This is not an official release of that project
14
14
 
15
15
  This fork builds on the grammar of upstream's version 1.1.2 and generates the parser with the
16
16
  [WillBooster/tree-sitter](https://github.com/WillBooster/tree-sitter) generator. The parser carries that fork's own ABI
17
- number (`0x57420007`) and loads only with that fork's runtime, version 10.0.2 or later in the 10.x series: upstream's tree-sitter runtime
17
+ number (`0x57420009`) and loads only with that fork's runtime, version 13.0.0 or later in the 13.x series: upstream's tree-sitter runtime
18
18
  rejects it. It parses as the parser in upstream's 1.1.2 packages does, with these exceptions:
19
19
 
20
20
  - In the ranges a `for` loop iterates over, a range end whose first token can both start an expression and continue
@@ -44,7 +44,7 @@ rejects it. It parses as the parser in upstream's 1.1.2 packages does, with thes
44
44
  ## Usage
45
45
 
46
46
  The npm package ships `tree-sitter-zig.wasm` for
47
- [@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 10.0.2 or later in the 10.x series, which runs in Node.js, Bun, browsers, and Cloudflare Workers.
47
+ [@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 13.0.0 or later in the 13.x series, which runs in Node.js, Bun, browsers, and Cloudflare Workers.
48
48
  In Node.js and Bun, load the grammar from its path:
49
49
 
50
50
  ```js
@@ -91,8 +91,8 @@ fuzzed with:
91
91
 
92
92
  ```toml
93
93
  [dependencies]
94
- tree-sitter = { package = "willbooster-tree-sitter", version = "10.0.2" }
95
- tree-sitter-zig = { package = "willbooster-tree-sitter-zig", version = "3" }
94
+ tree-sitter = { package = "willbooster-tree-sitter", version = "13.0.0" }
95
+ tree-sitter-zig = { package = "willbooster-tree-sitter-zig", version = "4" }
96
96
  ```
97
97
 
98
98
  ```rust
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-zig",
3
- "version": "3.0.1",
3
+ "version": "4.0.0",
4
4
  "description": "Zig grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -46,8 +46,8 @@
46
46
  "@vitest/browser-playwright": "5.0.3",
47
47
  "@willbooster/oxfmt-config": "1.2.2",
48
48
  "@willbooster/oxlint-config": "1.4.8",
49
- "@willbooster/wb": "22.26.2",
50
- "@willbooster/web-tree-sitter": "10.0.2",
49
+ "@willbooster/wb": "22.26.3",
50
+ "@willbooster/web-tree-sitter": "13.0.0",
51
51
  "conventional-changelog-conventionalcommits": "10.4.0",
52
52
  "lefthook": "2.2.2",
53
53
  "oxfmt": "0.73.0",
@@ -55,12 +55,12 @@
55
55
  "oxlint-tsgolint": "7.0.2004",
56
56
  "playwright": "1.63.0",
57
57
  "semantic-release": "25.0.9",
58
- "sort-package-json": "4.0.0",
58
+ "sort-package-json": "4.1.0",
59
59
  "vitest": "5.0.3",
60
60
  "wrangler": "4.147.0"
61
61
  },
62
62
  "peerDependencies": {
63
- "@willbooster/web-tree-sitter": "^10.0.2"
63
+ "@willbooster/web-tree-sitter": "^13.0.0"
64
64
  },
65
65
  "peerDependenciesMeta": {
66
66
  "@willbooster/web-tree-sitter": {
Binary file
package/tree-sitter.json CHANGED
@@ -15,7 +15,7 @@
15
15
  }
16
16
  ],
17
17
  "metadata": {
18
- "version": "3.0.1",
18
+ "version": "4.0.0",
19
19
  "license": "MIT",
20
20
  "description": "Zig grammar for tree-sitter",
21
21
  "authors": [