@willbooster/tree-sitter-python 21.0.4 → 22.0.1

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-python/actions/workflows/test.yml/badge.svg)](https://github.com/WillBooster/tree-sitter-python/actions/workflows/test.yml)
6
6
  [![Test rust](https://github.com/WillBooster/tree-sitter-python/actions/workflows/test-rust.yml/badge.svg)](https://github.com/WillBooster/tree-sitter-python/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-21.15.0-1e90ff.svg)](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
8
+ [![wbfy](https://img.shields.io/badge/wbfy-22.1.1-1e90ff.svg)](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
9
9
  [![crates.io](https://img.shields.io/crates/v/willbooster-tree-sitter-python.svg)](https://crates.io/crates/willbooster-tree-sitter-python)
10
10
 
11
11
  Python grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter), forked from
@@ -14,9 +14,9 @@ to its authors and contributors. This is not an official release of that project
14
14
 
15
15
  This fork builds on upstream v0.25.0 with grammar and scanner fixes, including Python 3.15
16
16
  unpacking comprehensions. It ships a compact parser generated by the parser generator of
17
- [WillBooster/tree-sitter](https://github.com/WillBooster/tree-sitter). Its ABI (`0x5742000d`) rejects upstream
18
- Tree-sitter runtimes and WillBooster runtimes prior to 22.0.0. Use this parser with `willbooster-tree-sitter` or
19
- `@willbooster/web-tree-sitter` 23.0.0 or later within 23.x, the runtime line it is tested and fuzzed with.
17
+ [WillBooster/tree-sitter](https://github.com/WillBooster/tree-sitter). Its ABI (`0x5742000e`) rejects upstream
18
+ Tree-sitter runtimes and WillBooster runtimes prior to 23.1.0. Use this parser with `willbooster-tree-sitter` or
19
+ `@willbooster/web-tree-sitter` 23.1.0 or later within 23.x, the runtime line it is tested and fuzzed with.
20
20
 
21
21
  ## Support Scope
22
22
 
@@ -29,7 +29,7 @@ such changes are released as new major versions.
29
29
 
30
30
  The npm package ships `tree-sitter-python.wasm` for
31
31
  [@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter), which runs in Node.js, Bun,
32
- browsers, and Cloudflare Workers. Package peer dependencies require `@willbooster/web-tree-sitter` `^23.0.0`.
32
+ browsers, and Cloudflare Workers. Package peer dependencies require `@willbooster/web-tree-sitter` `^23.1.0`.
33
33
 
34
34
  In Node.js and Bun, load the grammar from its path:
35
35
 
@@ -74,10 +74,10 @@ The package also ships the node types in `src/node-types.json`.
74
74
  Qualified generic bases use `member_type` inside `generic_type`. Generic bases in annotations also recognize the contextual identifier spellings `match`, `print`, `exec` and `lazy`, while ordinary value subscripts retain their expression trees. Plain qualified generic arguments also expose `member_type` inside their `type` operand. Structured unpacked annotations and unpacked generic arguments use a `type` child inside `splat_type`. Expression-valued starred parameter annotations, such as `*args: *factory()`, keep a direct expression child instead. Ordinary value unpacks keep their expression tree.
75
75
 
76
76
  In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-python) and on
77
- [willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter) 23.0.0 or later within 23.x:
77
+ [willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter) 23.1.0 or later within 23.x:
78
78
 
79
79
  ```sh
80
- cargo add willbooster-tree-sitter@23.0.0 --rename tree-sitter
80
+ cargo add willbooster-tree-sitter@23.1.0 --rename tree-sitter
81
81
  cargo add willbooster-tree-sitter-python --rename tree-sitter-python
82
82
  ```
83
83
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-python",
3
- "version": "21.0.4",
3
+ "version": "22.0.1",
4
4
  "description": "Python grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "parsing",
@@ -43,24 +43,26 @@
43
43
  "verify-full": "bun wb verify --full"
44
44
  },
45
45
  "devDependencies": {
46
+ "@semantic-release/commit-analyzer": "13.0.1",
47
+ "@semantic-release/release-notes-generator": "14.1.1",
46
48
  "@tsconfig/bun": "1.0.12",
47
- "@types/bun": "1.4.4",
48
- "@vitest/browser-playwright": "5.1.0",
49
+ "@types/bun": "1.4.5",
50
+ "@vitest/browser-playwright": "5.1.1",
49
51
  "@willbooster/oxlint-config": "1.4.9",
50
- "@willbooster/wb": "23.6.1",
51
- "@willbooster/web-tree-sitter": "23.0.2",
52
+ "@willbooster/wb": "24.3.1",
53
+ "@willbooster/web-tree-sitter": "23.1.1",
52
54
  "conventional-changelog-conventionalcommits": "10.4.1",
53
55
  "lefthook": "2.2.2",
54
- "oxlint": "1.93.0",
55
- "oxlint-tsgolint": "7.0.2007",
56
+ "oxlint": "1.94.0",
57
+ "oxlint-tsgolint": "7.0.2008",
56
58
  "playwright": "1.65.1",
57
- "semantic-release": "25.0.9",
59
+ "semantic-release": "26.0.1",
58
60
  "vite": "8.3.8",
59
- "vitest": "5.1.0",
61
+ "vitest": "5.1.1",
60
62
  "wrangler": "4.156.0"
61
63
  },
62
64
  "peerDependencies": {
63
- "@willbooster/web-tree-sitter": "^23.0.0"
65
+ "@willbooster/web-tree-sitter": "^23.1.0"
64
66
  },
65
67
  "peerDependenciesMeta": {
66
68
  "@willbooster/web-tree-sitter": {
Binary file
package/tree-sitter.json CHANGED
@@ -13,7 +13,7 @@
13
13
  }
14
14
  ],
15
15
  "metadata": {
16
- "version": "21.0.4",
16
+ "version": "22.0.1",
17
17
  "license": "MIT",
18
18
  "description": "Python grammar for tree-sitter",
19
19
  "authors": [