@moltendb-web/core 1.1.1 → 1.2.0
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
CHANGED
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
|
|
22
22
|
MoltenDb is a JSON document database written in Rust that runs directly in your browser. Unlike traditional browser databases limited by `localStorage` quotas or IndexedDB's complex API, MoltenDb leverages the **Origin Private File System (OPFS)** to provide a high-performance, append-only storage engine.
|
|
23
23
|
|
|
24
|
+
Beyond being a full-featured embedded database, MoltenDb can also serve as a **persistent state manager** for your application. Because all data is written to OPFS, your app's state survives page reloads, browser crashes, and unexpected connection loss — your users will never lose their work.
|
|
25
|
+
|
|
24
26
|
> **🚀 Release Candidate** — The core engine, multi-tab sync, and storage layer are feature-complete and stabilised for v1. Server sync, encryption and analytics are planned for a future release.
|
|
25
27
|
|
|
26
28
|
### 🎮 Explore the Full Functionality
|
package/dist/wasm/moltendb.d.ts
CHANGED
|
@@ -93,9 +93,9 @@ export interface InitOutput {
|
|
|
93
93
|
readonly workerdb_handle_message: (a: number, b: number, c: number) => void;
|
|
94
94
|
readonly workerdb_new: (a: number, b: number) => number;
|
|
95
95
|
readonly workerdb_subscribe: (a: number, b: number) => void;
|
|
96
|
-
readonly
|
|
97
|
-
readonly
|
|
98
|
-
readonly
|
|
96
|
+
readonly __wasm_bindgen_func_elem_3615: (a: number, b: number) => void;
|
|
97
|
+
readonly __wasm_bindgen_func_elem_3699: (a: number, b: number, c: number, d: number) => void;
|
|
98
|
+
readonly __wasm_bindgen_func_elem_3704: (a: number, b: number, c: number, d: number) => void;
|
|
99
99
|
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
100
100
|
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
101
101
|
readonly __wbindgen_export3: (a: number) => void;
|
package/dist/wasm/moltendb.js
CHANGED
|
@@ -389,7 +389,7 @@ function __wbg_get_imports() {
|
|
|
389
389
|
const a = state0.a;
|
|
390
390
|
state0.a = 0;
|
|
391
391
|
try {
|
|
392
|
-
return
|
|
392
|
+
return __wasm_bindgen_func_elem_3704(a, state0.b, arg0, arg1);
|
|
393
393
|
} finally {
|
|
394
394
|
state0.a = a;
|
|
395
395
|
}
|
|
@@ -509,8 +509,8 @@ function __wbg_get_imports() {
|
|
|
509
509
|
return ret;
|
|
510
510
|
}, arguments); },
|
|
511
511
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
512
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 664, function: Function { arguments: [Externref], shim_idx:
|
|
513
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
512
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 664, function: Function { arguments: [Externref], shim_idx: 677, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
513
|
+
const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_3615, __wasm_bindgen_func_elem_3699);
|
|
514
514
|
return addHeapObject(ret);
|
|
515
515
|
},
|
|
516
516
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -547,10 +547,10 @@ function __wbg_get_imports() {
|
|
|
547
547
|
};
|
|
548
548
|
}
|
|
549
549
|
|
|
550
|
-
function
|
|
550
|
+
function __wasm_bindgen_func_elem_3699(arg0, arg1, arg2) {
|
|
551
551
|
try {
|
|
552
552
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
553
|
-
wasm.
|
|
553
|
+
wasm.__wasm_bindgen_func_elem_3699(retptr, arg0, arg1, addHeapObject(arg2));
|
|
554
554
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
555
555
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
556
556
|
if (r1) {
|
|
@@ -561,8 +561,8 @@ function __wasm_bindgen_func_elem_3707(arg0, arg1, arg2) {
|
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
|
|
564
|
-
function
|
|
565
|
-
wasm.
|
|
564
|
+
function __wasm_bindgen_func_elem_3704(arg0, arg1, arg2, arg3) {
|
|
565
|
+
wasm.__wasm_bindgen_func_elem_3704(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
566
566
|
}
|
|
567
567
|
|
|
568
568
|
const WorkerDbFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
Binary file
|
|
@@ -6,9 +6,9 @@ export const workerdb_analytics: (a: number, b: number, c: number, d: number) =>
|
|
|
6
6
|
export const workerdb_handle_message: (a: number, b: number, c: number) => void;
|
|
7
7
|
export const workerdb_new: (a: number, b: number) => number;
|
|
8
8
|
export const workerdb_subscribe: (a: number, b: number) => void;
|
|
9
|
-
export const
|
|
10
|
-
export const
|
|
11
|
-
export const
|
|
9
|
+
export const __wasm_bindgen_func_elem_3615: (a: number, b: number) => void;
|
|
10
|
+
export const __wasm_bindgen_func_elem_3699: (a: number, b: number, c: number, d: number) => void;
|
|
11
|
+
export const __wasm_bindgen_func_elem_3704: (a: number, b: number, c: number, d: number) => void;
|
|
12
12
|
export const __wbindgen_export: (a: number, b: number) => number;
|
|
13
13
|
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
14
14
|
export const __wbindgen_export3: (a: number) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moltendb-web/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "MoltenDb WASM runtime — the database engine, Web Worker, and main-thread client in one package.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Maximilian Both <maximilian.both27@outlook.com>",
|