loro-crdt 1.13.6 → 1.13.8

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,26 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- /**
4
- * Enable debug info of Loro
5
- */
6
- export function setDebug(): void;
7
- /**
8
- * Decode the metadata of the import blob.
9
- *
10
- * This method is useful to get the following metadata of the import blob:
11
- *
12
- * - startVersionVector
13
- * - endVersionVector
14
- * - startTimestamp
15
- * - endTimestamp
16
- * - mode
17
- * - changeNum
18
- */
19
- export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
20
- export function callPendingEvents(): void;
21
- export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
22
3
  export function run(): void;
23
4
  export function decodeFrontiers(bytes: Uint8Array): { peer: PeerID, counter: number }[];
5
+ export function callPendingEvents(): void;
24
6
  /**
25
7
  * Get the version of Loro
26
8
  */
@@ -45,6 +27,24 @@ export function LORO_VERSION(): string;
45
27
  * @returns {Object} The redacted JSON updates
46
28
  */
47
29
  export function redactJsonUpdates(json_updates: string | JsonSchema, version_range: any): JsonSchema;
30
+ export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
31
+ /**
32
+ * Decode the metadata of the import blob.
33
+ *
34
+ * This method is useful to get the following metadata of the import blob:
35
+ *
36
+ * - startVersionVector
37
+ * - endVersionVector
38
+ * - startTimestamp
39
+ * - endTimestamp
40
+ * - mode
41
+ * - changeNum
42
+ */
43
+ export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
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
@@ -409,8 +409,8 @@ export {
409
409
  __wbg_done_769e5ede4b31c67b,
410
410
  __wbg_entries_3265d4158b33e5dc,
411
411
  __wbg_entries_c8a90a7ed73e84ce,
412
+ __wbg_error_2caaeb4a4ddff603,
412
413
  __wbg_error_7534b8e9a36f1ab4,
413
- __wbg_error_ddc720e1a9bdab2e,
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_475c02f0ae6a02d2,
432
431
  __wbg_log_cb9e190acc5753fb,
432
+ __wbg_log_fc81db84f828b288,
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_d62d4d41f9f53a76,
455
+ __wbg_now_829357f5fa91c9dd,
456
456
  __wbg_ownKeys_3930041068756f1f,
457
457
  __wbg_process_dc0fbacc7c1c06f7,
458
458
  __wbg_push_737cfc8c1432c2c6,
@@ -476,7 +476,7 @@ export {
476
476
  __wbg_value_cd1ffa7b1ab794f1,
477
477
  __wbg_versions_c01dfd4722a88165,
478
478
  __wbg_versionvector_new,
479
- __wbg_warn_1486397968d91acc,
479
+ __wbg_warn_5e3717ed8ac922f8,
480
480
  __wbindgen_as_number,
481
481
  __wbindgen_bigint_from_i64,
482
482
  __wbindgen_bigint_from_u64,
@@ -1,26 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- /**
4
- * Enable debug info of Loro
5
- */
6
- export function setDebug(): void;
7
- /**
8
- * Decode the metadata of the import blob.
9
- *
10
- * This method is useful to get the following metadata of the import blob:
11
- *
12
- * - startVersionVector
13
- * - endVersionVector
14
- * - startTimestamp
15
- * - endTimestamp
16
- * - mode
17
- * - changeNum
18
- */
19
- export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
20
- export function callPendingEvents(): void;
21
- export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
22
3
  export function run(): void;
23
4
  export function decodeFrontiers(bytes: Uint8Array): { peer: PeerID, counter: number }[];
5
+ export function callPendingEvents(): void;
24
6
  /**
25
7
  * Get the version of Loro
26
8
  */
@@ -45,6 +27,24 @@ export function LORO_VERSION(): string;
45
27
  * @returns {Object} The redacted JSON updates
46
28
  */
47
29
  export function redactJsonUpdates(json_updates: string | JsonSchema, version_range: any): JsonSchema;
30
+ export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
31
+ /**
32
+ * Decode the metadata of the import blob.
33
+ *
34
+ * This method is useful to get the following metadata of the import blob:
35
+ *
36
+ * - startVersionVector
37
+ * - endVersionVector
38
+ * - startTimestamp
39
+ * - endTimestamp
40
+ * - mode
41
+ * - changeNum
42
+ */
43
+ export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
44
+ /**
45
+ * Enable debug info of Loro
46
+ */
47
+ export function setDebug(): void;
48
48
 
49
49
  /**
50
50
  * Container types supported by loro.
@@ -28,8 +28,8 @@ import {
28
28
  __wbg_done_769e5ede4b31c67b,
29
29
  __wbg_entries_3265d4158b33e5dc,
30
30
  __wbg_entries_c8a90a7ed73e84ce,
31
+ __wbg_error_2caaeb4a4ddff603,
31
32
  __wbg_error_7534b8e9a36f1ab4,
32
- __wbg_error_ddc720e1a9bdab2e,
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_475c02f0ae6a02d2,
51
50
  __wbg_log_cb9e190acc5753fb,
51
+ __wbg_log_fc81db84f828b288,
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_d62d4d41f9f53a76,
74
+ __wbg_now_829357f5fa91c9dd,
75
75
  __wbg_ownKeys_3930041068756f1f,
76
76
  __wbg_process_dc0fbacc7c1c06f7,
77
77
  __wbg_push_737cfc8c1432c2c6,
@@ -95,7 +95,7 @@ import {
95
95
  __wbg_value_cd1ffa7b1ab794f1,
96
96
  __wbg_versions_c01dfd4722a88165,
97
97
  __wbg_versionvector_new,
98
- __wbg_warn_1486397968d91acc,
98
+ __wbg_warn_5e3717ed8ac922f8,
99
99
  __wbindgen_as_number,
100
100
  __wbindgen_bigint_from_i64,
101
101
  __wbindgen_bigint_from_u64,
@@ -169,8 +169,8 @@ const imports = {
169
169
  __wbg_done_769e5ede4b31c67b,
170
170
  __wbg_entries_3265d4158b33e5dc,
171
171
  __wbg_entries_c8a90a7ed73e84ce,
172
+ __wbg_error_2caaeb4a4ddff603,
172
173
  __wbg_error_7534b8e9a36f1ab4,
173
- __wbg_error_ddc720e1a9bdab2e,
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_475c02f0ae6a02d2,
192
191
  __wbg_log_cb9e190acc5753fb,
192
+ __wbg_log_fc81db84f828b288,
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_d62d4d41f9f53a76,
215
+ __wbg_now_829357f5fa91c9dd,
216
216
  __wbg_ownKeys_3930041068756f1f,
217
217
  __wbg_process_dc0fbacc7c1c06f7,
218
218
  __wbg_push_737cfc8c1432c2c6,
@@ -236,7 +236,7 @@ const imports = {
236
236
  __wbg_value_cd1ffa7b1ab794f1,
237
237
  __wbg_versions_c01dfd4722a88165,
238
238
  __wbg_versionvector_new,
239
- __wbg_warn_1486397968d91acc,
239
+ __wbg_warn_5e3717ed8ac922f8,
240
240
  __wbindgen_as_number,
241
241
  __wbindgen_bigint_from_i64,
242
242
  __wbindgen_bigint_from_u64,
@@ -362,8 +362,8 @@ export {
362
362
  __wbg_done_769e5ede4b31c67b,
363
363
  __wbg_entries_3265d4158b33e5dc,
364
364
  __wbg_entries_c8a90a7ed73e84ce,
365
+ __wbg_error_2caaeb4a4ddff603,
365
366
  __wbg_error_7534b8e9a36f1ab4,
366
- __wbg_error_ddc720e1a9bdab2e,
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_475c02f0ae6a02d2,
385
384
  __wbg_log_cb9e190acc5753fb,
385
+ __wbg_log_fc81db84f828b288,
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_d62d4d41f9f53a76,
408
+ __wbg_now_829357f5fa91c9dd,
409
409
  __wbg_ownKeys_3930041068756f1f,
410
410
  __wbg_process_dc0fbacc7c1c06f7,
411
411
  __wbg_push_737cfc8c1432c2c6,
@@ -429,7 +429,7 @@ export {
429
429
  __wbg_value_cd1ffa7b1ab794f1,
430
430
  __wbg_versions_c01dfd4722a88165,
431
431
  __wbg_versionvector_new,
432
- __wbg_warn_1486397968d91acc,
432
+ __wbg_warn_5e3717ed8ac922f8,
433
433
  __wbindgen_as_number,
434
434
  __wbindgen_bigint_from_i64,
435
435
  __wbindgen_bigint_from_u64,
@@ -263,83 +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
- /**
274
- * Decode the metadata of the import blob.
275
- *
276
- * This method is useful to get the following metadata of the import blob:
277
- *
278
- * - startVersionVector
279
- * - endVersionVector
280
- * - startTimestamp
281
- * - endTimestamp
282
- * - mode
283
- * - changeNum
284
- * @param {Uint8Array} blob
285
- * @param {boolean} check_checksum
286
- * @returns {ImportBlobMetadata}
287
- */
288
- export function decodeImportBlobMeta(blob, check_checksum) {
289
- try {
290
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
291
- const ptr0 = passArray8ToWasm0(blob, wasm.__wbindgen_malloc);
292
- const len0 = WASM_VECTOR_LEN;
293
- wasm.decodeImportBlobMeta(retptr, ptr0, len0, check_checksum);
294
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
295
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
296
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
297
- if (r2) {
298
- throw takeObject(r1);
299
- }
300
- return takeObject(r0);
301
- } finally {
302
- wasm.__wbindgen_add_to_stack_pointer(16);
303
- }
304
- }
305
-
306
- export function callPendingEvents() {
307
- wasm.callPendingEvents();
308
- }
309
-
310
- function passArrayJsValueToWasm0(array, malloc) {
311
- const ptr = malloc(array.length * 4, 4) >>> 0;
312
- const mem = getDataViewMemory0();
313
- for (let i = 0; i < array.length; i++) {
314
- mem.setUint32(ptr + 4 * i, addHeapObject(array[i]), true);
315
- }
316
- WASM_VECTOR_LEN = array.length;
317
- return ptr;
318
- }
319
- /**
320
- * @param {({ peer: PeerID, counter: number })[]} frontiers
321
- * @returns {Uint8Array}
322
- */
323
- export function encodeFrontiers(frontiers) {
324
- try {
325
- const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
326
- const ptr0 = passArrayJsValueToWasm0(frontiers, wasm.__wbindgen_malloc);
327
- const len0 = WASM_VECTOR_LEN;
328
- wasm.encodeFrontiers(retptr, ptr0, len0);
329
- var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
330
- var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
331
- var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
332
- var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
333
- if (r3) {
334
- throw takeObject(r2);
335
- }
336
- var v2 = getArrayU8FromWasm0(r0, r1).slice();
337
- wasm.__wbindgen_free(r0, r1 * 1, 1);
338
- return v2;
339
- } finally {
340
- wasm.__wbindgen_add_to_stack_pointer(16);
341
- }
342
- }
343
266
 
344
267
  export function run() {
345
268
  wasm.run();
@@ -367,6 +290,10 @@ export function decodeFrontiers(bytes) {
367
290
  }
368
291
  }
369
292
 
293
+ export function callPendingEvents() {
294
+ wasm.callPendingEvents();
295
+ }
296
+
370
297
  /**
371
298
  * Get the version of Loro
372
299
  * @returns {string}
@@ -426,12 +353,86 @@ export function redactJsonUpdates(json_updates, version_range) {
426
353
  }
427
354
  }
428
355
 
356
+ function passArrayJsValueToWasm0(array, malloc) {
357
+ const ptr = malloc(array.length * 4, 4) >>> 0;
358
+ const mem = getDataViewMemory0();
359
+ for (let i = 0; i < array.length; i++) {
360
+ mem.setUint32(ptr + 4 * i, addHeapObject(array[i]), true);
361
+ }
362
+ WASM_VECTOR_LEN = array.length;
363
+ return ptr;
364
+ }
365
+ /**
366
+ * @param {({ peer: PeerID, counter: number })[]} frontiers
367
+ * @returns {Uint8Array}
368
+ */
369
+ export function encodeFrontiers(frontiers) {
370
+ try {
371
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
372
+ const ptr0 = passArrayJsValueToWasm0(frontiers, wasm.__wbindgen_malloc);
373
+ const len0 = WASM_VECTOR_LEN;
374
+ wasm.encodeFrontiers(retptr, ptr0, len0);
375
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
376
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
377
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
378
+ var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
379
+ if (r3) {
380
+ throw takeObject(r2);
381
+ }
382
+ var v2 = getArrayU8FromWasm0(r0, r1).slice();
383
+ wasm.__wbindgen_free(r0, r1 * 1, 1);
384
+ return v2;
385
+ } finally {
386
+ wasm.__wbindgen_add_to_stack_pointer(16);
387
+ }
388
+ }
389
+
390
+ /**
391
+ * Decode the metadata of the import blob.
392
+ *
393
+ * This method is useful to get the following metadata of the import blob:
394
+ *
395
+ * - startVersionVector
396
+ * - endVersionVector
397
+ * - startTimestamp
398
+ * - endTimestamp
399
+ * - mode
400
+ * - changeNum
401
+ * @param {Uint8Array} blob
402
+ * @param {boolean} check_checksum
403
+ * @returns {ImportBlobMetadata}
404
+ */
405
+ export function decodeImportBlobMeta(blob, check_checksum) {
406
+ try {
407
+ const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
408
+ const ptr0 = passArray8ToWasm0(blob, wasm.__wbindgen_malloc);
409
+ const len0 = WASM_VECTOR_LEN;
410
+ wasm.decodeImportBlobMeta(retptr, ptr0, len0, check_checksum);
411
+ var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
412
+ var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
413
+ var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
414
+ if (r2) {
415
+ throw takeObject(r1);
416
+ }
417
+ return takeObject(r0);
418
+ } finally {
419
+ wasm.__wbindgen_add_to_stack_pointer(16);
420
+ }
421
+ }
422
+
423
+ /**
424
+ * Enable debug info of Loro
425
+ */
426
+ export function setDebug() {
427
+ wasm.setDebug();
428
+ }
429
+
429
430
  function __wbg_adapter_60(arg0, arg1, arg2) {
430
- wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h6b8c3f1e11288e26(arg0, arg1, addHeapObject(arg2));
431
+ wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h03abcb20aecec54f(arg0, arg1, addHeapObject(arg2));
431
432
  }
432
433
 
433
434
  function __wbg_adapter_63(arg0, arg1) {
434
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb2d720e6be67703f(arg0, arg1);
435
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h03e188dc81fd4288(arg0, arg1);
435
436
  }
436
437
 
437
438
  const AwarenessWasmFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -7009,6 +7010,10 @@ export function __wbg_entries_c8a90a7ed73e84ce(arg0) {
7009
7010
  return addHeapObject(ret);
7010
7011
  };
7011
7012
 
7013
+ export function __wbg_error_2caaeb4a4ddff603(arg0, arg1) {
7014
+ console.error(getStringFromWasm0(arg0, arg1));
7015
+ };
7016
+
7012
7017
  export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
7013
7018
  let deferred0_0;
7014
7019
  let deferred0_1;
@@ -7021,10 +7026,6 @@ export function __wbg_error_7534b8e9a36f1ab4(arg0, arg1) {
7021
7026
  }
7022
7027
  };
7023
7028
 
7024
- export function __wbg_error_ddc720e1a9bdab2e(arg0, arg1) {
7025
- console.error(getStringFromWasm0(arg0, arg1));
7026
- };
7027
-
7028
7029
  export function __wbg_from_2a5d3e218e67aa85(arg0) {
7029
7030
  const ret = Array.from(getObject(arg0));
7030
7031
  return addHeapObject(ret);
@@ -7140,10 +7141,6 @@ export function __wbg_log_0cc1b7768397bcfe(arg0, arg1, arg2, arg3, arg4, arg5, a
7140
7141
  }
7141
7142
  };
7142
7143
 
7143
- export function __wbg_log_475c02f0ae6a02d2(arg0, arg1) {
7144
- console.log(getStringFromWasm0(arg0, arg1));
7145
- };
7146
-
7147
7144
  export function __wbg_log_cb9e190acc5753fb(arg0, arg1) {
7148
7145
  let deferred0_0;
7149
7146
  let deferred0_1;
@@ -7156,6 +7153,10 @@ export function __wbg_log_cb9e190acc5753fb(arg0, arg1) {
7156
7153
  }
7157
7154
  };
7158
7155
 
7156
+ export function __wbg_log_fc81db84f828b288(arg0, arg1) {
7157
+ console.log(getStringFromWasm0(arg0, arg1));
7158
+ };
7159
+
7159
7160
  export function __wbg_lorocounter_new(arg0) {
7160
7161
  const ret = LoroCounter.__wrap(arg0);
7161
7162
  return addHeapObject(ret);
@@ -7277,7 +7278,7 @@ export function __wbg_node_905d3e251edff8a2(arg0) {
7277
7278
  return addHeapObject(ret);
7278
7279
  };
7279
7280
 
7280
- export function __wbg_now_d62d4d41f9f53a76() {
7281
+ export function __wbg_now_829357f5fa91c9dd() {
7281
7282
  const ret = Date.now();
7282
7283
  return ret;
7283
7284
  };
@@ -7390,7 +7391,7 @@ export function __wbg_versionvector_new(arg0) {
7390
7391
  return addHeapObject(ret);
7391
7392
  };
7392
7393
 
7393
- export function __wbg_warn_1486397968d91acc(arg0, arg1) {
7394
+ export function __wbg_warn_5e3717ed8ac922f8(arg0, arg1) {
7394
7395
  console.warn(getStringFromWasm0(arg0, arg1));
7395
7396
  };
7396
7397
 
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__h6b8c3f1e11288e26: (a: number, b: number, c: number) => void;
334
- export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb2d720e6be67703f: (a: number, b: number) => void;
333
+ export const _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h03abcb20aecec54f: (a: number, b: number, c: number) => void;
334
+ export const _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h03e188dc81fd4288: (a: number, b: number) => void;
335
335
  export const __wbindgen_start: () => void;
package/bundler/index.js CHANGED
@@ -409,8 +409,8 @@ export {
409
409
  __wbg_done_769e5ede4b31c67b,
410
410
  __wbg_entries_3265d4158b33e5dc,
411
411
  __wbg_entries_c8a90a7ed73e84ce,
412
+ __wbg_error_2caaeb4a4ddff603,
412
413
  __wbg_error_7534b8e9a36f1ab4,
413
- __wbg_error_ddc720e1a9bdab2e,
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_475c02f0ae6a02d2,
432
431
  __wbg_log_cb9e190acc5753fb,
432
+ __wbg_log_fc81db84f828b288,
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_d62d4d41f9f53a76,
455
+ __wbg_now_829357f5fa91c9dd,
456
456
  __wbg_ownKeys_3930041068756f1f,
457
457
  __wbg_process_dc0fbacc7c1c06f7,
458
458
  __wbg_push_737cfc8c1432c2c6,
@@ -476,7 +476,7 @@ export {
476
476
  __wbg_value_cd1ffa7b1ab794f1,
477
477
  __wbg_versions_c01dfd4722a88165,
478
478
  __wbg_versionvector_new,
479
- __wbg_warn_1486397968d91acc,
479
+ __wbg_warn_5e3717ed8ac922f8,
480
480
  __wbindgen_as_number,
481
481
  __wbindgen_bigint_from_i64,
482
482
  __wbindgen_bigint_from_u64,
@@ -1,26 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- /**
4
- * Enable debug info of Loro
5
- */
6
- export function setDebug(): void;
7
- /**
8
- * Decode the metadata of the import blob.
9
- *
10
- * This method is useful to get the following metadata of the import blob:
11
- *
12
- * - startVersionVector
13
- * - endVersionVector
14
- * - startTimestamp
15
- * - endTimestamp
16
- * - mode
17
- * - changeNum
18
- */
19
- export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
20
- export function callPendingEvents(): void;
21
- export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
22
3
  export function run(): void;
23
4
  export function decodeFrontiers(bytes: Uint8Array): { peer: PeerID, counter: number }[];
5
+ export function callPendingEvents(): void;
24
6
  /**
25
7
  * Get the version of Loro
26
8
  */
@@ -45,6 +27,24 @@ export function LORO_VERSION(): string;
45
27
  * @returns {Object} The redacted JSON updates
46
28
  */
47
29
  export function redactJsonUpdates(json_updates: string | JsonSchema, version_range: any): JsonSchema;
30
+ export function encodeFrontiers(frontiers: ({ peer: PeerID, counter: number })[]): Uint8Array;
31
+ /**
32
+ * Decode the metadata of the import blob.
33
+ *
34
+ * This method is useful to get the following metadata of the import blob:
35
+ *
36
+ * - startVersionVector
37
+ * - endVersionVector
38
+ * - startTimestamp
39
+ * - endTimestamp
40
+ * - mode
41
+ * - changeNum
42
+ */
43
+ export function decodeImportBlobMeta(blob: Uint8Array, check_checksum: boolean): ImportBlobMetadata;
44
+ /**
45
+ * Enable debug info of Loro
46
+ */
47
+ export function setDebug(): void;
48
48
 
49
49
  /**
50
50
  * Container types supported by loro.