@moltendb-web/core 1.4.2 โ†’ 1.5.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
@@ -23,7 +23,7 @@ MoltenDb is a JSON document database written in Rust that runs directly in your
23
23
 
24
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
25
 
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.
26
+ > **๐Ÿš€ Release Candidate 2** โ€” The core engine, multi-tab sync, storage layer, and **transparent at-rest encryption** are feature-complete and stabilised. Server sync and analytics are planned for a future release.
27
27
 
28
28
  ### ๐ŸŽฎ Explore the Full Functionality
29
29
 
@@ -34,7 +34,8 @@ Prefer to run it in your own environment? You can **[clone the demo repository](
34
34
  **โš ๏ธ Note for Online IDEs:** If you are viewing this on StackBlitz or CodeSandbox, the WASM engine may be blocked by iframe security restrictions. Please click the "Open in New Window/Tab" button in the preview pane to enable the full OPFS storage engine.
35
35
 
36
36
  ### Core Features
37
- - **Pure Rust Engine:** The same query logic used in our server binary, compiled to WebAssembly.
37
+ - **Hybrid Bitcask Storage:** The same query logic used in our server binary, compiled to WebAssembly. Data is paged between RAM and OPFS to handle datasets larger than memory.
38
+ - **At-Rest Encryption:** Transparently secure your data in the browser using XChaCha20-Poly1305 (Argon2id key derivation).
38
39
  - **OPFS Persistence:** Data persists across page reloads in a dedicated, high-speed sandbox.
39
40
  - **Worker-Threaded:** The database runs entirely inside a Web Workerโ€”zero impact on your UI thread.
40
41
  - **Multi-Tab Sync (stabilised):** Leader election via the Web Locks API ensures only one tab owns the OPFS handle. All other tabs proxy reads and writes through a `BroadcastChannel`. Seamless leader promotion when the active tab closes.
@@ -93,7 +94,11 @@ TypeScript
93
94
  import { MoltenDb } from '@moltendb-web/core';
94
95
  import { MoltenDbClient, WorkerTransport } from '@moltendb-web/query';
95
96
 
96
- const db = new MoltenDb('moltendb_demo');
97
+ const db = new MoltenDb('moltendb_demo', {
98
+ hotThreshold: 25000, // Keep 25k docs in RAM per collection
99
+ encryptionKey: 'my-secret', // Enable transparent at-rest encryption
100
+ writeMode: 'sync' // Ensure every write is flushed to OPFS
101
+ });
97
102
  await db.init();
98
103
 
99
104
  // Connect the query builder to the WASM worker
@@ -245,6 +250,32 @@ await client.collection('laptops')
245
250
  | Read cost | O(1) โ€” data already embedded | O(1) per join per document |
246
251
  | Use when | Data rarely changes, fast reads matter | Data changes frequently, freshness matters |
247
252
 
253
+ ---
254
+ ## Configuration
255
+
256
+ You can customise the database behavior by passing an options object to the `MoltenDb` constructor.
257
+
258
+ ```ts
259
+ const db = new MoltenDb('my-app', {
260
+ hotThreshold: 25000, // Page to disk after 25k docs
261
+ encryptionKey: 'user-secret', // Secure at-rest storage in OPFS
262
+ writeMode: 'sync' // Ensure durability on every write
263
+ });
264
+ await db.init();
265
+ ```
266
+
267
+ ### Options Reference
268
+
269
+ | Property | Type | Default | Description |
270
+ | :--- | :--- | :--- | :--- |
271
+ | `hotThreshold` | `number` | `50000` | **Hybrid Bitcask Limit:** Maximum documents per collection to keep in RAM. When exceeded, the oldest documents are paged out to OPFS to save memory. |
272
+ | `encryptionKey` | `string` | `undefined` | **At-Rest Encryption:** If provided, all data written to OPFS is encrypted using XChaCha20-Poly1305. If omitted, data is stored as plain JSON. |
273
+ | `writeMode` | `'async' \| 'sync'` | `'async'` | **Durability vs Speed:** `'async'` is blazing fast (high throughput), while `'sync'` ensures every write is flushed to disk before returning (safer but slower). **Note:** `async` is recommended for most web apps to avoid blocking during heavy write bursts. |
274
+ | `workerUrl` | `string \| URL` | `undefined` | Custom path to the Web Worker script. |
275
+ | `maxBodySize` | `number` | `10485760` | **Payload Limit:** Max body size in bytes. Prevents memory spikes from large messages. |
276
+ | `rateLimitRequests`| `number` | `100` | (Server Parity/Safety) Max requests allowed per rate-limit window. |
277
+ | `rateLimitWindow` | `number` | `60` | (Server Parity/Safety) Size of the rate-limit window in seconds. |
278
+
248
279
  ---
249
280
  ## Storage Architecture
250
281
 
@@ -369,8 +400,10 @@ This monorepo contains the following packages:
369
400
  - [ ] **React Adapter:** Official `@moltendb-web/react` package with `useQuery` hooks and real-time context providers.
370
401
  - [x] **Angular Adapter:** Official `@moltendb-web/angular` package featuring Signal-based data fetching.
371
402
  - [ ] **Delta Sync:** Automatic two-way sync with the MoltenDb Rust server.
372
- - [ ] **Data Encryption:** Transparent encryption-at-rest using hardware-backed keys (Web Crypto API).
403
+ - [x] **Data Encryption:** Transparent encryption-at-rest using hardware-backed keys (Argon2id + XChaCha20) โ€” **stabilised in RC2**.
404
+ - [x] **Hybrid Bitcask:** Seamlessly handle datasets larger than RAM by paging docs to OPFS โ€” **stabilised in RC2**.
373
405
  - [ ] **Analytics Functionality:** Run complex analytics queries straight in the browser without blocking the UI.
406
+ - [x] **Configurable Limits:** User-defined RAM thresholds and request body sizes for edge and browser environments โ€” **stabilised in RC2**.
374
407
 
375
408
 
376
409
  ## Contributing & Feedback
package/dist/index.d.ts CHANGED
@@ -1,6 +1,18 @@
1
1
  export interface MoltenDbOptions {
2
2
  /** URL or path to moltendb-worker.js. */
3
3
  workerUrl?: string | URL;
4
+ /** Maximum documents per collection to keep in RAM. Default: 50,000. */
5
+ hotThreshold?: number;
6
+ /** Password for at-rest encryption. If not provided, data is stored as plain JSON. */
7
+ encryptionKey?: string;
8
+ /** Storage write mode: 'async' (default, high throughput) or 'sync' (durable). */
9
+ writeMode?: 'async' | 'sync';
10
+ /** (Server only) Max requests per IP per rate-limit window. */
11
+ rateLimitRequests?: number;
12
+ /** (Server only) Rate-limit window size in seconds. */
13
+ rateLimitWindow?: number;
14
+ /** (Server only) Maximum request body size in bytes. */
15
+ maxBodySize?: number;
4
16
  }
5
17
  export interface DbEvent {
6
18
  type: 'event';
@@ -12,6 +24,7 @@ export interface DbEvent {
12
24
  export declare class MoltenDb {
13
25
  readonly dbName: string;
14
26
  readonly workerUrl?: string | URL;
27
+ readonly options: MoltenDbOptions;
15
28
  worker: Worker | null;
16
29
  private initPromise;
17
30
  private pendingRequests;
package/dist/index.js CHANGED
@@ -2,6 +2,7 @@ import { mapToObj } from "./helpers";
2
2
  export class MoltenDb {
3
3
  dbName;
4
4
  workerUrl;
5
+ options;
5
6
  worker = null;
6
7
  initPromise = null;
7
8
  pendingRequests = new Map();
@@ -15,6 +16,7 @@ export class MoltenDb {
15
16
  constructor(dbName = 'moltendb', options = {}) {
16
17
  this.dbName = dbName;
17
18
  this.workerUrl = options.workerUrl;
19
+ this.options = options;
18
20
  }
19
21
  /**
20
22
  * โšก Subscribe to real-time DB mutations.
@@ -103,7 +105,15 @@ export class MoltenDb {
103
105
  }
104
106
  };
105
107
  // Wait for worker to boot
106
- await this.sendMessage('init', { dbName: this.dbName });
108
+ await this.sendMessage('init', {
109
+ dbName: this.dbName,
110
+ hotThreshold: this.options.hotThreshold,
111
+ encryptionKey: this.options.encryptionKey,
112
+ writeMode: this.options.writeMode,
113
+ rateLimitRequests: this.options.rateLimitRequests,
114
+ rateLimitWindow: this.options.rateLimitWindow,
115
+ maxBodySize: this.options.maxBodySize,
116
+ });
107
117
  this.bc.onmessage = async (e) => {
108
118
  const msg = e.data;
109
119
  if (msg.type === 'query' && msg.action) {
@@ -8,8 +8,8 @@ self.onmessage = async (e) => {
8
8
  if (!initPromise) {
9
9
  initPromise = (async () => {
10
10
  await init();
11
- // FIX: You must await the async constructor
12
- const instance = await WorkerDb.create(payload.dbName);
11
+ // Pass all config flags to Rust
12
+ const instance = await WorkerDb.create(payload.dbName, payload.hotThreshold, payload.encryptionKey, payload.writeMode, payload.rateLimitRequests, payload.rateLimitWindow, payload.maxBodySize);
13
13
  // Listen to Rust and broadcast events
14
14
  instance.subscribe((eventStr) => {
15
15
  try {
@@ -43,7 +43,7 @@ export class WorkerDb {
43
43
  * Initialize the database and open (or create) the OPFS storage file.
44
44
  *
45
45
  * Called from JavaScript as:
46
- * `const db = await WorkerDb.create("click_analytics_db")`
46
+ * `const db = await WorkerDb.create("click_analytics_db", 50000, "my-secret-key")`
47
47
  *
48
48
  * A named static factory function is used instead of an async constructor
49
49
  * because `#[wasm_bindgen(constructor)]` with `async fn` produces invalid
@@ -56,8 +56,14 @@ export class WorkerDb {
56
56
  * # Arguments
57
57
  * * `db_name` โ€” The name of the OPFS file to open (e.g. "click_analytics_db").
58
58
  * Each unique name is a separate database file in the browser's OPFS storage.
59
+ * * `hot_threshold` โ€” Optional maximum documents per collection to keep in RAM (default: 50,000).
60
+ * * `encryption_key` โ€” Optional password for at-rest encryption.
61
+ * * `write_mode` โ€” Optional write mode: "async" (default) or "sync".
62
+ * * `rate_limit_requests` โ€” Optional max requests per window (default: 100).
63
+ * * `rate_limit_window` โ€” Optional window size in seconds (default: 60).
64
+ * * `max_body_size` โ€” Optional maximum request body size in bytes (default: 10MB).
59
65
  */
60
- static create(db_name: string): Promise<WorkerDb>;
66
+ static create(db_name: string, hot_threshold?: number | null, encryption_key?: string | null, write_mode?: string | null, rate_limit_requests?: number | null, rate_limit_window?: bigint | null, max_body_size?: number | null): Promise<WorkerDb>;
61
67
  /**
62
68
  * Route an incoming message from the JavaScript worker to the correct handler.
63
69
  *
@@ -92,16 +98,16 @@ export interface InitOutput {
92
98
  readonly memory: WebAssembly.Memory;
93
99
  readonly __wbg_workerdb_free: (a: number, b: number) => void;
94
100
  readonly workerdb_analytics: (a: number, b: number, c: number, d: number) => void;
95
- readonly workerdb_create: (a: number, b: number) => number;
101
+ readonly workerdb_create: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: bigint, k: number) => number;
96
102
  readonly workerdb_handle_message: (a: number, b: number, c: number) => void;
97
103
  readonly workerdb_subscribe: (a: number, b: number) => void;
98
- readonly __wasm_bindgen_func_elem_3672: (a: number, b: number) => void;
99
- readonly __wasm_bindgen_func_elem_3755: (a: number, b: number, c: number, d: number) => void;
100
- readonly __wasm_bindgen_func_elem_3766: (a: number, b: number, c: number, d: number) => void;
104
+ readonly __wasm_bindgen_func_elem_4053: (a: number, b: number, c: number, d: number) => void;
105
+ readonly __wasm_bindgen_func_elem_4065: (a: number, b: number, c: number, d: number) => void;
101
106
  readonly __wbindgen_export: (a: number, b: number) => number;
102
107
  readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
103
108
  readonly __wbindgen_export3: (a: number) => void;
104
109
  readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
110
+ readonly __wbindgen_export5: (a: number, b: number) => void;
105
111
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
106
112
  }
107
113
 
@@ -75,7 +75,7 @@ export class WorkerDb {
75
75
  * Initialize the database and open (or create) the OPFS storage file.
76
76
  *
77
77
  * Called from JavaScript as:
78
- * `const db = await WorkerDb.create("click_analytics_db")`
78
+ * `const db = await WorkerDb.create("click_analytics_db", 50000, "my-secret-key")`
79
79
  *
80
80
  * A named static factory function is used instead of an async constructor
81
81
  * because `#[wasm_bindgen(constructor)]` with `async fn` produces invalid
@@ -88,13 +88,29 @@ export class WorkerDb {
88
88
  * # Arguments
89
89
  * * `db_name` โ€” The name of the OPFS file to open (e.g. "click_analytics_db").
90
90
  * Each unique name is a separate database file in the browser's OPFS storage.
91
+ * * `hot_threshold` โ€” Optional maximum documents per collection to keep in RAM (default: 50,000).
92
+ * * `encryption_key` โ€” Optional password for at-rest encryption.
93
+ * * `write_mode` โ€” Optional write mode: "async" (default) or "sync".
94
+ * * `rate_limit_requests` โ€” Optional max requests per window (default: 100).
95
+ * * `rate_limit_window` โ€” Optional window size in seconds (default: 60).
96
+ * * `max_body_size` โ€” Optional maximum request body size in bytes (default: 10MB).
91
97
  * @param {string} db_name
98
+ * @param {number | null} [hot_threshold]
99
+ * @param {string | null} [encryption_key]
100
+ * @param {string | null} [write_mode]
101
+ * @param {number | null} [rate_limit_requests]
102
+ * @param {bigint | null} [rate_limit_window]
103
+ * @param {number | null} [max_body_size]
92
104
  * @returns {Promise<WorkerDb>}
93
105
  */
94
- static create(db_name) {
106
+ static create(db_name, hot_threshold, encryption_key, write_mode, rate_limit_requests, rate_limit_window, max_body_size) {
95
107
  const ptr0 = passStringToWasm0(db_name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
96
108
  const len0 = WASM_VECTOR_LEN;
97
- const ret = wasm.workerdb_create(ptr0, len0);
109
+ var ptr1 = isLikeNone(encryption_key) ? 0 : passStringToWasm0(encryption_key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
110
+ var len1 = WASM_VECTOR_LEN;
111
+ var ptr2 = isLikeNone(write_mode) ? 0 : passStringToWasm0(write_mode, wasm.__wbindgen_export, wasm.__wbindgen_export2);
112
+ var len2 = WASM_VECTOR_LEN;
113
+ const ret = wasm.workerdb_create(ptr0, len0, isLikeNone(hot_threshold) ? 0x100000001 : (hot_threshold) >>> 0, ptr1, len1, ptr2, len2, isLikeNone(rate_limit_requests) ? 0x100000001 : (rate_limit_requests) >>> 0, !isLikeNone(rate_limit_window), isLikeNone(rate_limit_window) ? BigInt(0) : rate_limit_window, isLikeNone(max_body_size) ? 0x100000001 : (max_body_size) >>> 0);
98
114
  return takeObject(ret);
99
115
  }
100
116
  /**
@@ -144,11 +160,10 @@ export class WorkerDb {
144
160
  }
145
161
  }
146
162
  if (Symbol.dispose) WorkerDb.prototype[Symbol.dispose] = WorkerDb.prototype.free;
147
-
148
163
  function __wbg_get_imports() {
149
164
  const import0 = {
150
165
  __proto__: null,
151
- __wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
166
+ __wbg_Error_960c155d3d49e4c2: function(arg0, arg1) {
152
167
  const ret = Error(getStringFromWasm0(arg0, arg1));
153
168
  return addHeapObject(ret);
154
169
  },
@@ -159,64 +174,64 @@ function __wbg_get_imports() {
159
174
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
160
175
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
161
176
  },
162
- __wbg___wbindgen_bigint_get_as_i64_447a76b5c6ef7bda: function(arg0, arg1) {
177
+ __wbg___wbindgen_bigint_get_as_i64_3d3aba5d616c6a51: function(arg0, arg1) {
163
178
  const v = getObject(arg1);
164
179
  const ret = typeof(v) === 'bigint' ? v : undefined;
165
180
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
166
181
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
167
182
  },
168
- __wbg___wbindgen_boolean_get_c0f3f60bac5a78d1: function(arg0) {
183
+ __wbg___wbindgen_boolean_get_6ea149f0a8dcc5ff: function(arg0) {
169
184
  const v = getObject(arg0);
170
185
  const ret = typeof(v) === 'boolean' ? v : undefined;
171
186
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
172
187
  },
173
- __wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
188
+ __wbg___wbindgen_debug_string_ab4b34d23d6778bd: function(arg0, arg1) {
174
189
  const ret = debugString(getObject(arg1));
175
190
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
176
191
  const len1 = WASM_VECTOR_LEN;
177
192
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
178
193
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
179
194
  },
180
- __wbg___wbindgen_in_41dbb8413020e076: function(arg0, arg1) {
195
+ __wbg___wbindgen_in_a5d8b22e52b24dd1: function(arg0, arg1) {
181
196
  const ret = getObject(arg0) in getObject(arg1);
182
197
  return ret;
183
198
  },
184
- __wbg___wbindgen_is_bigint_e2141d4f045b7eda: function(arg0) {
199
+ __wbg___wbindgen_is_bigint_ec25c7f91b4d9e93: function(arg0) {
185
200
  const ret = typeof(getObject(arg0)) === 'bigint';
186
201
  return ret;
187
202
  },
188
- __wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
203
+ __wbg___wbindgen_is_function_3baa9db1a987f47d: function(arg0) {
189
204
  const ret = typeof(getObject(arg0)) === 'function';
190
205
  return ret;
191
206
  },
192
- __wbg___wbindgen_is_object_781bc9f159099513: function(arg0) {
207
+ __wbg___wbindgen_is_object_63322ec0cd6ea4ef: function(arg0) {
193
208
  const val = getObject(arg0);
194
209
  const ret = typeof(val) === 'object' && val !== null;
195
210
  return ret;
196
211
  },
197
- __wbg___wbindgen_is_string_7ef6b97b02428fae: function(arg0) {
212
+ __wbg___wbindgen_is_string_6df3bf7ef1164ed3: function(arg0) {
198
213
  const ret = typeof(getObject(arg0)) === 'string';
199
214
  return ret;
200
215
  },
201
- __wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
216
+ __wbg___wbindgen_is_undefined_29a43b4d42920abd: function(arg0) {
202
217
  const ret = getObject(arg0) === undefined;
203
218
  return ret;
204
219
  },
205
- __wbg___wbindgen_jsval_eq_ee31bfad3e536463: function(arg0, arg1) {
220
+ __wbg___wbindgen_jsval_eq_d3465d8a07697228: function(arg0, arg1) {
206
221
  const ret = getObject(arg0) === getObject(arg1);
207
222
  return ret;
208
223
  },
209
- __wbg___wbindgen_jsval_loose_eq_5bcc3bed3c69e72b: function(arg0, arg1) {
224
+ __wbg___wbindgen_jsval_loose_eq_cac3565e89b4134c: function(arg0, arg1) {
210
225
  const ret = getObject(arg0) == getObject(arg1);
211
226
  return ret;
212
227
  },
213
- __wbg___wbindgen_number_get_34bb9d9dcfa21373: function(arg0, arg1) {
228
+ __wbg___wbindgen_number_get_c7f42aed0525c451: function(arg0, arg1) {
214
229
  const obj = getObject(arg1);
215
230
  const ret = typeof(obj) === 'number' ? obj : undefined;
216
231
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
217
232
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
218
233
  },
219
- __wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
234
+ __wbg___wbindgen_string_get_7ed5322991caaec5: function(arg0, arg1) {
220
235
  const obj = getObject(arg1);
221
236
  const ret = typeof(obj) === 'string' ? obj : undefined;
222
237
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
@@ -224,36 +239,40 @@ function __wbg_get_imports() {
224
239
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
225
240
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
226
241
  },
227
- __wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
242
+ __wbg___wbindgen_throw_6b64449b9b9ed33c: function(arg0, arg1) {
228
243
  throw new Error(getStringFromWasm0(arg0, arg1));
229
244
  },
230
- __wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
245
+ __wbg__wbg_cb_unref_b46c9b5a9f08ec37: function(arg0) {
231
246
  getObject(arg0)._wbg_cb_unref();
232
247
  },
233
- __wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
234
- const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
248
+ __wbg_call_14b169f759b26747: function() { return handleError(function (arg0, arg1) {
249
+ const ret = getObject(arg0).call(getObject(arg1));
235
250
  return addHeapObject(ret);
236
251
  }, arguments); },
237
- __wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
238
- const ret = getObject(arg0).call(getObject(arg1));
252
+ __wbg_call_a24592a6f349a97e: function() { return handleError(function (arg0, arg1, arg2) {
253
+ const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
239
254
  return addHeapObject(ret);
240
255
  }, arguments); },
241
- __wbg_close_bea86eef0f71dd9b: function(arg0) {
256
+ __wbg_close_89514f591ad64f3a: function(arg0) {
242
257
  getObject(arg0).close();
243
258
  },
244
- __wbg_createSyncAccessHandle_b7143219a305a2ce: function(arg0) {
259
+ __wbg_createSyncAccessHandle_211f4b5a229b77e0: function(arg0) {
245
260
  const ret = getObject(arg0).createSyncAccessHandle();
246
261
  return addHeapObject(ret);
247
262
  },
248
- __wbg_done_08ce71ee07e3bd17: function(arg0) {
263
+ __wbg_crypto_38df2bab126b63dc: function(arg0) {
264
+ const ret = getObject(arg0).crypto;
265
+ return addHeapObject(ret);
266
+ },
267
+ __wbg_done_9158f7cc8751ba32: function(arg0) {
249
268
  const ret = getObject(arg0).done;
250
269
  return ret;
251
270
  },
252
- __wbg_entries_e8a20ff8c9757101: function(arg0) {
271
+ __wbg_entries_e0b73aa8571ddb56: function(arg0) {
253
272
  const ret = Object.entries(getObject(arg0));
254
273
  return addHeapObject(ret);
255
274
  },
256
- __wbg_error_8d9a8e04cd1d3588: function(arg0) {
275
+ __wbg_error_2001591ad2463697: function(arg0) {
257
276
  console.error(getObject(arg0));
258
277
  },
259
278
  __wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
@@ -267,37 +286,40 @@ function __wbg_get_imports() {
267
286
  wasm.__wbindgen_export4(deferred0_0, deferred0_1, 1);
268
287
  }
269
288
  },
270
- __wbg_flush_1eca046e0ff7c399: function() { return handleError(function (arg0) {
289
+ __wbg_flush_1e50544011308045: function() { return handleError(function (arg0) {
271
290
  getObject(arg0).flush();
272
291
  }, arguments); },
273
- __wbg_getDirectory_2406d369de179ff0: function(arg0) {
292
+ __wbg_getDirectory_3b3e1fae9108e816: function(arg0) {
274
293
  const ret = getObject(arg0).getDirectory();
275
294
  return addHeapObject(ret);
276
295
  },
277
- __wbg_getFileHandle_b85805519dc63efa: function(arg0, arg1, arg2, arg3) {
296
+ __wbg_getFileHandle_c70a158776f61068: function(arg0, arg1, arg2, arg3) {
278
297
  const ret = getObject(arg0).getFileHandle(getStringFromWasm0(arg1, arg2), getObject(arg3));
279
298
  return addHeapObject(ret);
280
299
  },
281
- __wbg_getRandomValues_a1cf2e70b003a59d: function() { return handleError(function (arg0, arg1) {
300
+ __wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
301
+ getObject(arg0).getRandomValues(getObject(arg1));
302
+ }, arguments); },
303
+ __wbg_getRandomValues_ef12552bf5acd2fe: function() { return handleError(function (arg0, arg1) {
282
304
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
283
305
  }, arguments); },
284
- __wbg_getSize_0a16c5e2524d34aa: function() { return handleError(function (arg0) {
306
+ __wbg_getSize_9f496dd0386d6839: function() { return handleError(function (arg0) {
285
307
  const ret = getObject(arg0).getSize();
286
308
  return ret;
287
309
  }, arguments); },
288
- __wbg_get_326e41e095fb2575: function() { return handleError(function (arg0, arg1) {
310
+ __wbg_get_1affdbdd5573b16a: function() { return handleError(function (arg0, arg1) {
289
311
  const ret = Reflect.get(getObject(arg0), getObject(arg1));
290
312
  return addHeapObject(ret);
291
313
  }, arguments); },
292
- __wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
314
+ __wbg_get_8360291721e2339f: function(arg0, arg1) {
293
315
  const ret = getObject(arg0)[arg1 >>> 0];
294
316
  return addHeapObject(ret);
295
317
  },
296
- __wbg_get_unchecked_329cfe50afab7352: function(arg0, arg1) {
318
+ __wbg_get_unchecked_17f53dad852b9588: function(arg0, arg1) {
297
319
  const ret = getObject(arg0)[arg1 >>> 0];
298
320
  return addHeapObject(ret);
299
321
  },
300
- __wbg_instanceof_ArrayBuffer_101e2bf31071a9f6: function(arg0) {
322
+ __wbg_instanceof_ArrayBuffer_7c8433c6ed14ffe3: function(arg0) {
301
323
  let result;
302
324
  try {
303
325
  result = getObject(arg0) instanceof ArrayBuffer;
@@ -307,7 +329,7 @@ function __wbg_get_imports() {
307
329
  const ret = result;
308
330
  return ret;
309
331
  },
310
- __wbg_instanceof_Map_f194b366846aca0c: function(arg0) {
332
+ __wbg_instanceof_Map_1b76fd4635be43eb: function(arg0) {
311
333
  let result;
312
334
  try {
313
335
  result = getObject(arg0) instanceof Map;
@@ -317,7 +339,7 @@ function __wbg_get_imports() {
317
339
  const ret = result;
318
340
  return ret;
319
341
  },
320
- __wbg_instanceof_Uint8Array_740438561a5b956d: function(arg0) {
342
+ __wbg_instanceof_Uint8Array_152ba1f289edcf3f: function(arg0) {
321
343
  let result;
322
344
  try {
323
345
  result = getObject(arg0) instanceof Uint8Array;
@@ -327,7 +349,7 @@ function __wbg_get_imports() {
327
349
  const ret = result;
328
350
  return ret;
329
351
  },
330
- __wbg_instanceof_WorkerGlobalScope_de6976d00cb213c6: function(arg0) {
352
+ __wbg_instanceof_WorkerGlobalScope_47026c798529a771: function(arg0) {
331
353
  let result;
332
354
  try {
333
355
  result = getObject(arg0) instanceof WorkerGlobalScope;
@@ -337,61 +359,65 @@ function __wbg_get_imports() {
337
359
  const ret = result;
338
360
  return ret;
339
361
  },
340
- __wbg_isArray_33b91feb269ff46e: function(arg0) {
362
+ __wbg_isArray_c3109d14ffc06469: function(arg0) {
341
363
  const ret = Array.isArray(getObject(arg0));
342
364
  return ret;
343
365
  },
344
- __wbg_isSafeInteger_ecd6a7f9c3e053cd: function(arg0) {
366
+ __wbg_isSafeInteger_4fc213d1989d6d2a: function(arg0) {
345
367
  const ret = Number.isSafeInteger(getObject(arg0));
346
368
  return ret;
347
369
  },
348
- __wbg_iterator_d8f549ec8fb061b1: function() {
370
+ __wbg_iterator_013bc09ec998c2a7: function() {
349
371
  const ret = Symbol.iterator;
350
372
  return addHeapObject(ret);
351
373
  },
352
- __wbg_length_b3416cf66a5452c8: function(arg0) {
374
+ __wbg_length_3d4ecd04bd8d22f1: function(arg0) {
353
375
  const ret = getObject(arg0).length;
354
376
  return ret;
355
377
  },
356
- __wbg_length_ea16607d7b61445b: function(arg0) {
378
+ __wbg_length_9f1775224cf1d815: function(arg0) {
357
379
  const ret = getObject(arg0).length;
358
380
  return ret;
359
381
  },
360
- __wbg_log_524eedafa26daa59: function(arg0) {
382
+ __wbg_log_7e1aa9064a1dbdbd: function(arg0) {
361
383
  console.log(getObject(arg0));
362
384
  },
363
- __wbg_navigator_583ffd4fc14c0f7a: function(arg0) {
385
+ __wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
386
+ const ret = getObject(arg0).msCrypto;
387
+ return addHeapObject(ret);
388
+ },
389
+ __wbg_navigator_353318de944ca7f6: function(arg0) {
364
390
  const ret = getObject(arg0).navigator;
365
391
  return addHeapObject(ret);
366
392
  },
393
+ __wbg_new_0c7403db6e782f19: function(arg0) {
394
+ const ret = new Uint8Array(getObject(arg0));
395
+ return addHeapObject(ret);
396
+ },
367
397
  __wbg_new_227d7c05414eb861: function() {
368
398
  const ret = new Error();
369
399
  return addHeapObject(ret);
370
400
  },
371
- __wbg_new_49d5571bd3f0c4d4: function() {
401
+ __wbg_new_34d45cc8e36aaead: function() {
372
402
  const ret = new Map();
373
403
  return addHeapObject(ret);
374
404
  },
375
- __wbg_new_5f486cdf45a04d78: function(arg0) {
376
- const ret = new Uint8Array(getObject(arg0));
377
- return addHeapObject(ret);
378
- },
379
- __wbg_new_a70fbab9066b301f: function() {
405
+ __wbg_new_682678e2f47e32bc: function() {
380
406
  const ret = new Array();
381
407
  return addHeapObject(ret);
382
408
  },
383
- __wbg_new_ab79df5bd7c26067: function() {
409
+ __wbg_new_aa8d0fa9762c29bd: function() {
384
410
  const ret = new Object();
385
411
  return addHeapObject(ret);
386
412
  },
387
- __wbg_new_typed_aaaeaf29cf802876: function(arg0, arg1) {
413
+ __wbg_new_typed_323f37fd55ab048d: function(arg0, arg1) {
388
414
  try {
389
415
  var state0 = {a: arg0, b: arg1};
390
416
  var cb0 = (arg0, arg1) => {
391
417
  const a = state0.a;
392
418
  state0.a = 0;
393
419
  try {
394
- return __wasm_bindgen_func_elem_3766(a, state0.b, arg0, arg1);
420
+ return __wasm_bindgen_func_elem_4065(a, state0.b, arg0, arg1);
395
421
  } finally {
396
422
  state0.a = a;
397
423
  }
@@ -399,25 +425,33 @@ function __wbg_get_imports() {
399
425
  const ret = new Promise(cb0);
400
426
  return addHeapObject(ret);
401
427
  } finally {
402
- state0.a = state0.b = 0;
428
+ state0.a = 0;
403
429
  }
404
430
  },
405
- __wbg_next_11b99ee6237339e3: function() { return handleError(function (arg0) {
431
+ __wbg_new_with_length_8c854e41ea4dae9b: function(arg0) {
432
+ const ret = new Uint8Array(arg0 >>> 0);
433
+ return addHeapObject(ret);
434
+ },
435
+ __wbg_next_0340c4ae324393c3: function() { return handleError(function (arg0) {
406
436
  const ret = getObject(arg0).next();
407
437
  return addHeapObject(ret);
408
438
  }, arguments); },
409
- __wbg_next_e01a967809d1aa68: function(arg0) {
439
+ __wbg_next_7646edaa39458ef7: function(arg0) {
410
440
  const ret = getObject(arg0).next;
411
441
  return addHeapObject(ret);
412
442
  },
413
- __wbg_now_16f0c993d5dd6c27: function() {
414
- const ret = Date.now();
415
- return ret;
443
+ __wbg_node_84ea875411254db1: function(arg0) {
444
+ const ret = getObject(arg0).node;
445
+ return addHeapObject(ret);
416
446
  },
417
- __wbg_now_ad1121946ba97ea0: function() { return handleError(function () {
447
+ __wbg_now_0cce8c6798af1870: function() { return handleError(function () {
418
448
  const ret = Date.now();
419
449
  return ret;
420
450
  }, arguments); },
451
+ __wbg_now_a9b7df1cbee90986: function() {
452
+ const ret = Date.now();
453
+ return ret;
454
+ },
421
455
  __wbg_now_e7c6795a7f81e10f: function(arg0) {
422
456
  const ret = getObject(arg0).now();
423
457
  return ret;
@@ -426,40 +460,51 @@ function __wbg_get_imports() {
426
460
  const ret = getObject(arg0).performance;
427
461
  return addHeapObject(ret);
428
462
  },
429
- __wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
463
+ __wbg_process_44c7a14e11e9f69e: function(arg0) {
464
+ const ret = getObject(arg0).process;
465
+ return addHeapObject(ret);
466
+ },
467
+ __wbg_prototypesetcall_a6b02eb00b0f4ce2: function(arg0, arg1, arg2) {
430
468
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
431
469
  },
432
- __wbg_queueMicrotask_0c399741342fb10f: function(arg0) {
470
+ __wbg_queueMicrotask_5d15a957e6aa920e: function(arg0) {
471
+ queueMicrotask(getObject(arg0));
472
+ },
473
+ __wbg_queueMicrotask_f8819e5ffc402f36: function(arg0) {
433
474
  const ret = getObject(arg0).queueMicrotask;
434
475
  return addHeapObject(ret);
435
476
  },
436
- __wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
437
- queueMicrotask(getObject(arg0));
438
- },
439
- __wbg_read_0285869b4fd131af: function() { return handleError(function (arg0, arg1, arg2, arg3) {
477
+ __wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
478
+ getObject(arg0).randomFillSync(takeObject(arg1));
479
+ }, arguments); },
480
+ __wbg_read_55aa7bd0271fb8d7: function() { return handleError(function (arg0, arg1, arg2, arg3) {
440
481
  const ret = getObject(arg0).read(getArrayU8FromWasm0(arg1, arg2), getObject(arg3));
441
482
  return ret;
442
483
  }, arguments); },
443
- __wbg_resolve_ae8d83246e5bcc12: function(arg0) {
484
+ __wbg_require_b4edbdcf3e2a1ef0: function() { return handleError(function () {
485
+ const ret = module.require;
486
+ return addHeapObject(ret);
487
+ }, arguments); },
488
+ __wbg_resolve_e6c466bc1052f16c: function(arg0) {
444
489
  const ret = Promise.resolve(getObject(arg0));
445
490
  return addHeapObject(ret);
446
491
  },
447
- __wbg_set_282384002438957f: function(arg0, arg1, arg2) {
492
+ __wbg_set_3bf1de9fab0cd644: function(arg0, arg1, arg2) {
448
493
  getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
449
494
  },
450
495
  __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
451
496
  getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
452
497
  },
453
- __wbg_set_at_e227be75df7f9abf: function(arg0, arg1) {
498
+ __wbg_set_at_741e1ca8118d2e76: function(arg0, arg1) {
454
499
  getObject(arg0).at = arg1;
455
500
  },
456
- __wbg_set_bf7251625df30a02: function(arg0, arg1, arg2) {
501
+ __wbg_set_create_6b7aba35286e014a: function(arg0, arg1) {
502
+ getObject(arg0).create = arg1 !== 0;
503
+ },
504
+ __wbg_set_fde2cec06c23692b: function(arg0, arg1, arg2) {
457
505
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
458
506
  return addHeapObject(ret);
459
507
  },
460
- __wbg_set_create_ef897736206a6f05: function(arg0, arg1) {
461
- getObject(arg0).create = arg1 !== 0;
462
- },
463
508
  __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
464
509
  const ret = getObject(arg1).stack;
465
510
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
@@ -467,52 +512,60 @@ function __wbg_get_imports() {
467
512
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
468
513
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
469
514
  },
470
- __wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
515
+ __wbg_static_accessor_GLOBAL_8cfadc87a297ca02: function() {
471
516
  const ret = typeof global === 'undefined' ? null : global;
472
517
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
473
518
  },
474
- __wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913: function() {
519
+ __wbg_static_accessor_GLOBAL_THIS_602256ae5c8f42cf: function() {
475
520
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
476
521
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
477
522
  },
478
- __wbg_static_accessor_SELF_f207c857566db248: function() {
523
+ __wbg_static_accessor_SELF_e445c1c7484aecc3: function() {
479
524
  const ret = typeof self === 'undefined' ? null : self;
480
525
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
481
526
  },
482
- __wbg_static_accessor_WINDOW_bb9f1ba69d61b386: function() {
527
+ __wbg_static_accessor_WINDOW_f20e8576ef1e0f17: function() {
483
528
  const ret = typeof window === 'undefined' ? null : window;
484
529
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
485
530
  },
486
- __wbg_storage_8d917976d6753ee0: function(arg0) {
531
+ __wbg_storage_eecab26eeb654cf9: function(arg0) {
487
532
  const ret = getObject(arg0).storage;
488
533
  return addHeapObject(ret);
489
534
  },
490
- __wbg_then_098abe61755d12f6: function(arg0, arg1) {
491
- const ret = getObject(arg0).then(getObject(arg1));
535
+ __wbg_subarray_f8ca46a25b1f5e0d: function(arg0, arg1, arg2) {
536
+ const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
492
537
  return addHeapObject(ret);
493
538
  },
494
- __wbg_then_9e335f6dd892bc11: function(arg0, arg1, arg2) {
539
+ __wbg_then_792e0c862b060889: function(arg0, arg1, arg2) {
495
540
  const ret = getObject(arg0).then(getObject(arg1), getObject(arg2));
496
541
  return addHeapObject(ret);
497
542
  },
498
- __wbg_truncate_af8ac1613ab66393: function() { return handleError(function (arg0, arg1) {
543
+ __wbg_then_8e16ee11f05e4827: function(arg0, arg1) {
544
+ const ret = getObject(arg0).then(getObject(arg1));
545
+ return addHeapObject(ret);
546
+ },
547
+ __wbg_truncate_9ce7bc1afc8c7cbe: function() { return handleError(function (arg0, arg1) {
499
548
  getObject(arg0).truncate(arg1);
500
549
  }, arguments); },
501
- __wbg_value_21fc78aab0322612: function(arg0) {
550
+ __wbg_value_ee3a06f4579184fa: function(arg0) {
502
551
  const ret = getObject(arg0).value;
503
552
  return addHeapObject(ret);
504
553
  },
554
+ __wbg_versions_276b2795b1c6a219: function(arg0) {
555
+ const ret = getObject(arg0).versions;
556
+ return addHeapObject(ret);
557
+ },
505
558
  __wbg_workerdb_new: function(arg0) {
506
559
  const ret = WorkerDb.__wrap(arg0);
507
560
  return addHeapObject(ret);
508
561
  },
509
- __wbg_write_57c477a82b886339: function() { return handleError(function (arg0, arg1, arg2, arg3) {
562
+ __wbg_write_bf048d2298276d16: function() { return handleError(function (arg0, arg1, arg2, arg3) {
510
563
  const ret = getObject(arg0).write(getArrayU8FromWasm0(arg1, arg2), getObject(arg3));
511
564
  return ret;
512
565
  }, arguments); },
513
566
  __wbindgen_cast_0000000000000001: function(arg0, arg1) {
514
- // Cast intrinsic for `Closure(Closure { dtor_idx: 674, function: Function { arguments: [Externref], shim_idx: 687, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
515
- const ret = makeMutClosure(arg0, arg1, wasm.__wasm_bindgen_func_elem_3672, __wasm_bindgen_func_elem_3755);
567
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 733, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
568
+ const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_4053);
516
569
  return addHeapObject(ret);
517
570
  },
518
571
  __wbindgen_cast_0000000000000002: function(arg0) {
@@ -526,11 +579,16 @@ function __wbg_get_imports() {
526
579
  return addHeapObject(ret);
527
580
  },
528
581
  __wbindgen_cast_0000000000000004: function(arg0, arg1) {
582
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
583
+ const ret = getArrayU8FromWasm0(arg0, arg1);
584
+ return addHeapObject(ret);
585
+ },
586
+ __wbindgen_cast_0000000000000005: function(arg0, arg1) {
529
587
  // Cast intrinsic for `Ref(String) -> Externref`.
530
588
  const ret = getStringFromWasm0(arg0, arg1);
531
589
  return addHeapObject(ret);
532
590
  },
533
- __wbindgen_cast_0000000000000005: function(arg0) {
591
+ __wbindgen_cast_0000000000000006: function(arg0) {
534
592
  // Cast intrinsic for `U64 -> Externref`.
535
593
  const ret = BigInt.asUintN(64, arg0);
536
594
  return addHeapObject(ret);
@@ -549,10 +607,10 @@ function __wbg_get_imports() {
549
607
  };
550
608
  }
551
609
 
552
- function __wasm_bindgen_func_elem_3755(arg0, arg1, arg2) {
610
+ function __wasm_bindgen_func_elem_4053(arg0, arg1, arg2) {
553
611
  try {
554
612
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
555
- wasm.__wasm_bindgen_func_elem_3755(retptr, arg0, arg1, addHeapObject(arg2));
613
+ wasm.__wasm_bindgen_func_elem_4053(retptr, arg0, arg1, addHeapObject(arg2));
556
614
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
557
615
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
558
616
  if (r1) {
@@ -563,8 +621,8 @@ function __wasm_bindgen_func_elem_3755(arg0, arg1, arg2) {
563
621
  }
564
622
  }
565
623
 
566
- function __wasm_bindgen_func_elem_3766(arg0, arg1, arg2, arg3) {
567
- wasm.__wasm_bindgen_func_elem_3766(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
624
+ function __wasm_bindgen_func_elem_4065(arg0, arg1, arg2, arg3) {
625
+ wasm.__wasm_bindgen_func_elem_4065(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
568
626
  }
569
627
 
570
628
  const WorkerDbFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -582,7 +640,7 @@ function addHeapObject(obj) {
582
640
 
583
641
  const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
584
642
  ? { register: () => {}, unregister: () => {} }
585
- : new FinalizationRegistry(state => state.dtor(state.a, state.b));
643
+ : new FinalizationRegistry(state => wasm.__wbindgen_export5(state.a, state.b));
586
644
 
587
645
  function debugString(val) {
588
646
  // primitive types
@@ -700,8 +758,8 @@ function isLikeNone(x) {
700
758
  return x === undefined || x === null;
701
759
  }
702
760
 
703
- function makeMutClosure(arg0, arg1, dtor, f) {
704
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
761
+ function makeMutClosure(arg0, arg1, f) {
762
+ const state = { a: arg0, b: arg1, cnt: 1 };
705
763
  const real = (...args) => {
706
764
 
707
765
  // First up with a closure we increment the internal reference
@@ -719,7 +777,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
719
777
  };
720
778
  real._wbg_cb_unref = () => {
721
779
  if (--state.cnt === 0) {
722
- state.dtor(state.a, state.b);
780
+ wasm.__wbindgen_export5(state.a, state.b);
723
781
  state.a = 0;
724
782
  CLOSURE_DTORS.unregister(state);
725
783
  }
Binary file
@@ -3,14 +3,14 @@
3
3
  export const memory: WebAssembly.Memory;
4
4
  export const __wbg_workerdb_free: (a: number, b: number) => void;
5
5
  export const workerdb_analytics: (a: number, b: number, c: number, d: number) => void;
6
- export const workerdb_create: (a: number, b: number) => number;
6
+ export const workerdb_create: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: bigint, k: number) => number;
7
7
  export const workerdb_handle_message: (a: number, b: number, c: number) => void;
8
8
  export const workerdb_subscribe: (a: number, b: number) => void;
9
- export const __wasm_bindgen_func_elem_3672: (a: number, b: number) => void;
10
- export const __wasm_bindgen_func_elem_3755: (a: number, b: number, c: number, d: number) => void;
11
- export const __wasm_bindgen_func_elem_3766: (a: number, b: number, c: number, d: number) => void;
9
+ export const __wasm_bindgen_func_elem_4053: (a: number, b: number, c: number, d: number) => void;
10
+ export const __wasm_bindgen_func_elem_4065: (a: number, b: number, c: number, d: number) => void;
12
11
  export const __wbindgen_export: (a: number, b: number) => number;
13
12
  export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
14
13
  export const __wbindgen_export3: (a: number) => void;
15
14
  export const __wbindgen_export4: (a: number, b: number, c: number) => void;
15
+ export const __wbindgen_export5: (a: number, b: number) => void;
16
16
  export const __wbindgen_add_to_stack_pointer: (a: number) => number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moltendb-web/core",
3
- "version": "1.4.2",
3
+ "version": "1.5.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>",