sqlparser-rs 0.60.3-rc3 → 0.60.3-rc4
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 -1
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +15 -14
- package/wasm/README.md +1 -1
- package/wasm/package.json +1 -1
- package/wasm/sqlparser_rs_wasm_bg.wasm +0 -0
- package/wasm/sqlparser_rs_wasm_web_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -249,7 +249,7 @@ npm test
|
|
|
249
249
|
This package follows the upstream [sqlparser-rs](https://github.com/apache/datafusion-sqlparser-rs) version:
|
|
250
250
|
|
|
251
251
|
- **Major.Minor** matches the upstream Rust crate version
|
|
252
|
-
- **Patch** is for TypeScript binding fixes (e.g., `0.60.3-
|
|
252
|
+
- **Patch** is for TypeScript binding fixes (e.g., `0.60.3-rc4` = upstream `0.60.0` + binding fix)
|
|
253
253
|
|
|
254
254
|
| This package | sqlparser-rs |
|
|
255
255
|
|--------------|--------------|
|
package/dist/index.cjs
CHANGED
|
@@ -270,7 +270,7 @@ async function initWasm() {
|
|
|
270
270
|
/* @vite-ignore */
|
|
271
271
|
wasmJsUrl.href
|
|
272
272
|
);
|
|
273
|
-
if (typeof wasm.default === "function") await wasm.default(wasmBinaryUrl);
|
|
273
|
+
if (typeof wasm.default === "function") await wasm.default({ module_or_path: wasmBinaryUrl });
|
|
274
274
|
wasmModule = wasm;
|
|
275
275
|
} catch (error) {
|
|
276
276
|
throw new WasmInitError(`Failed to load WASM module in browser: ${error instanceof Error ? error.message : String(error)}`);
|
package/dist/index.mjs
CHANGED
|
@@ -269,7 +269,7 @@ async function initWasm() {
|
|
|
269
269
|
/* @vite-ignore */
|
|
270
270
|
wasmJsUrl.href
|
|
271
271
|
);
|
|
272
|
-
if (typeof wasm.default === "function") await wasm.default(wasmBinaryUrl);
|
|
272
|
+
if (typeof wasm.default === "function") await wasm.default({ module_or_path: wasmBinaryUrl });
|
|
273
273
|
wasmModule = wasm;
|
|
274
274
|
} catch (error) {
|
|
275
275
|
throw new WasmInitError(`Failed to load WASM module in browser: ${error instanceof Error ? error.message : String(error)}`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sqlparser-rs",
|
|
3
|
-
"version": "0.60.3-
|
|
3
|
+
"version": "0.60.3-rc4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A SQL parser for JavaScript and TypeScript, powered by datafusion-sqlparser-rs via WASM",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -18,6 +18,19 @@
|
|
|
18
18
|
"wasm",
|
|
19
19
|
"README.md"
|
|
20
20
|
],
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "npm run build:wasm && npm run build:ts",
|
|
23
|
+
"build:wasm": "cd .. && wasm-pack build --target nodejs --out-dir ts/wasm && rm -f ts/wasm/.gitignore",
|
|
24
|
+
"build:wasm:web": "cd .. && wasm-pack build --target web --out-dir ts/wasm-web",
|
|
25
|
+
"build:ts": "tsdown",
|
|
26
|
+
"test": "vitest run",
|
|
27
|
+
"test:watch": "vitest",
|
|
28
|
+
"lint": "eslint src tests",
|
|
29
|
+
"lint:fix": "eslint src tests --fix",
|
|
30
|
+
"prepublishOnly": "npm run build",
|
|
31
|
+
"local:pack": "npm run build:ts && npm pack",
|
|
32
|
+
"local:link": "npm run build:ts && npm link"
|
|
33
|
+
},
|
|
21
34
|
"keywords": [
|
|
22
35
|
"sql",
|
|
23
36
|
"parser",
|
|
@@ -45,17 +58,5 @@
|
|
|
45
58
|
},
|
|
46
59
|
"engines": {
|
|
47
60
|
"node": ">=16.0.0"
|
|
48
|
-
},
|
|
49
|
-
"scripts": {
|
|
50
|
-
"build": "npm run build:wasm && npm run build:ts",
|
|
51
|
-
"build:wasm": "cd .. && wasm-pack build --target nodejs --out-dir ts/wasm && rm -f ts/wasm/.gitignore",
|
|
52
|
-
"build:wasm:web": "cd .. && wasm-pack build --target web --out-dir ts/wasm-web",
|
|
53
|
-
"build:ts": "tsdown",
|
|
54
|
-
"test": "vitest run",
|
|
55
|
-
"test:watch": "vitest",
|
|
56
|
-
"lint": "eslint src tests",
|
|
57
|
-
"lint:fix": "eslint src tests --fix",
|
|
58
|
-
"local:pack": "npm run build:ts && npm pack",
|
|
59
|
-
"local:link": "npm run build:ts && npm link"
|
|
60
61
|
}
|
|
61
|
-
}
|
|
62
|
+
}
|
package/wasm/README.md
CHANGED
|
@@ -249,7 +249,7 @@ npm test
|
|
|
249
249
|
This package follows the upstream [sqlparser-rs](https://github.com/apache/datafusion-sqlparser-rs) version:
|
|
250
250
|
|
|
251
251
|
- **Major.Minor** matches the upstream Rust crate version
|
|
252
|
-
- **Patch** is for TypeScript binding fixes (e.g., `0.60.3-
|
|
252
|
+
- **Patch** is for TypeScript binding fixes (e.g., `0.60.3-rc4` = upstream `0.60.0` + binding fix)
|
|
253
253
|
|
|
254
254
|
| This package | sqlparser-rs |
|
|
255
255
|
|--------------|--------------|
|
package/wasm/package.json
CHANGED
|
Binary file
|
|
Binary file
|