@willbooster/tree-sitter-ruby 5.0.0 → 5.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
@@ -5,7 +5,7 @@
5
5
  [![Test](https://github.com/WillBooster/tree-sitter-ruby/actions/workflows/test.yml/badge.svg)](https://github.com/WillBooster/tree-sitter-ruby/actions/workflows/test.yml)
6
6
  [![Test rust](https://github.com/WillBooster/tree-sitter-ruby/actions/workflows/test-rust.yml/badge.svg)](https://github.com/WillBooster/tree-sitter-ruby/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.43.2-1e90ff.svg)](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
8
+ [![wbfy](https://img.shields.io/badge/wbfy-20.48.9-1e90ff.svg)](https://github.com/WillBooster/shared/tree/main/packages/wbfy)
9
9
  [![crates.io](https://img.shields.io/crates/v/willbooster-tree-sitter-ruby.svg)](https://crates.io/crates/willbooster-tree-sitter-ruby)
10
10
 
11
11
  Ruby grammar for [tree-sitter](https://github.com/tree-sitter/tree-sitter), forked from
@@ -30,6 +30,7 @@ In Node.js and Bun, load the grammar from its path:
30
30
 
31
31
  ```js
32
32
  import { fileURLToPath } from 'node:url';
33
+
33
34
  import { Language, Parser } from '@willbooster/web-tree-sitter';
34
35
 
35
36
  await Parser.init();
@@ -42,9 +43,9 @@ const tree = parser.parse('puts "Hello"\n');
42
43
  In browsers, load the grammar from its URL. With Vite:
43
44
 
44
45
  ```js
46
+ import rubyUrl from '@willbooster/tree-sitter-ruby/tree-sitter-ruby.wasm?url';
45
47
  import { Language, Parser } from '@willbooster/web-tree-sitter';
46
48
  import runtimeUrl from '@willbooster/web-tree-sitter/web-tree-sitter.wasm?url';
47
- import rubyUrl from '@willbooster/tree-sitter-ruby/tree-sitter-ruby.wasm?url';
48
49
 
49
50
  await Parser.init({ locateFile: () => runtimeUrl });
50
51
  const parser = new Parser();
@@ -54,9 +55,9 @@ parser.setLanguage(await Language.load(rubyUrl));
54
55
  In Cloudflare Workers, which do not allow compiling Wasm at run time, import both `.wasm` files as modules:
55
56
 
56
57
  ```js
58
+ import ruby from '@willbooster/tree-sitter-ruby/tree-sitter-ruby.wasm';
57
59
  import { Language, Parser } from '@willbooster/web-tree-sitter';
58
60
  import runtime from '@willbooster/web-tree-sitter/web-tree-sitter.wasm';
59
- import ruby from '@willbooster/tree-sitter-ruby/tree-sitter-ruby.wasm';
60
61
 
61
62
  await Parser.init({ wasmModule: runtime });
62
63
  const parser = new Parser();
package/package.json CHANGED
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-ruby",
3
- "version": "5.0.0",
3
+ "version": "5.0.1",
4
4
  "description": "Ruby grammar for tree-sitter",
5
5
  "keywords": [
6
6
  "incremental",
7
7
  "parsing",
8
- "tree-sitter",
9
- "ruby"
8
+ "ruby",
9
+ "tree-sitter"
10
10
  ],
11
+ "license": "MIT",
12
+ "author": "WillBooster Inc.",
11
13
  "repository": {
12
14
  "type": "git",
13
15
  "url": "git+https://github.com/WillBooster/tree-sitter-ruby.git"
14
16
  },
15
- "license": "MIT",
16
- "author": "WillBooster Inc.",
17
17
  "files": [
18
18
  "grammar.js",
19
19
  "queries/*.scm",
@@ -21,6 +21,10 @@
21
21
  "src/node-types.json",
22
22
  "*.wasm"
23
23
  ],
24
+ "publishConfig": {
25
+ "access": "public",
26
+ "registry": "https://registry.npmjs.org/"
27
+ },
24
28
  "scripts": {
25
29
  "build-wasm": "script/generate --build-wasm",
26
30
  "build/ci": "bun run build-wasm",
@@ -43,22 +47,19 @@
43
47
  "devDependencies": {
44
48
  "@tsconfig/bun": "1.0.11",
45
49
  "@types/bun": "1.4.3",
46
- "@vitest/browser-playwright": "5.0.3",
47
- "@willbooster/oxfmt-config": "1.2.2",
48
- "@willbooster/oxlint-config": "1.4.8",
49
- "@willbooster/wb": "22.26.2",
50
+ "@vitest/browser-playwright": "5.0.5",
51
+ "@willbooster/oxlint-config": "1.4.9",
52
+ "@willbooster/wb": "22.29.3",
50
53
  "@willbooster/web-tree-sitter": "13.0.0",
51
54
  "conventional-changelog-conventionalcommits": "10.4.1",
52
55
  "lefthook": "2.2.2",
53
- "oxfmt": "0.73.0",
54
56
  "oxlint": "1.88.0",
55
57
  "oxlint-tsgolint": "7.0.2004",
56
- "playwright": "1.64.0",
58
+ "playwright": "1.64.1",
57
59
  "semantic-release": "25.0.9",
58
- "sort-package-json": "4.0.0",
59
60
  "vite": "8.3.4",
60
- "vitest": "5.0.3",
61
- "wrangler": "4.149.0"
61
+ "vitest": "5.0.5",
62
+ "wrangler": "4.151.1"
62
63
  },
63
64
  "peerDependencies": {
64
65
  "@willbooster/web-tree-sitter": "^13.0.0"
@@ -67,9 +68,5 @@
67
68
  "@willbooster/web-tree-sitter": {
68
69
  "optional": true
69
70
  }
70
- },
71
- "publishConfig": {
72
- "access": "public",
73
- "registry": "https://registry.npmjs.org/"
74
71
  }
75
72
  }
Binary file
package/tree-sitter.json CHANGED
@@ -19,7 +19,7 @@
19
19
  }
20
20
  ],
21
21
  "metadata": {
22
- "version": "5.0.0",
22
+ "version": "5.0.1",
23
23
  "license": "MIT",
24
24
  "description": "Ruby grammar for tree-sitter",
25
25
  "authors": [