@willbooster/tree-sitter-python 16.0.1 → 18.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
@@ -14,9 +14,10 @@ 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). The parser carries that fork's own ABI number, so
18
- it loads only with the WillBooster runtime (`willbooster-tree-sitter` or `@willbooster/web-tree-sitter`) 17.0.1 or later within 17.x,
19
- not with upstream's tree-sitter.
17
+ [WillBooster/tree-sitter](https://github.com/WillBooster/tree-sitter). Its ABI (`0x5742000c`) rejects upstream
18
+ Tree-sitter runtimes. The parser requires `willbooster-tree-sitter` or `@willbooster/web-tree-sitter` 19.1.1 or later
19
+ within 19.x: 17.x and 18.x WillBooster runtimes share ABI `0x5742000c` and pass the ABI check, whereas 19.1.0+ omits
20
+ unused `TSLanguage` tables that pre-19.1.0 runtimes dereference.
20
21
 
21
22
  ## Support Scope
22
23
 
@@ -29,7 +30,7 @@ the trees that error recovery produces may change; such changes are released as
29
30
 
30
31
  The npm package ships `tree-sitter-python.wasm` for
31
32
  [@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter), which runs in Node.js, Bun,
32
- browsers, and Cloudflare Workers. The parser requires runtime 17.0.1 or later within 17.x.
33
+ browsers, and Cloudflare Workers. The parser requires `@willbooster/web-tree-sitter` 19.1.1 or later within 19.x.
33
34
 
34
35
  In Node.js and Bun, load the grammar from its path:
35
36
 
@@ -75,10 +76,10 @@ Qualified generic bases use `member_type` inside `generic_type`. Generic bases i
75
76
 
76
77
  In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-python) and on
77
78
  [willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter), the runtime this package is tested and
78
- fuzzed with. The parser requires runtime 17.0.1 or later within 17.x:
79
+ fuzzed with. The parser requires `willbooster-tree-sitter` 19.1.1 or later within 19.x:
79
80
 
80
81
  ```sh
81
- cargo add willbooster-tree-sitter@17.0.1 --rename tree-sitter
82
+ cargo add willbooster-tree-sitter@19.1.1 --rename tree-sitter
82
83
  cargo add willbooster-tree-sitter-python --rename tree-sitter-python
83
84
  ```
84
85
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-python",
3
- "version": "16.0.1",
3
+ "version": "18.0.0",
4
4
  "description": "Python grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -49,7 +49,7 @@
49
49
  "@vitest/browser-playwright": "5.0.5",
50
50
  "@willbooster/oxlint-config": "1.4.9",
51
51
  "@willbooster/wb": "23.3.0",
52
- "@willbooster/web-tree-sitter": "17.0.1",
52
+ "@willbooster/web-tree-sitter": "19.1.1",
53
53
  "conventional-changelog-conventionalcommits": "10.4.1",
54
54
  "lefthook": "2.2.2",
55
55
  "oxlint": "1.90.0",
@@ -61,7 +61,7 @@
61
61
  "wrangler": "4.156.0"
62
62
  },
63
63
  "peerDependencies": {
64
- "@willbooster/web-tree-sitter": "^17.0.1"
64
+ "@willbooster/web-tree-sitter": "^19.1.1"
65
65
  },
66
66
  "peerDependenciesMeta": {
67
67
  "@willbooster/web-tree-sitter": {
Binary file
package/tree-sitter.json CHANGED
@@ -13,7 +13,7 @@
13
13
  }
14
14
  ],
15
15
  "metadata": {
16
- "version": "16.0.1",
16
+ "version": "18.0.0",
17
17
  "license": "MIT",
18
18
  "description": "Python grammar for tree-sitter",
19
19
  "authors": [