@willbooster/tree-sitter-ruby 16.0.0 → 17.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,9 +14,8 @@ to its authors and contributors. This is not an official release of that project
14
14
 
15
15
  This fork extends the upstream grammar to parse anonymous block forwarding, spaced block arguments, and command calls in endless methods, with a parser generated by
16
16
  [WillBooster/tree-sitter](https://github.com/WillBooster/tree-sitter), whose compact parse tables make the
17
- parser smaller. The parser carries that fork's own ABI number (`0x5742000c`) and omits tables dropped in runtime 19, so it
18
- requires the WillBooster runtime 19.x; upstream's tree-sitter runtime and incompatible ABI versions of the fork's runtime
19
- reject it.
17
+ parser smaller. The parser carries that fork's own ABI number (`0x5742000c`); upstream's tree-sitter runtime and
18
+ incompatible ABI versions of the fork's runtime reject it.
20
19
  The scanner preserves long heredoc identifiers
21
20
  when their state fits the runtime's serialization buffer. If the open heredocs cannot fit, their bodies are parsed as
22
21
  code instead of aborting the process.
@@ -24,15 +23,15 @@ code instead of aborting the process.
24
23
  ## Support Scope
25
24
 
26
25
  This fork maintains only full parsing: valid input yields a correct tree, and invalid input yields `ERROR` or `MISSING`
27
- nodes without crashing, hanging, or taking more than linear time. Parse each input without a previous tree; reusing
28
- an old tree is unsupported. No queries (highlights, locals, injections, tags) are shipped. Node types, field names, and
29
- the trees that error recovery produces may change; such changes are released as new major versions.
26
+ nodes without crashing, hanging, or taking more than linear time. Incremental parsing and queries (highlights, locals,
27
+ injections, tags) are not supported. Node types, field names, and the trees that error recovery produces may change;
28
+ such changes are released as new major versions.
30
29
 
31
30
  ## Usage
32
31
 
33
32
  The npm package ships `tree-sitter-ruby.wasm` for
34
- [@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter), which runs in Node.js, Bun,
35
- browsers, and Cloudflare Workers. The parser requires runtime 19.x.
33
+ [@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) 20.x, which runs in Node.js,
34
+ Bun, browsers, and Cloudflare Workers.
36
35
 
37
36
  In Node.js and Bun, load the grammar from its path:
38
37
 
@@ -75,11 +74,11 @@ parser.setLanguage(await Language.load(ruby));
75
74
  The package also ships the node types in `src/node-types.json`.
76
75
 
77
76
  In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-ruby) and on
78
- [willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter), the runtime this package is tested and
79
- fuzzed with. The parser requires runtime 19.x:
77
+ [willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter) 20.x, the runtime this package is tested and
78
+ fuzzed with:
80
79
 
81
80
  ```sh
82
- cargo add willbooster-tree-sitter@19.1.1 --rename tree-sitter
81
+ cargo add willbooster-tree-sitter@20.0.0 --rename tree-sitter
83
82
  cargo add willbooster-tree-sitter-ruby --rename tree-sitter-ruby
84
83
  ```
85
84
 
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-ruby",
3
- "version": "16.0.0",
3
+ "version": "17.0.1",
4
4
  "description": "Ruby grammar for tree-sitter",
5
5
  "keywords": [
6
- "incremental",
7
6
  "parsing",
8
7
  "ruby",
9
8
  "tree-sitter"
@@ -49,7 +48,7 @@
49
48
  "@vitest/browser-playwright": "5.0.5",
50
49
  "@willbooster/oxlint-config": "1.4.9",
51
50
  "@willbooster/wb": "23.3.0",
52
- "@willbooster/web-tree-sitter": "19.1.1",
51
+ "@willbooster/web-tree-sitter": "20.0.0",
53
52
  "conventional-changelog-conventionalcommits": "10.4.1",
54
53
  "lefthook": "2.2.2",
55
54
  "oxlint": "1.90.0",
@@ -61,7 +60,7 @@
61
60
  "wrangler": "4.156.0"
62
61
  },
63
62
  "peerDependencies": {
64
- "@willbooster/web-tree-sitter": "^19.1.1"
63
+ "@willbooster/web-tree-sitter": "^20.0.0"
65
64
  },
66
65
  "peerDependenciesMeta": {
67
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": "16.0.0",
16
+ "version": "17.0.1",
17
17
  "license": "MIT",
18
18
  "description": "Ruby grammar for tree-sitter",
19
19
  "authors": [