@willbooster/tree-sitter-python 20.0.0 → 21.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
@@ -14,10 +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 (`0x5742000c`) rejects upstream
18
- Tree-sitter runtimes. Use this parser with `willbooster-tree-sitter` or `@willbooster/web-tree-sitter` 20.0.0 or later
19
- within 20.x, the runtime line it is tested and fuzzed with: pre-19.1.0 WillBooster runtimes share ABI `0x5742000c` and
20
- pass the ABI check, while dereferencing `TSLanguage` tables that this parser omits.
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.
21
20
 
22
21
  ## Support Scope
23
22
 
@@ -30,7 +29,7 @@ such changes are released as new major versions.
30
29
 
31
30
  The npm package ships `tree-sitter-python.wasm` for
32
31
  [@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter), which runs in Node.js, Bun,
33
- browsers, and Cloudflare Workers. Package peer dependencies require `@willbooster/web-tree-sitter` `^20.0.0`.
32
+ browsers, and Cloudflare Workers. Package peer dependencies require `@willbooster/web-tree-sitter` `^23.0.0`.
34
33
 
35
34
  In Node.js and Bun, load the grammar from its path:
36
35
 
@@ -75,10 +74,10 @@ The package also ships the node types in `src/node-types.json`.
75
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.
76
75
 
77
76
  In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-python) and on
78
- [willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter) 20.0.0 or later within 20.x:
77
+ [willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter) 23.0.0 or later within 23.x:
79
78
 
80
79
  ```sh
81
- cargo add willbooster-tree-sitter@20.0.0 --rename tree-sitter
80
+ cargo add willbooster-tree-sitter@23.0.0 --rename tree-sitter
82
81
  cargo add willbooster-tree-sitter-python --rename tree-sitter-python
83
82
  ```
84
83
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-python",
3
- "version": "20.0.0",
3
+ "version": "21.0.1",
4
4
  "description": "Python grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "parsing",
@@ -45,22 +45,22 @@
45
45
  "devDependencies": {
46
46
  "@tsconfig/bun": "1.0.11",
47
47
  "@types/bun": "1.4.4",
48
- "@vitest/browser-playwright": "5.0.5",
48
+ "@vitest/browser-playwright": "5.1.0",
49
49
  "@willbooster/oxlint-config": "1.4.9",
50
- "@willbooster/wb": "23.3.0",
51
- "@willbooster/web-tree-sitter": "20.0.0",
50
+ "@willbooster/wb": "23.3.4",
51
+ "@willbooster/web-tree-sitter": "23.0.0",
52
52
  "conventional-changelog-conventionalcommits": "10.4.1",
53
53
  "lefthook": "2.2.2",
54
- "oxlint": "1.90.0",
55
- "oxlint-tsgolint": "7.0.2005",
56
- "playwright": "1.64.1",
54
+ "oxlint": "1.92.0",
55
+ "oxlint-tsgolint": "7.0.2006",
56
+ "playwright": "1.65.0",
57
57
  "semantic-release": "25.0.9",
58
- "vite": "8.3.5",
59
- "vitest": "5.0.5",
58
+ "vite": "8.3.7",
59
+ "vitest": "5.1.0",
60
60
  "wrangler": "4.156.0"
61
61
  },
62
62
  "peerDependencies": {
63
- "@willbooster/web-tree-sitter": "^20.0.0"
63
+ "@willbooster/web-tree-sitter": "^23.0.0"
64
64
  },
65
65
  "peerDependenciesMeta": {
66
66
  "@willbooster/web-tree-sitter": {
Binary file
package/tree-sitter.json CHANGED
@@ -13,7 +13,7 @@
13
13
  }
14
14
  ],
15
15
  "metadata": {
16
- "version": "20.0.0",
16
+ "version": "21.0.1",
17
17
  "license": "MIT",
18
18
  "description": "Python grammar for tree-sitter",
19
19
  "authors": [