@taladb/web 0.11.1 → 0.11.2
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/package.json +1 -1
- package/pkg/package.json +1 -1
- package/pkg/taladb_web.d.ts +9 -5
- package/pkg/taladb_web.js +18 -40
- package/pkg/taladb_web_bg.wasm +0 -0
- package/pkg/taladb_web_bg.wasm.d.ts +5 -5
package/package.json
CHANGED
package/pkg/package.json
CHANGED
package/pkg/taladb_web.d.ts
CHANGED
|
@@ -308,6 +308,10 @@ export class WorkerDB {
|
|
|
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
|
/**
|
|
@@ -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
|
@@ -1079,6 +1079,10 @@ export class WorkerDB {
|
|
|
1079
1079
|
* const handle = await file_handle.createSyncAccessHandle();
|
|
1080
1080
|
* const workerDb = WorkerDB.openWithOpfs(handle);
|
|
1081
1081
|
* ```
|
|
1082
|
+
*
|
|
1083
|
+
* wasm32-only, like `openWithConfigAndOpfs` below — it takes a JS handle and
|
|
1084
|
+
* hands `OpfsBackend` to redb, whose `Send + Sync` impls exist only on that
|
|
1085
|
+
* target. This gate was missing while the sibling method had it.
|
|
1082
1086
|
* @param {FileSystemSyncAccessHandle} sync_handle
|
|
1083
1087
|
* @returns {WorkerDB}
|
|
1084
1088
|
*/
|
|
@@ -1520,10 +1524,6 @@ function __wbg_get_imports() {
|
|
|
1520
1524
|
const ret = arg0.createWritable();
|
|
1521
1525
|
return ret;
|
|
1522
1526
|
},
|
|
1523
|
-
__wbg_crypto_38df2bab126b63dc: function(arg0) {
|
|
1524
|
-
const ret = arg0.crypto;
|
|
1525
|
-
return ret;
|
|
1526
|
-
},
|
|
1527
1527
|
__wbg_done_08ce71ee07e3bd17: function(arg0) {
|
|
1528
1528
|
const ret = arg0.done;
|
|
1529
1529
|
return ret;
|
|
@@ -1562,12 +1562,9 @@ function __wbg_get_imports() {
|
|
|
1562
1562
|
const ret = arg0.getFile();
|
|
1563
1563
|
return ret;
|
|
1564
1564
|
},
|
|
1565
|
-
|
|
1565
|
+
__wbg_getRandomValues_76dfc69825c9c552: function() { return handleError(function (arg0, arg1) {
|
|
1566
1566
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1567
1567
|
}, arguments); },
|
|
1568
|
-
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
1569
|
-
arg0.getRandomValues(arg1);
|
|
1570
|
-
}, arguments); },
|
|
1571
1568
|
__wbg_getSize_0a16c5e2524d34aa: function() { return handleError(function (arg0) {
|
|
1572
1569
|
const ret = arg0.getSize();
|
|
1573
1570
|
return ret;
|
|
@@ -1708,10 +1705,6 @@ function __wbg_get_imports() {
|
|
|
1708
1705
|
const ret = arg0.length;
|
|
1709
1706
|
return ret;
|
|
1710
1707
|
},
|
|
1711
|
-
__wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
|
|
1712
|
-
const ret = arg0.msCrypto;
|
|
1713
|
-
return ret;
|
|
1714
|
-
},
|
|
1715
1708
|
__wbg_navigator_9cebf56f28aa719b: function(arg0) {
|
|
1716
1709
|
const ret = arg0.navigator;
|
|
1717
1710
|
return ret;
|
|
@@ -1743,7 +1736,7 @@ function __wbg_get_imports() {
|
|
|
1743
1736
|
const a = state0.a;
|
|
1744
1737
|
state0.a = 0;
|
|
1745
1738
|
try {
|
|
1746
|
-
return
|
|
1739
|
+
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
1740
|
} finally {
|
|
1748
1741
|
state0.a = a;
|
|
1749
1742
|
}
|
|
@@ -1765,7 +1758,7 @@ function __wbg_get_imports() {
|
|
|
1765
1758
|
const a = state0.a;
|
|
1766
1759
|
state0.a = 0;
|
|
1767
1760
|
try {
|
|
1768
|
-
return
|
|
1761
|
+
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
1762
|
} finally {
|
|
1770
1763
|
state0.a = a;
|
|
1771
1764
|
}
|
|
@@ -1788,18 +1781,10 @@ function __wbg_get_imports() {
|
|
|
1788
1781
|
const ret = arg0.next;
|
|
1789
1782
|
return ret;
|
|
1790
1783
|
},
|
|
1791
|
-
__wbg_node_84ea875411254db1: function(arg0) {
|
|
1792
|
-
const ret = arg0.node;
|
|
1793
|
-
return ret;
|
|
1794
|
-
},
|
|
1795
1784
|
__wbg_now_16f0c993d5dd6c27: function() {
|
|
1796
1785
|
const ret = Date.now();
|
|
1797
1786
|
return ret;
|
|
1798
1787
|
},
|
|
1799
|
-
__wbg_process_44c7a14e11e9f69e: function(arg0) {
|
|
1800
|
-
const ret = arg0.process;
|
|
1801
|
-
return ret;
|
|
1802
|
-
},
|
|
1803
1788
|
__wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
|
|
1804
1789
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1805
1790
|
},
|
|
@@ -1814,17 +1799,10 @@ function __wbg_get_imports() {
|
|
|
1814
1799
|
__wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
|
|
1815
1800
|
queueMicrotask(arg0);
|
|
1816
1801
|
},
|
|
1817
|
-
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
1818
|
-
arg0.randomFillSync(arg1);
|
|
1819
|
-
}, arguments); },
|
|
1820
1802
|
__wbg_removeEntry_b2a4d6d0ee2040c5: function(arg0, arg1, arg2) {
|
|
1821
1803
|
const ret = arg0.removeEntry(getStringFromWasm0(arg1, arg2));
|
|
1822
1804
|
return ret;
|
|
1823
1805
|
},
|
|
1824
|
-
__wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
|
|
1825
|
-
const ret = module.require;
|
|
1826
|
-
return ret;
|
|
1827
|
-
}, arguments); },
|
|
1828
1806
|
__wbg_resolve_ae8d83246e5bcc12: function(arg0) {
|
|
1829
1807
|
const ret = Promise.resolve(arg0);
|
|
1830
1808
|
return ret;
|
|
@@ -1892,18 +1870,18 @@ function __wbg_get_imports() {
|
|
|
1892
1870
|
const ret = arg0.value;
|
|
1893
1871
|
return ret;
|
|
1894
1872
|
},
|
|
1895
|
-
|
|
1896
|
-
const ret = arg0
|
|
1873
|
+
__wbg_values_0f255f23f642c00b: function(arg0) {
|
|
1874
|
+
const ret = Object.values(arg0);
|
|
1897
1875
|
return ret;
|
|
1898
1876
|
},
|
|
1899
1877
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1900
1878
|
// 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.
|
|
1879
|
+
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
1880
|
return ret;
|
|
1903
1881
|
},
|
|
1904
1882
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1905
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1906
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1883
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 561, function: Function { arguments: [Externref], shim_idx: 562, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1884
|
+
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
1885
|
return ret;
|
|
1908
1886
|
},
|
|
1909
1887
|
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
@@ -1954,19 +1932,19 @@ function __wbg_get_imports() {
|
|
|
1954
1932
|
};
|
|
1955
1933
|
}
|
|
1956
1934
|
|
|
1957
|
-
function
|
|
1958
|
-
wasm.
|
|
1935
|
+
function wasm_bindgen_e9a25e3ce4b9afff___convert__closures_____invoke___wasm_bindgen_e9a25e3ce4b9afff___JsValue______true_(arg0, arg1, arg2) {
|
|
1936
|
+
wasm.wasm_bindgen_e9a25e3ce4b9afff___convert__closures_____invoke___wasm_bindgen_e9a25e3ce4b9afff___JsValue______true_(arg0, arg1, arg2);
|
|
1959
1937
|
}
|
|
1960
1938
|
|
|
1961
|
-
function
|
|
1962
|
-
const ret = wasm.
|
|
1939
|
+
function wasm_bindgen_e9a25e3ce4b9afff___convert__closures_____invoke___wasm_bindgen_e9a25e3ce4b9afff___JsValue__core_f0fd674eaa06beef___result__Result_____wasm_bindgen_e9a25e3ce4b9afff___JsError___true_(arg0, arg1, arg2) {
|
|
1940
|
+
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
1941
|
if (ret[1]) {
|
|
1964
1942
|
throw takeFromExternrefTable0(ret[0]);
|
|
1965
1943
|
}
|
|
1966
1944
|
}
|
|
1967
1945
|
|
|
1968
|
-
function
|
|
1969
|
-
wasm.
|
|
1946
|
+
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) {
|
|
1947
|
+
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
1948
|
}
|
|
1971
1949
|
|
|
1972
1950
|
const CollectionWasmFinalization = (typeof FinalizationRegistry === 'undefined')
|
package/pkg/taladb_web_bg.wasm
CHANGED
|
Binary file
|
|
@@ -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;
|