js-bao 0.12.0-alpha.11 → 0.12.0-alpha.13
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 +3 -0
- package/dist/browser.cjs +414 -65
- package/dist/browser.d.cts +184 -11
- package/dist/browser.d.ts +184 -11
- package/dist/browser.js +414 -65
- package/dist/client.cjs +9 -0
- package/dist/client.d.cts +50 -4
- package/dist/client.d.ts +50 -4
- package/dist/client.js +9 -0
- package/dist/cloudflare-do.cjs +13 -0
- package/dist/cloudflare-do.d.cts +50 -4
- package/dist/cloudflare-do.d.ts +50 -4
- package/dist/cloudflare-do.js +13 -0
- package/dist/cloudflare.cjs +13 -0
- package/dist/cloudflare.d.cts +50 -4
- package/dist/cloudflare.d.ts +50 -4
- package/dist/cloudflare.js +13 -0
- package/dist/codegen-v2.cjs +496 -297
- package/dist/codegen.cjs +6 -5
- package/dist/format2-worker.js +77 -24
- package/dist/index.cjs +424 -67
- package/dist/index.d.cts +184 -11
- package/dist/index.d.ts +184 -11
- package/dist/index.js +422 -67
- package/dist/node.cjs +424 -67
- package/dist/node.d.cts +184 -11
- package/dist/node.d.ts +184 -11
- package/dist/node.js +422 -67
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -1310,6 +1310,9 @@ public server path).
|
|
|
1310
1310
|
|
|
1311
1311
|
- **Vite / Create React App**: copy `node_modules/sql.js/dist/sql-wasm.wasm` into
|
|
1312
1312
|
your project's `public/` directory so it is served at `/sql-wasm.wasm`.
|
|
1313
|
+
Copy it from the sql.js that js-bao resolved, and again whenever that version
|
|
1314
|
+
changes: sql.js only loads the wasm built with it, and a wasm from another
|
|
1315
|
+
version rejects `ensureReady()` with a `sql.js wasm mismatch` error.
|
|
1313
1316
|
- **Custom path**: if the wasm lives elsewhere, point at it via `DatabaseConfig`:
|
|
1314
1317
|
|
|
1315
1318
|
```typescript
|