@polyglot-sql/sdk 0.4.1 → 0.4.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 +82 -8
- package/dist/cdn/polyglot.esm.js +1541 -1542
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +29 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +1 -2
- package/dist/index.node.js +5501 -0
- package/dist/manual.d.ts +15 -0
- package/dist/manual.js +5682 -0
- package/dist/{polyglot_sql_wasm_bg.wasm → polyglot_sql.wasm} +0 -0
- package/dist/polyglot_sql.wasm.d.ts +2 -0
- package/package.json +25 -4
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polyglot-sql/sdk",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "SQL dialect translator powered by WebAssembly",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -15,8 +15,23 @@
|
|
|
15
15
|
"require": "./dist/index.d.cts"
|
|
16
16
|
},
|
|
17
17
|
"browser": "./dist/index.js",
|
|
18
|
+
"node": {
|
|
19
|
+
"import": "./dist/index.node.js",
|
|
20
|
+
"require": "./dist/index.cjs"
|
|
21
|
+
},
|
|
18
22
|
"import": "./dist/index.js",
|
|
19
|
-
"require": "./dist/index.cjs"
|
|
23
|
+
"require": "./dist/index.cjs",
|
|
24
|
+
"default": "./dist/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./manual": {
|
|
27
|
+
"types": "./dist/manual.d.ts",
|
|
28
|
+
"browser": "./dist/manual.js",
|
|
29
|
+
"import": "./dist/manual.js",
|
|
30
|
+
"default": "./dist/manual.js"
|
|
31
|
+
},
|
|
32
|
+
"./polyglot_sql.wasm": {
|
|
33
|
+
"types": "./dist/polyglot_sql.wasm.d.ts",
|
|
34
|
+
"default": "./dist/polyglot_sql.wasm"
|
|
20
35
|
},
|
|
21
36
|
"./cdn": {
|
|
22
37
|
"types": "./dist/index.d.ts",
|
|
@@ -57,6 +72,7 @@
|
|
|
57
72
|
"@biomejs/biome": "^2.3.14",
|
|
58
73
|
"@types/node": "^25.0.9",
|
|
59
74
|
"@vitest/coverage-v8": "^4.0.18",
|
|
75
|
+
"esbuild": "^0.27.3",
|
|
60
76
|
"typescript": "^5.7.0",
|
|
61
77
|
"vite": "7.3.1",
|
|
62
78
|
"vite-plugin-dts": "^4.5.0",
|
|
@@ -65,15 +81,20 @@
|
|
|
65
81
|
},
|
|
66
82
|
"scripts": {
|
|
67
83
|
"build:bindings": "cd ../.. && make generate-bindings",
|
|
68
|
-
"build:wasm": "cd ../../crates/polyglot-sql-wasm && wasm-pack build --target bundler --release --out-dir ../../packages/sdk/wasm",
|
|
84
|
+
"build:wasm:bundler": "cd ../../crates/polyglot-sql-wasm && wasm-pack build --target bundler --release --out-dir ../../packages/sdk/wasm",
|
|
85
|
+
"build:wasm:web": "cd ../../crates/polyglot-sql-wasm && wasm-pack build --target web --release --no-opt --out-dir ../../packages/sdk/wasm-web && cp ../../packages/sdk/wasm/polyglot_sql_wasm_bg.wasm ../../packages/sdk/wasm-web/polyglot_sql_wasm_bg.wasm",
|
|
86
|
+
"build:wasm": "pnpm run build:wasm:bundler && pnpm run build:wasm:web",
|
|
69
87
|
"build:esm": "vite build",
|
|
88
|
+
"build:node": "vite build --config vite.config.node.ts",
|
|
70
89
|
"build:cjs": "vite build --config vite.config.cjs.ts && cp dist/index.d.ts dist/index.d.cts",
|
|
90
|
+
"build:manual": "vite build --config vite.config.manual.ts",
|
|
71
91
|
"build:umd": "vite build --config vite.config.umd.ts",
|
|
72
92
|
"build:dialect": "vite build --config vite.config.dialect.ts",
|
|
73
93
|
"build:dialects": "for d in postgresql mysql bigquery snowflake duckdb tsql clickhouse; do POLYGLOT_DIALECT=$d pnpm run build:dialect; done",
|
|
74
|
-
"build": "pnpm run build:esm && pnpm run build:cjs && pnpm run build:umd",
|
|
94
|
+
"build": "pnpm run build:esm && pnpm run build:node && pnpm run build:cjs && pnpm run build:manual && pnpm run build:umd",
|
|
75
95
|
"build:all": "pnpm run build && pnpm run build:dialects",
|
|
76
96
|
"test": "vitest run",
|
|
97
|
+
"test:bundlers": "node scripts/test-bundlers.mjs",
|
|
77
98
|
"test:watch": "vitest",
|
|
78
99
|
"test:coverage": "vitest run --coverage",
|
|
79
100
|
"typecheck": "tsc --noEmit",
|