@willbooster/tree-sitter-python 8.0.0 → 9.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-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-20.41.8-1e90ff.svg)](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
8
+ [![wbfy](https://img.shields.io/badge/wbfy-20.43.2-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
@@ -15,14 +15,14 @@ to its authors and contributors. This is not an official release of that project
15
15
  This fork builds on upstream v0.25.0 with grammar, scanner, and highlighting fixes, including Python 3.15
16
16
  unpacking comprehensions. It ships a compact parser generated by the parser generator of
17
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`) 7.x,
18
+ it loads only with the WillBooster runtime (`willbooster-tree-sitter` or `@willbooster/web-tree-sitter`) 10.0.2 or later within 10.x,
19
19
  not with upstream's tree-sitter.
20
20
 
21
21
  ## Usage
22
22
 
23
23
  The npm package ships `tree-sitter-python.wasm` for
24
24
  [@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter), which runs in Node.js, Bun,
25
- browsers, and Cloudflare Workers. The parser requires runtime 7.x.
25
+ browsers, and Cloudflare Workers. The parser requires runtime 10.0.2 or later within 10.x.
26
26
 
27
27
  In Node.js and Bun, load the grammar from its path:
28
28
 
@@ -67,12 +67,12 @@ Qualified generic bases use `member_type` inside `generic_type`. Generic bases i
67
67
 
68
68
  In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-python) and on
69
69
  [willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter), the runtime this package is tested and
70
- fuzzed with. The parser requires runtime 7.x:
70
+ fuzzed with. The parser requires runtime 10.0.2 or later within 10.x:
71
71
 
72
72
  ```toml
73
73
  [dependencies]
74
- tree-sitter = { package = "willbooster-tree-sitter", version = "7" }
75
- tree-sitter-python = { package = "willbooster-tree-sitter-python", version = "6" }
74
+ tree-sitter = { package = "willbooster-tree-sitter", version = "10.0.2" }
75
+ tree-sitter-python = { package = "willbooster-tree-sitter-python", version = "9" }
76
76
  ```
77
77
 
78
78
  ```rust
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-python",
3
- "version": "8.0.0",
3
+ "version": "9.0.0",
4
4
  "description": "Python grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
@@ -42,16 +42,16 @@
42
42
  },
43
43
  "devDependencies": {
44
44
  "@tsconfig/bun": "1.0.11",
45
- "@types/bun": "1.4.2",
45
+ "@types/bun": "1.4.3",
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.1",
50
- "@willbooster/web-tree-sitter": "7.0.5",
49
+ "@willbooster/wb": "22.26.2",
50
+ "@willbooster/web-tree-sitter": "10.0.2",
51
51
  "conventional-changelog-conventionalcommits": "10.4.1",
52
- "lefthook": "2.2.1",
53
- "oxfmt": "0.72.0",
54
- "oxlint": "1.87.0",
52
+ "lefthook": "2.2.2",
53
+ "oxfmt": "0.73.0",
54
+ "oxlint": "1.88.0",
55
55
  "oxlint-tsgolint": "7.0.2004",
56
56
  "playwright": "1.64.0",
57
57
  "semantic-release": "25.0.9",
@@ -61,7 +61,7 @@
61
61
  "wrangler": "4.149.0"
62
62
  },
63
63
  "peerDependencies": {
64
- "@willbooster/web-tree-sitter": "^7.0.5"
64
+ "@willbooster/web-tree-sitter": "^10.0.2"
65
65
  },
66
66
  "peerDependenciesMeta": {
67
67
  "@willbooster/web-tree-sitter": {
Binary file
package/tree-sitter.json CHANGED
@@ -19,7 +19,7 @@
19
19
  }
20
20
  ],
21
21
  "metadata": {
22
- "version": "8.0.0",
22
+ "version": "9.0.0",
23
23
  "license": "MIT",
24
24
  "description": "Python grammar for tree-sitter",
25
25
  "authors": [