@taladb/web 0.11.1 → 0.11.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 +2 -2
- package/package.json +1 -1
- package/pkg/README.md +2 -2
- package/pkg/package.json +1 -1
- package/pkg/taladb_web.d.ts +14 -10
- package/pkg/taladb_web.js +24 -45
- package/pkg/taladb_web_bg.wasm +0 -0
- package/pkg/taladb_web_bg.wasm.d.ts +6 -6
- package/worker/taladb.worker.js +254 -981
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Browser WASM bindings for TalaDB — persistent local-first storage via WASM + O
|
|
|
10
10
|
## What it provides
|
|
11
11
|
|
|
12
12
|
- Rust core compiled to WebAssembly via `wasm-bindgen`
|
|
13
|
-
- Persistent storage using [OPFS](https://developer.mozilla.org/en-US/docs/Web/API/File_System_API/Origin_private_file_system) (`FileSystemSyncAccessHandle`) — runs on a
|
|
13
|
+
- Persistent storage using [OPFS](https://developer.mozilla.org/en-US/docs/Web/API/File_System_API/Origin_private_file_system) (`FileSystemSyncAccessHandle`) — runs on a DedicatedWorker so the main thread is never blocked
|
|
14
14
|
- In-memory fallback for environments without OPFS support
|
|
15
15
|
- Bundle size target: < 400 KB gzipped
|
|
16
16
|
|
|
@@ -58,7 +58,7 @@ export default defineConfig({
|
|
|
58
58
|
|
|
59
59
|
### Web Worker (OPFS)
|
|
60
60
|
|
|
61
|
-
TalaDB spawns a
|
|
61
|
+
TalaDB spawns a DedicatedWorker internally to own the OPFS file handle. No extra configuration is required — the worker script is bundled inside this package at `@taladb/web/worker/taladb.worker.js`.
|
|
62
62
|
|
|
63
63
|
## Direct usage (advanced)
|
|
64
64
|
|
package/package.json
CHANGED
package/pkg/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Browser WASM bindings for TalaDB — persistent local-first storage via WASM + O
|
|
|
10
10
|
## What it provides
|
|
11
11
|
|
|
12
12
|
- Rust core compiled to WebAssembly via `wasm-bindgen`
|
|
13
|
-
- Persistent storage using [OPFS](https://developer.mozilla.org/en-US/docs/Web/API/File_System_API/Origin_private_file_system) (`FileSystemSyncAccessHandle`) — runs on a
|
|
13
|
+
- Persistent storage using [OPFS](https://developer.mozilla.org/en-US/docs/Web/API/File_System_API/Origin_private_file_system) (`FileSystemSyncAccessHandle`) — runs on a DedicatedWorker so the main thread is never blocked
|
|
14
14
|
- In-memory fallback for environments without OPFS support
|
|
15
15
|
- Bundle size target: < 400 KB gzipped
|
|
16
16
|
|
|
@@ -58,7 +58,7 @@ export default defineConfig({
|
|
|
58
58
|
|
|
59
59
|
### Web Worker (OPFS)
|
|
60
60
|
|
|
61
|
-
TalaDB spawns a
|
|
61
|
+
TalaDB spawns a DedicatedWorker internally to own the OPFS file handle. No extra configuration is required — the worker script is bundled inside this package at `@taladb/web/worker/taladb.worker.js`.
|
|
62
62
|
|
|
63
63
|
## Direct usage (advanced)
|
|
64
64
|
|
package/pkg/package.json
CHANGED
package/pkg/taladb_web.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export class CollectionWasm {
|
|
|
32
32
|
* `dimensions` - expected vector length.
|
|
33
33
|
* `metric` - optional: `"cosine"` (default), `"dot"`, or `"euclidean"`.
|
|
34
34
|
* `index_type` - optional: `"flat"` (default) or `"hnsw"`.
|
|
35
|
-
* `hnsw_m` - HNSW connectivity (
|
|
35
|
+
* `hnsw_m` - HNSW connectivity (only 32 is supported).
|
|
36
36
|
* `hnsw_ef_construction` - build quality (default 200).
|
|
37
37
|
*/
|
|
38
38
|
createVectorIndex(field: string, dimensions: number, metric?: string | null, index_type?: string | null, hnsw_m?: number | null, hnsw_ef_construction?: number | null): void;
|
|
@@ -199,7 +199,7 @@ export class WorkerDB {
|
|
|
199
199
|
*
|
|
200
200
|
* - `metric_str`: `"cosine"` (default) | `"dot"` | `"euclidean"`
|
|
201
201
|
* - `index_type`: `"flat"` (default) | `"hnsw"`
|
|
202
|
-
* - `hnsw_m`: HNSW connectivity (
|
|
202
|
+
* - `hnsw_m`: HNSW connectivity (only 32 is supported)
|
|
203
203
|
* - `hnsw_ef_construction`: build-time quality (default 200, only used when `index_type = "hnsw"`)
|
|
204
204
|
*/
|
|
205
205
|
createVectorIndex(collection: string, field: string, dimensions: number, metric_str?: string | null, index_type?: string | null, hnsw_m?: number | null, hnsw_ef_construction?: number | null): void;
|
|
@@ -232,7 +232,7 @@ export class WorkerDB {
|
|
|
232
232
|
* Pass the returned bytes to `idbSaveSnapshot` to persist across page reloads.
|
|
233
233
|
* On next open, pass the same bytes to `openWithSnapshot` to restore all data.
|
|
234
234
|
*/
|
|
235
|
-
exportSnapshot(): Uint8Array;
|
|
235
|
+
exportSnapshot(max_bytes?: number | null): Uint8Array;
|
|
236
236
|
/**
|
|
237
237
|
* Find documents. Returns a JSON array of document objects.
|
|
238
238
|
*/
|
|
@@ -303,11 +303,15 @@ export class WorkerDB {
|
|
|
303
303
|
/**
|
|
304
304
|
* Open a database backed by an OPFS `FileSystemSyncAccessHandle`.
|
|
305
305
|
*
|
|
306
|
-
* Call sequence in the
|
|
306
|
+
* Call sequence in the DedicatedWorker:
|
|
307
307
|
* ```js
|
|
308
308
|
* const handle = await file_handle.createSyncAccessHandle();
|
|
309
309
|
* const workerDb = WorkerDB.openWithOpfs(handle);
|
|
310
310
|
* ```
|
|
311
|
+
*
|
|
312
|
+
* wasm32-only, like `openWithConfigAndOpfs` below — it takes a JS handle and
|
|
313
|
+
* hands `OpfsBackend` to redb, whose `Send + Sync` impls exist only on that
|
|
314
|
+
* target. This gate was missing while the sibling method had it.
|
|
311
315
|
*/
|
|
312
316
|
static openWithOpfs(sync_handle: FileSystemSyncAccessHandle): WorkerDB;
|
|
313
317
|
/**
|
|
@@ -489,7 +493,7 @@ export interface InitOutput {
|
|
|
489
493
|
readonly workerdb_dropFtsIndex: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
490
494
|
readonly workerdb_dropIndex: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
491
495
|
readonly workerdb_dropVectorIndex: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
492
|
-
readonly workerdb_exportSnapshot: (a: number) => [number, number, number, number];
|
|
496
|
+
readonly workerdb_exportSnapshot: (a: number, b: number) => [number, number, number, number];
|
|
493
497
|
readonly workerdb_find: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
494
498
|
readonly workerdb_findNearest: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => [number, number, number, number];
|
|
495
499
|
readonly workerdb_findOne: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
@@ -514,11 +518,11 @@ export interface InitOutput {
|
|
|
514
518
|
readonly workerdb_userVersion: (a: number) => [number, number, number];
|
|
515
519
|
readonly workerdb_writeGeneration: (a: number, b: number, c: number) => [number, number, number];
|
|
516
520
|
readonly init: () => void;
|
|
517
|
-
readonly
|
|
518
|
-
readonly
|
|
519
|
-
readonly
|
|
520
|
-
readonly
|
|
521
|
-
readonly
|
|
521
|
+
readonly wasm_bindgen_e9a25e3ce4b9afff___closure__destroy___dyn_core_f0fd674eaa06beef___ops__function__FnMut__wasm_bindgen_e9a25e3ce4b9afff___JsValue____Output_______: (a: number, b: number) => void;
|
|
522
|
+
readonly wasm_bindgen_e9a25e3ce4b9afff___closure__destroy___dyn_core_f0fd674eaa06beef___ops__function__FnMut__wasm_bindgen_e9a25e3ce4b9afff___JsValue____Output___core_f0fd674eaa06beef___result__Result_____wasm_bindgen_e9a25e3ce4b9afff___JsError___: (a: number, b: number) => void;
|
|
523
|
+
readonly wasm_bindgen_e9a25e3ce4b9afff___convert__closures_____invoke___wasm_bindgen_e9a25e3ce4b9afff___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_e9a25e3ce4b9afff___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
524
|
+
readonly wasm_bindgen_e9a25e3ce4b9afff___convert__closures_____invoke___js_sys_54fca54a2842c85c___Function_fn_wasm_bindgen_e9a25e3ce4b9afff___JsValue_____wasm_bindgen_e9a25e3ce4b9afff___sys__Undefined___js_sys_54fca54a2842c85c___Function_fn_wasm_bindgen_e9a25e3ce4b9afff___JsValue_____wasm_bindgen_e9a25e3ce4b9afff___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
525
|
+
readonly wasm_bindgen_e9a25e3ce4b9afff___convert__closures_____invoke___wasm_bindgen_e9a25e3ce4b9afff___JsValue______true_: (a: number, b: number, c: any) => void;
|
|
522
526
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
523
527
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
524
528
|
readonly __wbindgen_exn_store: (a: number) => void;
|
package/pkg/taladb_web.js
CHANGED
|
@@ -85,7 +85,7 @@ export class CollectionWasm {
|
|
|
85
85
|
* `dimensions` - expected vector length.
|
|
86
86
|
* `metric` - optional: `"cosine"` (default), `"dot"`, or `"euclidean"`.
|
|
87
87
|
* `index_type` - optional: `"flat"` (default) or `"hnsw"`.
|
|
88
|
-
* `hnsw_m` - HNSW connectivity (
|
|
88
|
+
* `hnsw_m` - HNSW connectivity (only 32 is supported).
|
|
89
89
|
* `hnsw_ef_construction` - build quality (default 200).
|
|
90
90
|
* @param {string} field
|
|
91
91
|
* @param {number} dimensions
|
|
@@ -606,7 +606,7 @@ export class WorkerDB {
|
|
|
606
606
|
*
|
|
607
607
|
* - `metric_str`: `"cosine"` (default) | `"dot"` | `"euclidean"`
|
|
608
608
|
* - `index_type`: `"flat"` (default) | `"hnsw"`
|
|
609
|
-
* - `hnsw_m`: HNSW connectivity (
|
|
609
|
+
* - `hnsw_m`: HNSW connectivity (only 32 is supported)
|
|
610
610
|
* - `hnsw_ef_construction`: build-time quality (default 200, only used when `index_type = "hnsw"`)
|
|
611
611
|
* @param {string} collection
|
|
612
612
|
* @param {string} field
|
|
@@ -745,10 +745,11 @@ export class WorkerDB {
|
|
|
745
745
|
*
|
|
746
746
|
* Pass the returned bytes to `idbSaveSnapshot` to persist across page reloads.
|
|
747
747
|
* On next open, pass the same bytes to `openWithSnapshot` to restore all data.
|
|
748
|
+
* @param {number | null} [max_bytes]
|
|
748
749
|
* @returns {Uint8Array}
|
|
749
750
|
*/
|
|
750
|
-
exportSnapshot() {
|
|
751
|
-
const ret = wasm.workerdb_exportSnapshot(this.__wbg_ptr);
|
|
751
|
+
exportSnapshot(max_bytes) {
|
|
752
|
+
const ret = wasm.workerdb_exportSnapshot(this.__wbg_ptr, isLikeNone(max_bytes) ? 0x100000001 : (max_bytes) >>> 0);
|
|
752
753
|
if (ret[3]) {
|
|
753
754
|
throw takeFromExternrefTable0(ret[2]);
|
|
754
755
|
}
|
|
@@ -1074,11 +1075,15 @@ export class WorkerDB {
|
|
|
1074
1075
|
/**
|
|
1075
1076
|
* Open a database backed by an OPFS `FileSystemSyncAccessHandle`.
|
|
1076
1077
|
*
|
|
1077
|
-
* Call sequence in the
|
|
1078
|
+
* Call sequence in the DedicatedWorker:
|
|
1078
1079
|
* ```js
|
|
1079
1080
|
* const handle = await file_handle.createSyncAccessHandle();
|
|
1080
1081
|
* const workerDb = WorkerDB.openWithOpfs(handle);
|
|
1081
1082
|
* ```
|
|
1083
|
+
*
|
|
1084
|
+
* wasm32-only, like `openWithConfigAndOpfs` below — it takes a JS handle and
|
|
1085
|
+
* hands `OpfsBackend` to redb, whose `Send + Sync` impls exist only on that
|
|
1086
|
+
* target. This gate was missing while the sibling method had it.
|
|
1082
1087
|
* @param {FileSystemSyncAccessHandle} sync_handle
|
|
1083
1088
|
* @returns {WorkerDB}
|
|
1084
1089
|
*/
|
|
@@ -1520,10 +1525,6 @@ function __wbg_get_imports() {
|
|
|
1520
1525
|
const ret = arg0.createWritable();
|
|
1521
1526
|
return ret;
|
|
1522
1527
|
},
|
|
1523
|
-
__wbg_crypto_38df2bab126b63dc: function(arg0) {
|
|
1524
|
-
const ret = arg0.crypto;
|
|
1525
|
-
return ret;
|
|
1526
|
-
},
|
|
1527
1528
|
__wbg_done_08ce71ee07e3bd17: function(arg0) {
|
|
1528
1529
|
const ret = arg0.done;
|
|
1529
1530
|
return ret;
|
|
@@ -1562,12 +1563,9 @@ function __wbg_get_imports() {
|
|
|
1562
1563
|
const ret = arg0.getFile();
|
|
1563
1564
|
return ret;
|
|
1564
1565
|
},
|
|
1565
|
-
|
|
1566
|
+
__wbg_getRandomValues_76dfc69825c9c552: function() { return handleError(function (arg0, arg1) {
|
|
1566
1567
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1567
1568
|
}, arguments); },
|
|
1568
|
-
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
1569
|
-
arg0.getRandomValues(arg1);
|
|
1570
|
-
}, arguments); },
|
|
1571
1569
|
__wbg_getSize_0a16c5e2524d34aa: function() { return handleError(function (arg0) {
|
|
1572
1570
|
const ret = arg0.getSize();
|
|
1573
1571
|
return ret;
|
|
@@ -1708,10 +1706,6 @@ function __wbg_get_imports() {
|
|
|
1708
1706
|
const ret = arg0.length;
|
|
1709
1707
|
return ret;
|
|
1710
1708
|
},
|
|
1711
|
-
__wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
|
|
1712
|
-
const ret = arg0.msCrypto;
|
|
1713
|
-
return ret;
|
|
1714
|
-
},
|
|
1715
1709
|
__wbg_navigator_9cebf56f28aa719b: function(arg0) {
|
|
1716
1710
|
const ret = arg0.navigator;
|
|
1717
1711
|
return ret;
|
|
@@ -1743,7 +1737,7 @@ function __wbg_get_imports() {
|
|
|
1743
1737
|
const a = state0.a;
|
|
1744
1738
|
state0.a = 0;
|
|
1745
1739
|
try {
|
|
1746
|
-
return
|
|
1740
|
+
return wasm_bindgen_e9a25e3ce4b9afff___convert__closures_____invoke___js_sys_54fca54a2842c85c___Function_fn_wasm_bindgen_e9a25e3ce4b9afff___JsValue_____wasm_bindgen_e9a25e3ce4b9afff___sys__Undefined___js_sys_54fca54a2842c85c___Function_fn_wasm_bindgen_e9a25e3ce4b9afff___JsValue_____wasm_bindgen_e9a25e3ce4b9afff___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
1747
1741
|
} finally {
|
|
1748
1742
|
state0.a = a;
|
|
1749
1743
|
}
|
|
@@ -1765,7 +1759,7 @@ function __wbg_get_imports() {
|
|
|
1765
1759
|
const a = state0.a;
|
|
1766
1760
|
state0.a = 0;
|
|
1767
1761
|
try {
|
|
1768
|
-
return
|
|
1762
|
+
return wasm_bindgen_e9a25e3ce4b9afff___convert__closures_____invoke___js_sys_54fca54a2842c85c___Function_fn_wasm_bindgen_e9a25e3ce4b9afff___JsValue_____wasm_bindgen_e9a25e3ce4b9afff___sys__Undefined___js_sys_54fca54a2842c85c___Function_fn_wasm_bindgen_e9a25e3ce4b9afff___JsValue_____wasm_bindgen_e9a25e3ce4b9afff___sys__Undefined_______true_(a, state0.b, arg0, arg1);
|
|
1769
1763
|
} finally {
|
|
1770
1764
|
state0.a = a;
|
|
1771
1765
|
}
|
|
@@ -1788,18 +1782,10 @@ function __wbg_get_imports() {
|
|
|
1788
1782
|
const ret = arg0.next;
|
|
1789
1783
|
return ret;
|
|
1790
1784
|
},
|
|
1791
|
-
__wbg_node_84ea875411254db1: function(arg0) {
|
|
1792
|
-
const ret = arg0.node;
|
|
1793
|
-
return ret;
|
|
1794
|
-
},
|
|
1795
1785
|
__wbg_now_16f0c993d5dd6c27: function() {
|
|
1796
1786
|
const ret = Date.now();
|
|
1797
1787
|
return ret;
|
|
1798
1788
|
},
|
|
1799
|
-
__wbg_process_44c7a14e11e9f69e: function(arg0) {
|
|
1800
|
-
const ret = arg0.process;
|
|
1801
|
-
return ret;
|
|
1802
|
-
},
|
|
1803
1789
|
__wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
|
|
1804
1790
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1805
1791
|
},
|
|
@@ -1814,17 +1800,10 @@ function __wbg_get_imports() {
|
|
|
1814
1800
|
__wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
|
|
1815
1801
|
queueMicrotask(arg0);
|
|
1816
1802
|
},
|
|
1817
|
-
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
1818
|
-
arg0.randomFillSync(arg1);
|
|
1819
|
-
}, arguments); },
|
|
1820
1803
|
__wbg_removeEntry_b2a4d6d0ee2040c5: function(arg0, arg1, arg2) {
|
|
1821
1804
|
const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2));
|
|
1822
1805
|
return ret;
|
|
1823
1806
|
},
|
|
1824
|
-
__wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
|
|
1825
|
-
const ret = module.require;
|
|
1826
|
-
return ret;
|
|
1827
|
-
}, arguments); },
|
|
1828
1807
|
__wbg_resolve_ae8d83246e5bcc12: function(arg0) {
|
|
1829
1808
|
const ret = Promise.resolve(arg0);
|
|
1830
1809
|
return ret;
|
|
@@ -1892,18 +1871,18 @@ function __wbg_get_imports() {
|
|
|
1892
1871
|
const ret = arg0.value;
|
|
1893
1872
|
return ret;
|
|
1894
1873
|
},
|
|
1895
|
-
|
|
1896
|
-
const ret = arg0
|
|
1874
|
+
__wbg_values_0f255f23f642c00b: function(arg0) {
|
|
1875
|
+
const ret = Object.values(arg0);
|
|
1897
1876
|
return ret;
|
|
1898
1877
|
},
|
|
1899
1878
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1900
1879
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 1, function: Function { arguments: [Externref], shim_idx: 2, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1901
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1880
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_e9a25e3ce4b9afff___closure__destroy___dyn_core_f0fd674eaa06beef___ops__function__FnMut__wasm_bindgen_e9a25e3ce4b9afff___JsValue____Output_______, wasm_bindgen_e9a25e3ce4b9afff___convert__closures_____invoke___wasm_bindgen_e9a25e3ce4b9afff___JsValue______true_);
|
|
1902
1881
|
return ret;
|
|
1903
1882
|
},
|
|
1904
1883
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1905
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1906
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1884
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 569, function: Function { arguments: [Externref], shim_idx: 570, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1885
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen_e9a25e3ce4b9afff___closure__destroy___dyn_core_f0fd674eaa06beef___ops__function__FnMut__wasm_bindgen_e9a25e3ce4b9afff___JsValue____Output___core_f0fd674eaa06beef___result__Result_____wasm_bindgen_e9a25e3ce4b9afff___JsError___, wasm_bindgen_e9a25e3ce4b9afff___convert__closures_____invoke___wasm_bindgen_e9a25e3ce4b9afff___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_e9a25e3ce4b9afff___JsError___true_);
|
|
1907
1886
|
return ret;
|
|
1908
1887
|
},
|
|
1909
1888
|
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
@@ -1954,19 +1933,19 @@ function __wbg_get_imports() {
|
|
|
1954
1933
|
};
|
|
1955
1934
|
}
|
|
1956
1935
|
|
|
1957
|
-
function
|
|
1958
|
-
wasm.
|
|
1936
|
+
function wasm_bindgen_e9a25e3ce4b9afff___convert__closures_____invoke___wasm_bindgen_e9a25e3ce4b9afff___JsValue______true_(arg0, arg1, arg2) {
|
|
1937
|
+
wasm.wasm_bindgen_e9a25e3ce4b9afff___convert__closures_____invoke___wasm_bindgen_e9a25e3ce4b9afff___JsValue______true_(arg0, arg1, arg2);
|
|
1959
1938
|
}
|
|
1960
1939
|
|
|
1961
|
-
function
|
|
1962
|
-
const ret = wasm.
|
|
1940
|
+
function wasm_bindgen_e9a25e3ce4b9afff___convert__closures_____invoke___wasm_bindgen_e9a25e3ce4b9afff___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_e9a25e3ce4b9afff___JsError___true_(arg0, arg1, arg2) {
|
|
1941
|
+
const ret = wasm.wasm_bindgen_e9a25e3ce4b9afff___convert__closures_____invoke___wasm_bindgen_e9a25e3ce4b9afff___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_e9a25e3ce4b9afff___JsError___true_(arg0, arg1, arg2);
|
|
1963
1942
|
if (ret[1]) {
|
|
1964
1943
|
throw takeFromExternrefTable0(ret[0]);
|
|
1965
1944
|
}
|
|
1966
1945
|
}
|
|
1967
1946
|
|
|
1968
|
-
function
|
|
1969
|
-
wasm.
|
|
1947
|
+
function wasm_bindgen_e9a25e3ce4b9afff___convert__closures_____invoke___js_sys_54fca54a2842c85c___Function_fn_wasm_bindgen_e9a25e3ce4b9afff___JsValue_____wasm_bindgen_e9a25e3ce4b9afff___sys__Undefined___js_sys_54fca54a2842c85c___Function_fn_wasm_bindgen_e9a25e3ce4b9afff___JsValue_____wasm_bindgen_e9a25e3ce4b9afff___sys__Undefined_______true_(arg0, arg1, arg2, arg3) {
|
|
1948
|
+
wasm.wasm_bindgen_e9a25e3ce4b9afff___convert__closures_____invoke___js_sys_54fca54a2842c85c___Function_fn_wasm_bindgen_e9a25e3ce4b9afff___JsValue_____wasm_bindgen_e9a25e3ce4b9afff___sys__Undefined___js_sys_54fca54a2842c85c___Function_fn_wasm_bindgen_e9a25e3ce4b9afff___JsValue_____wasm_bindgen_e9a25e3ce4b9afff___sys__Undefined_______true_(arg0, arg1, arg2, arg3);
|
|
1970
1949
|
}
|
|
1971
1950
|
|
|
1972
1951
|
const CollectionWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
package/pkg/taladb_web_bg.wasm
CHANGED
|
Binary file
|
|
@@ -54,7 +54,7 @@ export const workerdb_dropCompoundIndex: (a: number, b: number, c: number, d: nu
|
|
|
54
54
|
export const workerdb_dropFtsIndex: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
55
55
|
export const workerdb_dropIndex: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
56
56
|
export const workerdb_dropVectorIndex: (a: number, b: number, c: number, d: number, e: number) => [number, number];
|
|
57
|
-
export const workerdb_exportSnapshot: (a: number) => [number, number, number, number];
|
|
57
|
+
export const workerdb_exportSnapshot: (a: number, b: number) => [number, number, number, number];
|
|
58
58
|
export const workerdb_find: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
59
59
|
export const workerdb_findNearest: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => [number, number, number, number];
|
|
60
60
|
export const workerdb_findOne: (a: number, b: number, c: number, d: number, e: number) => [number, number, number, number];
|
|
@@ -79,11 +79,11 @@ export const workerdb_upsertManyWithIds: (a: number, b: number, c: number, d: nu
|
|
|
79
79
|
export const workerdb_userVersion: (a: number) => [number, number, number];
|
|
80
80
|
export const workerdb_writeGeneration: (a: number, b: number, c: number) => [number, number, number];
|
|
81
81
|
export const init: () => void;
|
|
82
|
-
export const
|
|
83
|
-
export const
|
|
84
|
-
export const
|
|
85
|
-
export const
|
|
86
|
-
export const
|
|
82
|
+
export const wasm_bindgen_e9a25e3ce4b9afff___closure__destroy___dyn_core_f0fd674eaa06beef___ops__function__FnMut__wasm_bindgen_e9a25e3ce4b9afff___JsValue____Output_______: (a: number, b: number) => void;
|
|
83
|
+
export const wasm_bindgen_e9a25e3ce4b9afff___closure__destroy___dyn_core_f0fd674eaa06beef___ops__function__FnMut__wasm_bindgen_e9a25e3ce4b9afff___JsValue____Output___core_f0fd674eaa06beef___result__Result_____wasm_bindgen_e9a25e3ce4b9afff___JsError___: (a: number, b: number) => void;
|
|
84
|
+
export const wasm_bindgen_e9a25e3ce4b9afff___convert__closures_____invoke___wasm_bindgen_e9a25e3ce4b9afff___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_e9a25e3ce4b9afff___JsError___true_: (a: number, b: number, c: any) => [number, number];
|
|
85
|
+
export const wasm_bindgen_e9a25e3ce4b9afff___convert__closures_____invoke___js_sys_54fca54a2842c85c___Function_fn_wasm_bindgen_e9a25e3ce4b9afff___JsValue_____wasm_bindgen_e9a25e3ce4b9afff___sys__Undefined___js_sys_54fca54a2842c85c___Function_fn_wasm_bindgen_e9a25e3ce4b9afff___JsValue_____wasm_bindgen_e9a25e3ce4b9afff___sys__Undefined_______true_: (a: number, b: number, c: any, d: any) => void;
|
|
86
|
+
export const wasm_bindgen_e9a25e3ce4b9afff___convert__closures_____invoke___wasm_bindgen_e9a25e3ce4b9afff___JsValue______true_: (a: number, b: number, c: any) => void;
|
|
87
87
|
export const __wbindgen_malloc: (a: number, b: number) => number;
|
|
88
88
|
export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
89
89
|
export const __wbindgen_exn_store: (a: number) => void;
|