@plurnk/plurnk-mimetypes-grammar-python 0.1.1 → 0.1.3
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 +1 -7
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -8,8 +8,6 @@ Pre-built `tree-sitter-python` WASM grammar for the [@plurnk/plurnk-mimetypes](h
|
|
|
8
8
|
npm i @plurnk/plurnk-mimetypes-grammar-python
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
That's it — the framework automatically picks up the bundled WASM and enables Python (`text/x-python`) support.
|
|
12
|
-
|
|
13
11
|
## what's in here
|
|
14
12
|
|
|
15
13
|
- **`python.wasm`** — pre-built from the pinned upstream [tree-sitter-python](https://github.com/tree-sitter/tree-sitter-python) commit (recorded in `.grammar-pin`)
|
|
@@ -18,11 +16,7 @@ That's it — the framework automatically picks up the bundled WASM and enables
|
|
|
18
16
|
|
|
19
17
|
There is no runtime code here. The framework's `TreeSitterLanguageHandler` resolves the WASM via `import.meta.resolve("@plurnk/plurnk-mimetypes-grammar-python/python.wasm")` and loads it through `web-tree-sitter`.
|
|
20
18
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
Plurnk's "support every grammar" promise is paid for by per-grammar packages. The framework alone is small; you install only the grammars you actually use. Want Python? Install this. Want everything? `npm i @plurnk/plurnk-mimetypes-grammars-all`.
|
|
24
|
-
|
|
25
|
-
This model also kills the long-standing peer-dependency conflict between upstream `tree-sitter-{lang}` packages (which all declare different peer ranges of the native `tree-sitter` binding, which we don't need). Our grammar packages declare only `web-tree-sitter` as a peer — no node-gyp, no conflicts, ever.
|
|
19
|
+
Declares only `web-tree-sitter` as a peer — no native `tree-sitter`, no node-gyp.
|
|
26
20
|
|
|
27
21
|
## license
|
|
28
22
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plurnk/plurnk-mimetypes-grammar-python",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Pre-built tree-sitter-python WASM grammar for @plurnk/plurnk-mimetypes. Install this package to enable Python (text/x-python) support in plurnk-service.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"engines": {
|
|
11
|
-
"node": ">=
|
|
11
|
+
"node": ">=26"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"update": "npm run update:pin && npm run build:wasm && npm run verify:wasm"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@plurnk/plurnk-mimetypes": "
|
|
34
|
-
"web-tree-sitter": "^0.25.0"
|
|
33
|
+
"@plurnk/plurnk-mimetypes": "^0.16.0",
|
|
34
|
+
"web-tree-sitter": "^0.25.0 || ^0.26.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"@plurnk/plurnk-mimetypes": {
|