loro-crdt 1.13.0 → 1.13.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.
@@ -1,10 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- /**
4
- * Enable debug info of Loro
5
- */
6
- export function setDebug(): void;
7
- export function callPendingEvents(): void;
8
3
  /**
9
4
  * Decode the metadata of the import blob.
10
5
  *
@@ -18,13 +13,13 @@ export function callPendingEvents(): void;
18
13
  * - changeNum
19
14
  */
20
15
  export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
21
- export function run(): void;
22
- export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
23
- export function decodeFrontiers(bytes: Uint8Array): { peer: PeerID, counter: number }[];
24
16
  /**
25
17
  * Get the version of Loro
26
18
  */
27
19
  export function LORO_VERSION(): string;
20
+ export function run(): void;
21
+ export function decodeFrontiers(bytes: Uint8Array): { peer: PeerID, counter: number }[];
22
+ export function callPendingEvents(): void;
28
23
  /**
29
24
  * Redacts sensitive content in JSON updates within the specified version range.
30
25
  *
@@ -45,6 +40,11 @@ export function LORO_VERSION(): string;
45
40
  * @returns {Object} The redacted JSON updates
46
41
  */
47
42
  export function redactJsonUpdates(json_updates: string | JsonSchema, version_range: any): JsonSchema;
43
+ export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
44
+ /**
45
+ * Enable debug info of Loro
46
+ */
47
+ export function setDebug(): void;
48
48
 
49
49
  /**
50
50
  * Container types supported by loro.
package/browser/index.js CHANGED
@@ -410,7 +410,7 @@ export {
410
410
  __wbg_entries_3265d4158b33e5dc,
411
411
  __wbg_entries_c8a90a7ed73e84ce,
412
412
  __wbg_error_7534b8e9a36f1ab4,
413
- __wbg_error_f10209f9aa237eba,
413
+ __wbg_error_eddb9b302feac7d3,
414
414
  __wbg_from_2a5d3e218e67aa85,
415
415
  __wbg_getOwnPropertySymbols_97eebed6fe6e08be,
416
416
  __wbg_getRandomValues_b8f5dbd5f3995a9e,
@@ -428,8 +428,8 @@ export {
428
428
  __wbg_length_a446193dc22c12f8,
429
429
  __wbg_length_e2d2a49132c1b256,
430
430
  __wbg_log_0cc1b7768397bcfe,
431
- __wbg_log_173d9edf1ec170a0,
432
431
  __wbg_log_cb9e190acc5753fb,
432
+ __wbg_log_d8b98f6c2e2f68e5,
433
433
  __wbg_lorocounter_new,
434
434
  __wbg_lorolist_new,
435
435
  __wbg_loromap_new,
@@ -452,7 +452,7 @@ export {
452
452
  __wbg_next_25feadfc0913fea9,
453
453
  __wbg_next_6574e1a8a62d1055,
454
454
  __wbg_node_905d3e251edff8a2,
455
- __wbg_now_3f4e95457006a877,
455
+ __wbg_now_d62d4d41f9f53a76,
456
456
  __wbg_ownKeys_3930041068756f1f,
457
457
  __wbg_process_dc0fbacc7c1c06f7,
458
458
  __wbg_push_737cfc8c1432c2c6,
@@ -476,15 +476,15 @@ export {
476
476
  __wbg_value_cd1ffa7b1ab794f1,
477
477
  __wbg_versions_c01dfd4722a88165,
478
478
  __wbg_versionvector_new,
479
- __wbg_warn_df6c5f8c3202ef75,
479
+ __wbg_warn_a198177f86cf58b2,
480
480
  __wbindgen_as_number,
481
481
  __wbindgen_bigint_from_i64,
482
482
  __wbindgen_bigint_from_u64,
483
483
  __wbindgen_bigint_get_as_i64,
484
484
  __wbindgen_boolean_get,
485
485
  __wbindgen_cb_drop,
486
- __wbindgen_closure_wrapper332,
487
- __wbindgen_closure_wrapper334,
486
+ __wbindgen_closure_wrapper331,
487
+ __wbindgen_closure_wrapper333,
488
488
  __wbindgen_debug_string,
489
489
  __wbindgen_error_new,
490
490
  __wbindgen_in,
@@ -1,10 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- /**
4
- * Enable debug info of Loro
5
- */
6
- export function setDebug(): void;
7
- export function callPendingEvents(): void;
8
3
  /**
9
4
  * Decode the metadata of the import blob.
10
5
  *
@@ -18,13 +13,13 @@ export function callPendingEvents(): void;
18
13
  * - changeNum
19
14
  */
20
15
  export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
21
- export function run(): void;
22
- export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
23
- export function decodeFrontiers(bytes: Uint8Array): { peer: PeerID, counter: number }[];
24
16
  /**
25
17
  * Get the version of Loro
26
18
  */
27
19
  export function LORO_VERSION(): string;
20
+ export function run(): void;
21
+ export function decodeFrontiers(bytes: Uint8Array): { peer: PeerID, counter: number }[];
22
+ export function callPendingEvents(): void;
28
23
  /**
29
24
  * Redacts sensitive content in JSON updates within the specified version range.
30
25
  *
@@ -45,6 +40,11 @@ export function LORO_VERSION(): string;
45
40
  * @returns {Object} The redacted JSON updates
46
41
  */
47
42
  export function redactJsonUpdates(json_updates: string | JsonSchema, version_range: any): JsonSchema;
43
+ export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
44
+ /**
45
+ * Enable debug info of Loro
46
+ */
47
+ export function setDebug(): void;
48
48
 
49
49
  /**
50
50
  * Container types supported by loro.
@@ -29,7 +29,7 @@ import {
29
29
  __wbg_entries_3265d4158b33e5dc,
30
30
  __wbg_entries_c8a90a7ed73e84ce,
31
31
  __wbg_error_7534b8e9a36f1ab4,
32
- __wbg_error_f10209f9aa237eba,
32
+ __wbg_error_eddb9b302feac7d3,
33
33
  __wbg_from_2a5d3e218e67aa85,
34
34
  __wbg_getOwnPropertySymbols_97eebed6fe6e08be,
35
35
  __wbg_getRandomValues_b8f5dbd5f3995a9e,
@@ -47,8 +47,8 @@ import {
47
47
  __wbg_length_a446193dc22c12f8,
48
48
  __wbg_length_e2d2a49132c1b256,
49
49
  __wbg_log_0cc1b7768397bcfe,
50
- __wbg_log_173d9edf1ec170a0,
51
50
  __wbg_log_cb9e190acc5753fb,
51
+ __wbg_log_d8b98f6c2e2f68e5,
52
52
  __wbg_lorocounter_new,
53
53
  __wbg_lorolist_new,
54
54
  __wbg_loromap_new,
@@ -71,7 +71,7 @@ import {
71
71
  __wbg_next_25feadfc0913fea9,
72
72
  __wbg_next_6574e1a8a62d1055,
73
73
  __wbg_node_905d3e251edff8a2,
74
- __wbg_now_3f4e95457006a877,
74
+ __wbg_now_d62d4d41f9f53a76,
75
75
  __wbg_ownKeys_3930041068756f1f,
76
76
  __wbg_process_dc0fbacc7c1c06f7,
77
77
  __wbg_push_737cfc8c1432c2c6,
@@ -95,15 +95,15 @@ import {
95
95
  __wbg_value_cd1ffa7b1ab794f1,
96
96
  __wbg_versions_c01dfd4722a88165,
97
97
  __wbg_versionvector_new,
98
- __wbg_warn_df6c5f8c3202ef75,
98
+ __wbg_warn_a198177f86cf58b2,
99
99
  __wbindgen_as_number,
100
100
  __wbindgen_bigint_from_i64,
101
101
  __wbindgen_bigint_from_u64,
102
102
  __wbindgen_bigint_get_as_i64,
103
103
  __wbindgen_boolean_get,
104
104
  __wbindgen_cb_drop,
105
- __wbindgen_closure_wrapper332,
106
- __wbindgen_closure_wrapper334,
105
+ __wbindgen_closure_wrapper331,
106
+ __wbindgen_closure_wrapper333,
107
107
  __wbindgen_debug_string,
108
108
  __wbindgen_error_new,
109
109
  __wbindgen_in,
@@ -170,7 +170,7 @@ const imports = {
170
170
  __wbg_entries_3265d4158b33e5dc,
171
171
  __wbg_entries_c8a90a7ed73e84ce,
172
172
  __wbg_error_7534b8e9a36f1ab4,
173
- __wbg_error_f10209f9aa237eba,
173
+ __wbg_error_eddb9b302feac7d3,
174
174
  __wbg_from_2a5d3e218e67aa85,
175
175
  __wbg_getOwnPropertySymbols_97eebed6fe6e08be,
176
176
  __wbg_getRandomValues_b8f5dbd5f3995a9e,
@@ -188,8 +188,8 @@ const imports = {
188
188
  __wbg_length_a446193dc22c12f8,
189
189
  __wbg_length_e2d2a49132c1b256,
190
190
  __wbg_log_0cc1b7768397bcfe,
191
- __wbg_log_173d9edf1ec170a0,
192
191
  __wbg_log_cb9e190acc5753fb,
192
+ __wbg_log_d8b98f6c2e2f68e5,
193
193
  __wbg_lorocounter_new,
194
194
  __wbg_lorolist_new,
195
195
  __wbg_loromap_new,
@@ -212,7 +212,7 @@ const imports = {
212
212
  __wbg_next_25feadfc0913fea9,
213
213
  __wbg_next_6574e1a8a62d1055,
214
214
  __wbg_node_905d3e251edff8a2,
215
- __wbg_now_3f4e95457006a877,
215
+ __wbg_now_d62d4d41f9f53a76,
216
216
  __wbg_ownKeys_3930041068756f1f,
217
217
  __wbg_process_dc0fbacc7c1c06f7,
218
218
  __wbg_push_737cfc8c1432c2c6,
@@ -236,15 +236,15 @@ const imports = {
236
236
  __wbg_value_cd1ffa7b1ab794f1,
237
237
  __wbg_versions_c01dfd4722a88165,
238
238
  __wbg_versionvector_new,
239
- __wbg_warn_df6c5f8c3202ef75,
239
+ __wbg_warn_a198177f86cf58b2,
240
240
  __wbindgen_as_number,
241
241
  __wbindgen_bigint_from_i64,
242
242
  __wbindgen_bigint_from_u64,
243
243
  __wbindgen_bigint_get_as_i64,
244
244
  __wbindgen_boolean_get,
245
245
  __wbindgen_cb_drop,
246
- __wbindgen_closure_wrapper332,
247
- __wbindgen_closure_wrapper334,
246
+ __wbindgen_closure_wrapper331,
247
+ __wbindgen_closure_wrapper333,
248
248
  __wbindgen_debug_string,
249
249
  __wbindgen_error_new,
250
250
  __wbindgen_in,
@@ -363,7 +363,7 @@ export {
363
363
  __wbg_entries_3265d4158b33e5dc,
364
364
  __wbg_entries_c8a90a7ed73e84ce,
365
365
  __wbg_error_7534b8e9a36f1ab4,
366
- __wbg_error_f10209f9aa237eba,
366
+ __wbg_error_eddb9b302feac7d3,
367
367
  __wbg_from_2a5d3e218e67aa85,
368
368
  __wbg_getOwnPropertySymbols_97eebed6fe6e08be,
369
369
  __wbg_getRandomValues_b8f5dbd5f3995a9e,
@@ -381,8 +381,8 @@ export {
381
381
  __wbg_length_a446193dc22c12f8,
382
382
  __wbg_length_e2d2a49132c1b256,
383
383
  __wbg_log_0cc1b7768397bcfe,
384
- __wbg_log_173d9edf1ec170a0,
385
384
  __wbg_log_cb9e190acc5753fb,
385
+ __wbg_log_d8b98f6c2e2f68e5,
386
386
  __wbg_lorocounter_new,
387
387
  __wbg_lorolist_new,
388
388
  __wbg_loromap_new,
@@ -405,7 +405,7 @@ export {
405
405
  __wbg_next_25feadfc0913fea9,
406
406
  __wbg_next_6574e1a8a62d1055,
407
407
  __wbg_node_905d3e251edff8a2,
408
- __wbg_now_3f4e95457006a877,
408
+ __wbg_now_d62d4d41f9f53a76,
409
409
  __wbg_ownKeys_3930041068756f1f,
410
410
  __wbg_process_dc0fbacc7c1c06f7,
411
411
  __wbg_push_737cfc8c1432c2c6,
@@ -429,15 +429,15 @@ export {
429
429
  __wbg_value_cd1ffa7b1ab794f1,
430
430
  __wbg_versions_c01dfd4722a88165,
431
431
  __wbg_versionvector_new,
432
- __wbg_warn_df6c5f8c3202ef75,
432
+ __wbg_warn_a198177f86cf58b2,
433
433
  __wbindgen_as_number,
434
434
  __wbindgen_bigint_from_i64,
435
435
  __wbindgen_bigint_from_u64,
436
436
  __wbindgen_bigint_get_as_i64,
437
437
  __wbindgen_boolean_get,
438
438
  __wbindgen_cb_drop,
439
- __wbindgen_closure_wrapper332,
440
- __wbindgen_closure_wrapper334,
439
+ __wbindgen_closure_wrapper331,
440
+ __wbindgen_closure_wrapper333,
441
441
  __wbindgen_debug_string,
442
442
  __wbindgen_error_new,
443
443
  __wbindgen_in,
@@ -263,17 +263,6 @@ function getArrayJsValueFromWasm0(ptr, len) {
263
263
  }
264
264
  return result;
265
265
  }
266
- /**
267
- * Enable debug info of Loro
268
- */
269
- export function setDebug() {
270
- wasm.setDebug();
271
- }
272
-
273
- export function callPendingEvents() {
274
- wasm.callPendingEvents();
275
- }
276
-
277
266
  /**
278
267
  * Decode the metadata of the import blob.
279
268
  *
@@ -307,44 +296,31 @@ export function decodeImportBlobMeta(blob, check_checksum) {
307
296
  }
308
297
  }
309
298
 
310
- export function run() {
311
- wasm.run();
312
- }
313
-
314
- function passArrayJsValueToWasm0(array, malloc) {
315
- const ptr = malloc(array.length * 4, 4) >>> 0;
316
- const mem = getDataViewMemory0();
317
- for (let i = 0; i < array.length; i++) {
318
- mem.setUint32(ptr + 4 * i, addHeapObject(array[i]), true);
319
- }
320
- WASM_VECTOR_LEN = array.length;
321
- return ptr;
322
- }
323
299
  /**
324
- * @param {({ peer: PeerID, counter: number })[]} frontiers
325
- * @returns {Uint8Array}
300
+ * Get the version of Loro
301
+ * @returns {string}
326
302
  */
327
- export function encodeFrontiers(frontiers) {
303
+ export function LORO_VERSION() {
304
+ let deferred1_0;
305
+ let deferred1_1;
328
306
  try {
329
307
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
330
- const ptr0 = passArrayJsValueToWasm0(frontiers, wasm.__wbindgen_malloc);
331
- const len0 = WASM_VECTOR_LEN;
332
- wasm.encodeFrontiers(retptr, ptr0, len0);
308
+ wasm.LORO_VERSION(retptr);
333
309
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
334
310
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
335
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
336
- var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
337
- if (r3) {
338
- throw takeObject(r2);
339
- }
340
- var v2 = getArrayU8FromWasm0(r0, r1).slice();
341
- wasm.__wbindgen_free(r0, r1 * 1, 1);
342
- return v2;
311
+ deferred1_0 = r0;
312
+ deferred1_1 = r1;
313
+ return getStringFromWasm0(r0, r1);
343
314
  } finally {
344
315
  wasm.__wbindgen_add_to_stack_pointer(16);
316
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
345
317
  }
346
318
  }
347
319
 
320
+ export function run() {
321
+ wasm.run();
322
+ }
323
+
348
324
  /**
349
325
  * @param {Uint8Array} bytes
350
326
  * @returns {{ peer: PeerID, counter: number }[]}
@@ -367,25 +343,8 @@ export function decodeFrontiers(bytes) {
367
343
  }
368
344
  }
369
345
 
370
- /**
371
- * Get the version of Loro
372
- * @returns {string}
373
- */
374
- export function LORO_VERSION() {
375
- let deferred1_0;
376
- let deferred1_1;
377
- try {
378
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
379
- wasm.LORO_VERSION(retptr);
380
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
381
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
382
- deferred1_0 = r0;
383
- deferred1_1 = r1;
384
- return getStringFromWasm0(r0, r1);
385
- } finally {
386
- wasm.__wbindgen_add_to_stack_pointer(16);
387
- wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
388
- }
346
+ export function callPendingEvents() {
347
+ wasm.callPendingEvents();
389
348
  }
390
349
 
391
350
  /**
@@ -426,12 +385,53 @@ export function redactJsonUpdates(json_updates, version_range) {
426
385
  }
427
386
  }
428
387
 
388
+ function passArrayJsValueToWasm0(array, malloc) {
389
+ const ptr = malloc(array.length * 4, 4) >>> 0;
390
+ const mem = getDataViewMemory0();
391
+ for (let i = 0; i < array.length; i++) {
392
+ mem.setUint32(ptr + 4 * i, addHeapObject(array[i]), true);
393
+ }
394
+ WASM_VECTOR_LEN = array.length;
395
+ return ptr;
396
+ }
397
+ /**
398
+ * @param {({ peer: PeerID, counter: number })[]} frontiers
399
+ * @returns {Uint8Array}
400
+ */
401
+ export function encodeFrontiers(frontiers) {
402
+ try {
403
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
404
+ const ptr0 = passArrayJsValueToWasm0(frontiers, wasm.__wbindgen_malloc);
405
+ const len0 = WASM_VECTOR_LEN;
406
+ wasm.encodeFrontiers(retptr, ptr0, len0);
407
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
408
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
409
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
410
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
411
+ if (r3) {
412
+ throw takeObject(r2);
413
+ }
414
+ var v2 = getArrayU8FromWasm0(r0, r1).slice();
415
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
416
+ return v2;
417
+ } finally {
418
+ wasm.__wbindgen_add_to_stack_pointer(16);
419
+ }
420
+ }
421
+
422
+ /**
423
+ * Enable debug info of Loro
424
+ */
425
+ export function setDebug() {
426
+ wasm.setDebug();
427
+ }
428
+
429
429
  function __wbg_adapter_60(arg0, arg1, arg2) {
430
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5913132a5cb7e31a(arg0, arg1, addHeapObject(arg2));
430
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7ca1585fb4938203(arg0, arg1, addHeapObject(arg2));
431
431
  }
432
432
 
433
433
  function __wbg_adapter_63(arg0, arg1) {
434
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h733f684fa1d8b981(arg0, arg1);
434
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbcad774514455511(arg0, arg1);
435
435
  }
436
436
 
437
437
  const AwarenessWasmFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -2111,6 +2111,11 @@ export class LoroDoc {
2111
2111
  *
2112
2112
  * If the container does not exist, it returns `undefined`.
2113
2113
  *
2114
+ * A mergeable container (created via `ensureMergeableMap` and friends) is resolvable
2115
+ * right after it has been ensured — even before any op is written into it — for as
2116
+ * long as the parent map's child ref is alive. A mergeable container id that was
2117
+ * never ensured on this doc resolves to `undefined`.
2118
+ *
2114
2119
  * @example
2115
2120
  * ```ts
2116
2121
  * import { LoroDoc } from "loro-crdt";
@@ -7000,7 +7005,7 @@ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
7000
7005
  }
7001
7006
  };
7002
7007
 
7003
- export function __wbg_error_f10209f9aa237eba(arg0, arg1) {
7008
+ export function __wbg_error_eddb9b302feac7d3(arg0, arg1) {
7004
7009
  console.error(getStringFromWasm0(arg0, arg1));
7005
7010
  };
7006
7011
 
@@ -7119,10 +7124,6 @@ export function __wbg_log_0cc1b7768397bcfe(arg0, arg1, arg2, arg3, arg4, arg5, a
7119
7124
  }
7120
7125
  };
7121
7126
 
7122
- export function __wbg_log_173d9edf1ec170a0(arg0, arg1) {
7123
- console.log(getStringFromWasm0(arg0, arg1));
7124
- };
7125
-
7126
7127
  export function __wbg_log_cb9e190acc5753fb(arg0, arg1) {
7127
7128
  let deferred0_0;
7128
7129
  let deferred0_1;
@@ -7135,6 +7136,10 @@ export function __wbg_log_cb9e190acc5753fb(arg0, arg1) {
7135
7136
  }
7136
7137
  };
7137
7138
 
7139
+ export function __wbg_log_d8b98f6c2e2f68e5(arg0, arg1) {
7140
+ console.log(getStringFromWasm0(arg0, arg1));
7141
+ };
7142
+
7138
7143
  export function __wbg_lorocounter_new(arg0) {
7139
7144
  const ret = LoroCounter.__wrap(arg0);
7140
7145
  return addHeapObject(ret);
@@ -7256,7 +7261,7 @@ export function __wbg_node_905d3e251edff8a2(arg0) {
7256
7261
  return addHeapObject(ret);
7257
7262
  };
7258
7263
 
7259
- export function __wbg_now_3f4e95457006a877() {
7264
+ export function __wbg_now_d62d4d41f9f53a76() {
7260
7265
  const ret = Date.now();
7261
7266
  return ret;
7262
7267
  };
@@ -7369,7 +7374,7 @@ export function __wbg_versionvector_new(arg0) {
7369
7374
  return addHeapObject(ret);
7370
7375
  };
7371
7376
 
7372
- export function __wbg_warn_df6c5f8c3202ef75(arg0, arg1) {
7377
+ export function __wbg_warn_a198177f86cf58b2(arg0, arg1) {
7373
7378
  console.warn(getStringFromWasm0(arg0, arg1));
7374
7379
  };
7375
7380
 
@@ -7411,12 +7416,12 @@ export function __wbindgen_cb_drop(arg0) {
7411
7416
  return ret;
7412
7417
  };
7413
7418
 
7414
- export function __wbindgen_closure_wrapper332(arg0, arg1, arg2) {
7419
+ export function __wbindgen_closure_wrapper331(arg0, arg1, arg2) {
7415
7420
  const ret = makeMutClosure(arg0, arg1, 9, __wbg_adapter_60);
7416
7421
  return addHeapObject(ret);
7417
7422
  };
7418
7423
 
7419
- export function __wbindgen_closure_wrapper334(arg0, arg1, arg2) {
7424
+ export function __wbindgen_closure_wrapper333(arg0, arg1, arg2) {
7420
7425
  const ret = makeMutClosure(arg0, arg1, 9, __wbg_adapter_63);
7421
7426
  return addHeapObject(ret);
7422
7427
  };
Binary file
@@ -330,6 +330,6 @@ export const __wbindgen_exn_store: (a: number) => void;
330
330
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
331
331
  export const __wbindgen_export_4: WebAssembly.Table;
332
332
  export const __wbindgen_add_to_stack_pointer: (a: number) => number;
333
- export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h5913132a5cb7e31a: (a: number, b: number, c: number) => void;
334
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h733f684fa1d8b981: (a: number, b: number) => void;
333
+ export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7ca1585fb4938203: (a: number, b: number, c: number) => void;
334
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbcad774514455511: (a: number, b: number) => void;
335
335
  export const __wbindgen_start: () => void;
package/bundler/index.js CHANGED
@@ -410,7 +410,7 @@ export {
410
410
  __wbg_entries_3265d4158b33e5dc,
411
411
  __wbg_entries_c8a90a7ed73e84ce,
412
412
  __wbg_error_7534b8e9a36f1ab4,
413
- __wbg_error_f10209f9aa237eba,
413
+ __wbg_error_eddb9b302feac7d3,
414
414
  __wbg_from_2a5d3e218e67aa85,
415
415
  __wbg_getOwnPropertySymbols_97eebed6fe6e08be,
416
416
  __wbg_getRandomValues_b8f5dbd5f3995a9e,
@@ -428,8 +428,8 @@ export {
428
428
  __wbg_length_a446193dc22c12f8,
429
429
  __wbg_length_e2d2a49132c1b256,
430
430
  __wbg_log_0cc1b7768397bcfe,
431
- __wbg_log_173d9edf1ec170a0,
432
431
  __wbg_log_cb9e190acc5753fb,
432
+ __wbg_log_d8b98f6c2e2f68e5,
433
433
  __wbg_lorocounter_new,
434
434
  __wbg_lorolist_new,
435
435
  __wbg_loromap_new,
@@ -452,7 +452,7 @@ export {
452
452
  __wbg_next_25feadfc0913fea9,
453
453
  __wbg_next_6574e1a8a62d1055,
454
454
  __wbg_node_905d3e251edff8a2,
455
- __wbg_now_3f4e95457006a877,
455
+ __wbg_now_d62d4d41f9f53a76,
456
456
  __wbg_ownKeys_3930041068756f1f,
457
457
  __wbg_process_dc0fbacc7c1c06f7,
458
458
  __wbg_push_737cfc8c1432c2c6,
@@ -476,15 +476,15 @@ export {
476
476
  __wbg_value_cd1ffa7b1ab794f1,
477
477
  __wbg_versions_c01dfd4722a88165,
478
478
  __wbg_versionvector_new,
479
- __wbg_warn_df6c5f8c3202ef75,
479
+ __wbg_warn_a198177f86cf58b2,
480
480
  __wbindgen_as_number,
481
481
  __wbindgen_bigint_from_i64,
482
482
  __wbindgen_bigint_from_u64,
483
483
  __wbindgen_bigint_get_as_i64,
484
484
  __wbindgen_boolean_get,
485
485
  __wbindgen_cb_drop,
486
- __wbindgen_closure_wrapper332,
487
- __wbindgen_closure_wrapper334,
486
+ __wbindgen_closure_wrapper331,
487
+ __wbindgen_closure_wrapper333,
488
488
  __wbindgen_debug_string,
489
489
  __wbindgen_error_new,
490
490
  __wbindgen_in,
@@ -1,10 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- /**
4
- * Enable debug info of Loro
5
- */
6
- export function setDebug(): void;
7
- export function callPendingEvents(): void;
8
3
  /**
9
4
  * Decode the metadata of the import blob.
10
5
  *
@@ -18,13 +13,13 @@ export function callPendingEvents(): void;
18
13
  * - changeNum
19
14
  */
20
15
  export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
21
- export function run(): void;
22
- export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
23
- export function decodeFrontiers(bytes: Uint8Array): { peer: PeerID, counter: number }[];
24
16
  /**
25
17
  * Get the version of Loro
26
18
  */
27
19
  export function LORO_VERSION(): string;
20
+ export function run(): void;
21
+ export function decodeFrontiers(bytes: Uint8Array): { peer: PeerID, counter: number }[];
22
+ export function callPendingEvents(): void;
28
23
  /**
29
24
  * Redacts sensitive content in JSON updates within the specified version range.
30
25
  *
@@ -45,6 +40,11 @@ export function LORO_VERSION(): string;
45
40
  * @returns {Object} The redacted JSON updates
46
41
  */
47
42
  export function redactJsonUpdates(json_updates: string | JsonSchema, version_range: any): JsonSchema;
43
+ export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
44
+ /**
45
+ * Enable debug info of Loro
46
+ */
47
+ export function setDebug(): void;
48
48
 
49
49
  /**
50
50
  * Container types supported by loro.