@willbooster/tree-sitter-sql 1.0.0 → 2.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
@@ -8,8 +8,11 @@
8
8
  [![crates.io](https://img.shields.io/crates/v/willbooster-tree-sitter-sql.svg)](https://crates.io/crates/willbooster-tree-sitter-sql)
9
9
 
10
10
  SQL grammars for [tree-sitter](https://github.com/tree-sitter/tree-sitter), generated with the
11
- [WillBooster/tree-sitter](https://github.com/WillBooster/tree-sitter) generator. The parsers carry that fork's own ABI
12
- number and load with that fork's runtime, version 17.0.1 or later in the 17.x series.
11
+ [WillBooster/tree-sitter](https://github.com/WillBooster/tree-sitter) generator. Each generated `TSLanguage` carries
12
+ the WillBooster ABI (`0x5742000c`), which upstream `tree-sitter` runtimes reject. It also omits the `alias_map` and
13
+ `primary_state_bitmap` tables, which WillBooster runtimes before 19.0.0 dereference and Wasmtime-based Wasm loaders
14
+ before 19.1.0 read despite sharing ABI `0x5742000c`. The supported WillBooster runtime is version 20.0.0 or later in the
15
+ 20.x series.
13
16
 
14
17
  The `sqlite` grammar parses the SQL dialect of [SQLite](https://sqlite.org/lang.html) 3.54 in its default build. Its
15
18
  rules follow SQLite's own grammar (`src/parse.y`) and tokenizer (`src/tokenize.c`), which are in the public domain:
@@ -32,15 +35,15 @@ in a trigger outside the temp schema, but it accepts the others.
32
35
  ## Support Scope
33
36
 
34
37
  This repository maintains only full parsing: valid input yields a correct tree, and invalid input yields `ERROR` or
35
- `MISSING` nodes without crashing, hanging, or taking more than linear time. No queries (highlights, locals, injections,
36
- tags) are shipped. Node types, field names, and the trees that error recovery produces may change; such changes are
37
- released as new major versions.
38
+ `MISSING` nodes without crashing, hanging, or taking more than linear time. Incremental parsing is not supported, and no
39
+ queries (highlights, locals, injections, tags) are shipped. Node types, field names, and the trees that error recovery
40
+ produces may change; such changes are released as new major versions.
38
41
 
39
42
  ## Usage
40
43
 
41
44
  The npm package ships `tree-sitter-sqlite.wasm` for
42
- [@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 17.0.1 or later in
43
- the 17.x series, which runs in Node.js, Bun, browsers, and Cloudflare Workers. In Node.js and Bun, load the grammar from
45
+ [@willbooster/web-tree-sitter](https://www.npmjs.com/package/@willbooster/web-tree-sitter) version 20.0.0 or later in
46
+ the 20.x series, which runs in Node.js, Bun, browsers, and Cloudflare Workers. In Node.js and Bun, load the grammar from
44
47
  its path:
45
48
 
46
49
  ```js
@@ -84,11 +87,11 @@ The package also ships the grammar definitions (`common/common.mjs` and `sqlite/
84
87
  file that marks the latter as an ES module) and the node types in `sqlite/src/node-types.json`.
85
88
 
86
89
  In Rust, depend on the [crate](https://crates.io/crates/willbooster-tree-sitter-sql) and on
87
- [willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter), the runtime this package is tested and
88
- fuzzed with:
90
+ [willbooster-tree-sitter](https://crates.io/crates/willbooster-tree-sitter) version 20.0.0 or later in the 20.x series,
91
+ the runtime this package is tested and fuzzed with:
89
92
 
90
93
  ```sh
91
- cargo add willbooster-tree-sitter@17.0.1 --rename tree-sitter
94
+ cargo add willbooster-tree-sitter@20.0.0 --rename tree-sitter
92
95
  cargo add willbooster-tree-sitter-sql --rename tree-sitter-sql
93
96
  ```
94
97
 
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "@willbooster/tree-sitter-sql",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "description": "SQL grammars (SQLite) for tree-sitter",
5
5
  "keywords": [
6
- "incremental",
7
6
  "parsing",
8
7
  "sql",
9
8
  "sqlite",
@@ -52,7 +51,7 @@
52
51
  "@vitest/browser-playwright": "5.0.5",
53
52
  "@willbooster/oxlint-config": "1.4.9",
54
53
  "@willbooster/wb": "23.3.0",
55
- "@willbooster/web-tree-sitter": "17.0.1",
54
+ "@willbooster/web-tree-sitter": "20.0.0",
56
55
  "conventional-changelog-conventionalcommits": "10.4.1",
57
56
  "lefthook": "2.2.2",
58
57
  "oxlint": "1.90.0",
@@ -63,7 +62,7 @@
63
62
  "wrangler": "4.156.0"
64
63
  },
65
64
  "peerDependencies": {
66
- "@willbooster/web-tree-sitter": "^17.0.1"
65
+ "@willbooster/web-tree-sitter": "^20.0.0"
67
66
  },
68
67
  "peerDependenciesMeta": {
69
68
  "@willbooster/web-tree-sitter": {
Binary file
package/tree-sitter.json CHANGED
@@ -13,7 +13,7 @@
13
13
  }
14
14
  ],
15
15
  "metadata": {
16
- "version": "1.0.0",
16
+ "version": "2.0.0",
17
17
  "license": "MIT",
18
18
  "description": "SQL grammars (SQLite) for tree-sitter",
19
19
  "authors": [