loro-crdt 1.16.0 → 1.16.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.
@@ -2,7 +2,7 @@
2
2
  let imports = {};
3
3
  imports['__wbindgen_placeholder__'] = module.exports;
4
4
  let wasm;
5
- const { stateBinary, stateCid, stateContainer, stateIndex, stateOptions, stateRootCid, stateSet, stateSlice, stateValue } = require(String.raw`./snippets/loro-wasm-0dc0eaeaf03de4ab/inline0.js`);
5
+ const { stateBinary, stateCid, stateContainer, stateIndex, stateOptions, stateRootCid, stateSet, stateSlice, stateValue } = require(String.raw`./snippets/loro-wasm-00a42dcc1beb7b21/inline0.js`);
6
6
  const { TextEncoder, TextDecoder } = require(`util`);
7
7
 
8
8
  const heap = new Array(128).fill(undefined);
@@ -434,11 +434,11 @@ function getArrayJsValueFromWasm0(ptr, len) {
434
434
  return result;
435
435
  }
436
436
  function __wbg_adapter_58(arg0, arg1, arg2) {
437
- wasm._dyn_core_f0fd674eaa06beef___ops__function__FnMut_______Output______as_wasm_bindgen_1b359ed29b81b352___closure__WasmClosure___describe__invoke___wasm_bindgen_1b359ed29b81b352___JsValue_____(arg0, arg1, addHeapObject(arg2));
437
+ wasm._dyn_core_ed718c3d60ebd546___ops__function__FnMut_______Output______as_wasm_bindgen_cfd5deec16e3bd1c___closure__WasmClosure___describe__invoke___wasm_bindgen_cfd5deec16e3bd1c___JsValue_____(arg0, arg1, addHeapObject(arg2));
438
438
  }
439
439
 
440
440
  function __wbg_adapter_61(arg0, arg1) {
441
- wasm._dyn_core_f0fd674eaa06beef___ops__function__FnMut_____Output______as_wasm_bindgen_1b359ed29b81b352___closure__WasmClosure___describe__invoke______(arg0, arg1);
441
+ wasm._dyn_core_ed718c3d60ebd546___ops__function__FnMut_____Output______as_wasm_bindgen_cfd5deec16e3bd1c___closure__WasmClosure___describe__invoke______(arg0, arg1);
442
442
  }
443
443
 
444
444
  const AwarenessWasmFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -7837,7 +7837,7 @@ module.exports.__wbg_entries_c8a90a7ed73e84ce = function(arg0) {
7837
7837
  return addHeapObject(ret);
7838
7838
  };
7839
7839
 
7840
- module.exports.__wbg_error_254dcecf7ac5bdec = function(arg0, arg1) {
7840
+ module.exports.__wbg_error_b1d64315f7b2330b = function(arg0, arg1) {
7841
7841
  console.error(getStringFromWasm0(arg0, arg1));
7842
7842
  };
7843
7843
 
@@ -7956,10 +7956,6 @@ module.exports.__wbg_log_0cc1b7768397bcfe = function(arg0, arg1, arg2, arg3, arg
7956
7956
  }
7957
7957
  };
7958
7958
 
7959
- module.exports.__wbg_log_c8b807a41c4fb9b4 = function(arg0, arg1) {
7960
- console.log(getStringFromWasm0(arg0, arg1));
7961
- };
7962
-
7963
7959
  module.exports.__wbg_log_cb9e190acc5753fb = function(arg0, arg1) {
7964
7960
  let deferred0_0;
7965
7961
  let deferred0_1;
@@ -7972,6 +7968,10 @@ module.exports.__wbg_log_cb9e190acc5753fb = function(arg0, arg1) {
7972
7968
  }
7973
7969
  };
7974
7970
 
7971
+ module.exports.__wbg_log_df8a54ea863a0cd4 = function(arg0, arg1) {
7972
+ console.log(getStringFromWasm0(arg0, arg1));
7973
+ };
7974
+
7975
7975
  module.exports.__wbg_lorocounter_new = function(arg0) {
7976
7976
  const ret = LoroCounter.__wrap(arg0);
7977
7977
  return addHeapObject(ret);
@@ -8093,7 +8093,7 @@ module.exports.__wbg_node_905d3e251edff8a2 = function(arg0) {
8093
8093
  return addHeapObject(ret);
8094
8094
  };
8095
8095
 
8096
- module.exports.__wbg_now_86f00deda9ebf073 = function() {
8096
+ module.exports.__wbg_now_a326ae9abb0bdbb1 = function() {
8097
8097
  const ret = Date.now();
8098
8098
  return ret;
8099
8099
  };
@@ -8153,45 +8153,45 @@ module.exports.__wbg_setindex_dcd71eabf405bde1 = function(arg0, arg1, arg2) {
8153
8153
  getObject(arg0)[arg1 >>> 0] = arg2;
8154
8154
  };
8155
8155
 
8156
- module.exports.__wbg_stateBinary_3580e1339c072682 = function(arg0, arg1) {
8156
+ module.exports.__wbg_stateBinary_16871a591dc334f0 = function(arg0, arg1) {
8157
8157
  const ret = stateBinary(getArrayU8FromWasm0(arg0, arg1));
8158
8158
  return addHeapObject(ret);
8159
8159
  };
8160
8160
 
8161
- module.exports.__wbg_stateCid_a2ba5f4d73f52230 = function(arg0, arg1, arg2) {
8161
+ module.exports.__wbg_stateCid_c73ac0b2e145d6fa = function(arg0, arg1, arg2) {
8162
8162
  const ret = stateCid(getObject(arg0), arg1, arg2);
8163
8163
  return addHeapObject(ret);
8164
8164
  };
8165
8165
 
8166
- module.exports.__wbg_stateContainer_305e56c959244dfa = function(arg0, arg1, arg2) {
8166
+ module.exports.__wbg_stateContainer_7e2e342eb34cfc43 = function(arg0, arg1, arg2) {
8167
8167
  const ret = stateContainer(arg0, getObject(arg1), takeObject(arg2));
8168
8168
  return addHeapObject(ret);
8169
8169
  };
8170
8170
 
8171
- module.exports.__wbg_stateIndex_0cd0ccf214604c1c = function() { return handleError(function (arg0, arg1, arg2) {
8171
+ module.exports.__wbg_stateIndex_1649f9be165adc06 = function() { return handleError(function (arg0, arg1, arg2) {
8172
8172
  stateIndex(getObject(arg0), arg1 >>> 0, getObject(arg2));
8173
8173
  }, arguments) };
8174
8174
 
8175
- module.exports.__wbg_stateOptions_0d8f2cd8d190e970 = function() { return handleError(function (arg0, arg1) {
8175
+ module.exports.__wbg_stateOptions_715a60383a215f03 = function() { return handleError(function (arg0, arg1) {
8176
8176
  const ret = stateOptions(takeObject(arg0), arg1 !== 0);
8177
8177
  return addHeapObject(ret);
8178
8178
  }, arguments) };
8179
8179
 
8180
- module.exports.__wbg_stateRootCid_f428e303d924bdaf = function(arg0, arg1, arg2) {
8180
+ module.exports.__wbg_stateRootCid_fd5a57597e5a6878 = function(arg0, arg1, arg2) {
8181
8181
  const ret = stateRootCid(getStringFromWasm0(arg0, arg1), arg2);
8182
8182
  return addHeapObject(ret);
8183
8183
  };
8184
8184
 
8185
- module.exports.__wbg_stateSet_11254347d3c9f8a5 = function() { return handleError(function (arg0, arg1, arg2) {
8185
+ module.exports.__wbg_stateSet_94c2e7ed3e5880bb = function() { return handleError(function (arg0, arg1, arg2) {
8186
8186
  stateSet(getObject(arg0), getObject(arg1), getObject(arg2));
8187
8187
  }, arguments) };
8188
8188
 
8189
- module.exports.__wbg_stateSlice_6e1624d9003b9be4 = function(arg0, arg1, arg2) {
8189
+ module.exports.__wbg_stateSlice_90b6948816597251 = function(arg0, arg1, arg2) {
8190
8190
  const ret = stateSlice(takeObject(arg0), arg1 >>> 0, arg2 >>> 0);
8191
8191
  return addHeapObject(ret);
8192
8192
  };
8193
8193
 
8194
- module.exports.__wbg_stateValue_39cda262b05c7733 = function(arg0) {
8194
+ module.exports.__wbg_stateValue_26fc5effdba0aa3e = function(arg0) {
8195
8195
  const ret = stateValue(takeObject(arg0));
8196
8196
  return addHeapObject(ret);
8197
8197
  };
@@ -8241,7 +8241,7 @@ module.exports.__wbg_versionvector_new = function(arg0) {
8241
8241
  return addHeapObject(ret);
8242
8242
  };
8243
8243
 
8244
- module.exports.__wbg_warn_86d516f31af68498 = function(arg0, arg1) {
8244
+ module.exports.__wbg_warn_3405af8b3bbb5a6a = function(arg0, arg1) {
8245
8245
  console.warn(getStringFromWasm0(arg0, arg1));
8246
8246
  };
8247
8247
 
@@ -8283,12 +8283,12 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
8283
8283
  return ret;
8284
8284
  };
8285
8285
 
8286
- module.exports.__wbindgen_closure_wrapper278 = function(arg0, arg1, arg2) {
8286
+ module.exports.__wbindgen_closure_wrapper283 = function(arg0, arg1, arg2) {
8287
8287
  const ret = makeMutClosure(arg0, arg1, 15, __wbg_adapter_58);
8288
8288
  return addHeapObject(ret);
8289
8289
  };
8290
8290
 
8291
- module.exports.__wbindgen_closure_wrapper536 = function(arg0, arg1, arg2) {
8291
+ module.exports.__wbindgen_closure_wrapper542 = function(arg0, arg1, arg2) {
8292
8292
  const ret = makeMutClosure(arg0, arg1, 15, __wbg_adapter_61);
8293
8293
  return addHeapObject(ret);
8294
8294
  };
Binary file
@@ -352,6 +352,6 @@ export const __wbindgen_exn_store: (a: number) => void;
352
352
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
353
353
  export const __wbindgen_export_4: WebAssembly.Table;
354
354
  export const __wbindgen_add_to_stack_pointer: (a: number) => number;
355
- export const _dyn_core_f0fd674eaa06beef___ops__function__FnMut_______Output______as_wasm_bindgen_1b359ed29b81b352___closure__WasmClosure___describe__invoke___wasm_bindgen_1b359ed29b81b352___JsValue_____: (a: number, b: number, c: number) => void;
356
- export const _dyn_core_f0fd674eaa06beef___ops__function__FnMut_____Output______as_wasm_bindgen_1b359ed29b81b352___closure__WasmClosure___describe__invoke______: (a: number, b: number) => void;
355
+ export const _dyn_core_ed718c3d60ebd546___ops__function__FnMut_______Output______as_wasm_bindgen_cfd5deec16e3bd1c___closure__WasmClosure___describe__invoke___wasm_bindgen_cfd5deec16e3bd1c___JsValue_____: (a: number, b: number, c: number) => void;
356
+ export const _dyn_core_ed718c3d60ebd546___ops__function__FnMut_____Output______as_wasm_bindgen_cfd5deec16e3bd1c___closure__WasmClosure___describe__invoke______: (a: number, b: number) => void;
357
357
  export const __wbindgen_start: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loro-crdt",
3
- "version": "1.16.0",
3
+ "version": "1.16.2",
4
4
  "description": "Loro CRDTs is a high-performance CRDT framework that makes your app state synchronized, collaborative and maintainable effortlessly.",
5
5
  "keywords": [
6
6
  "crdt",
@@ -4435,8 +4435,8 @@ export interface InitOutput {
4435
4435
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
4436
4436
  readonly __wbindgen_export_4: WebAssembly.Table;
4437
4437
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
4438
- readonly _dyn_core_f0fd674eaa06beef___ops__function__FnMut_______Output______as_wasm_bindgen_1b359ed29b81b352___closure__WasmClosure___describe__invoke___wasm_bindgen_1b359ed29b81b352___JsValue_____: (a: number, b: number, c: number) => void;
4439
- readonly _dyn_core_f0fd674eaa06beef___ops__function__FnMut_____Output______as_wasm_bindgen_1b359ed29b81b352___closure__WasmClosure___describe__invoke______: (a: number, b: number) => void;
4438
+ readonly _dyn_core_ed718c3d60ebd546___ops__function__FnMut_______Output______as_wasm_bindgen_cfd5deec16e3bd1c___closure__WasmClosure___describe__invoke___wasm_bindgen_cfd5deec16e3bd1c___JsValue_____: (a: number, b: number, c: number) => void;
4439
+ readonly _dyn_core_ed718c3d60ebd546___ops__function__FnMut_____Output______as_wasm_bindgen_cfd5deec16e3bd1c___closure__WasmClosure___describe__invoke______: (a: number, b: number) => void;
4440
4440
  readonly __wbindgen_start: () => void;
4441
4441
  }
4442
4442
 
package/web/loro_wasm.js CHANGED
@@ -1,4 +1,4 @@
1
- import { stateBinary, stateCid, stateContainer, stateIndex, stateOptions, stateRootCid, stateSet, stateSlice, stateValue } from './snippets/loro-wasm-0dc0eaeaf03de4ab/inline0.js';
1
+ import { stateBinary, stateCid, stateContainer, stateIndex, stateOptions, stateRootCid, stateSet, stateSlice, stateValue } from './snippets/loro-wasm-00a42dcc1beb7b21/inline0.js';
2
2
 
3
3
  let wasm;
4
4
 
@@ -431,11 +431,11 @@ function getArrayJsValueFromWasm0(ptr, len) {
431
431
  return result;
432
432
  }
433
433
  function __wbg_adapter_58(arg0, arg1, arg2) {
434
- wasm._dyn_core_f0fd674eaa06beef___ops__function__FnMut_______Output______as_wasm_bindgen_1b359ed29b81b352___closure__WasmClosure___describe__invoke___wasm_bindgen_1b359ed29b81b352___JsValue_____(arg0, arg1, addHeapObject(arg2));
434
+ wasm._dyn_core_ed718c3d60ebd546___ops__function__FnMut_______Output______as_wasm_bindgen_cfd5deec16e3bd1c___closure__WasmClosure___describe__invoke___wasm_bindgen_cfd5deec16e3bd1c___JsValue_____(arg0, arg1, addHeapObject(arg2));
435
435
  }
436
436
 
437
437
  function __wbg_adapter_61(arg0, arg1) {
438
- wasm._dyn_core_f0fd674eaa06beef___ops__function__FnMut_____Output______as_wasm_bindgen_1b359ed29b81b352___closure__WasmClosure___describe__invoke______(arg0, arg1);
438
+ wasm._dyn_core_ed718c3d60ebd546___ops__function__FnMut_____Output______as_wasm_bindgen_cfd5deec16e3bd1c___closure__WasmClosure___describe__invoke______(arg0, arg1);
439
439
  }
440
440
 
441
441
  const AwarenessWasmFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -7840,7 +7840,7 @@ function __wbg_get_imports() {
7840
7840
  const ret = getObject(arg0).entries();
7841
7841
  return addHeapObject(ret);
7842
7842
  };
7843
- imports.wbg.__wbg_error_254dcecf7ac5bdec = function(arg0, arg1) {
7843
+ imports.wbg.__wbg_error_b1d64315f7b2330b = function(arg0, arg1) {
7844
7844
  console.error(getStringFromWasm0(arg0, arg1));
7845
7845
  };
7846
7846
  imports.wbg.__wbg_from_2a5d3e218e67aa85 = function(arg0) {
@@ -7941,9 +7941,6 @@ function __wbg_get_imports() {
7941
7941
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
7942
7942
  }
7943
7943
  };
7944
- imports.wbg.__wbg_log_c8b807a41c4fb9b4 = function(arg0, arg1) {
7945
- console.log(getStringFromWasm0(arg0, arg1));
7946
- };
7947
7944
  imports.wbg.__wbg_log_cb9e190acc5753fb = function(arg0, arg1) {
7948
7945
  let deferred0_0;
7949
7946
  let deferred0_1;
@@ -7955,6 +7952,9 @@ function __wbg_get_imports() {
7955
7952
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
7956
7953
  }
7957
7954
  };
7955
+ imports.wbg.__wbg_log_df8a54ea863a0cd4 = function(arg0, arg1) {
7956
+ console.log(getStringFromWasm0(arg0, arg1));
7957
+ };
7958
7958
  imports.wbg.__wbg_lorocounter_new = function(arg0) {
7959
7959
  const ret = LoroCounter.__wrap(arg0);
7960
7960
  return addHeapObject(ret);
@@ -8054,7 +8054,7 @@ function __wbg_get_imports() {
8054
8054
  const ret = getObject(arg0).node;
8055
8055
  return addHeapObject(ret);
8056
8056
  };
8057
- imports.wbg.__wbg_now_86f00deda9ebf073 = function() {
8057
+ imports.wbg.__wbg_now_a326ae9abb0bdbb1 = function() {
8058
8058
  const ret = Date.now();
8059
8059
  return ret;
8060
8060
  };
@@ -8101,37 +8101,37 @@ function __wbg_get_imports() {
8101
8101
  imports.wbg.__wbg_setindex_dcd71eabf405bde1 = function(arg0, arg1, arg2) {
8102
8102
  getObject(arg0)[arg1 >>> 0] = arg2;
8103
8103
  };
8104
- imports.wbg.__wbg_stateBinary_3580e1339c072682 = function(arg0, arg1) {
8104
+ imports.wbg.__wbg_stateBinary_16871a591dc334f0 = function(arg0, arg1) {
8105
8105
  const ret = stateBinary(getArrayU8FromWasm0(arg0, arg1));
8106
8106
  return addHeapObject(ret);
8107
8107
  };
8108
- imports.wbg.__wbg_stateCid_a2ba5f4d73f52230 = function(arg0, arg1, arg2) {
8108
+ imports.wbg.__wbg_stateCid_c73ac0b2e145d6fa = function(arg0, arg1, arg2) {
8109
8109
  const ret = stateCid(getObject(arg0), arg1, arg2);
8110
8110
  return addHeapObject(ret);
8111
8111
  };
8112
- imports.wbg.__wbg_stateContainer_305e56c959244dfa = function(arg0, arg1, arg2) {
8112
+ imports.wbg.__wbg_stateContainer_7e2e342eb34cfc43 = function(arg0, arg1, arg2) {
8113
8113
  const ret = stateContainer(arg0, getObject(arg1), takeObject(arg2));
8114
8114
  return addHeapObject(ret);
8115
8115
  };
8116
- imports.wbg.__wbg_stateIndex_0cd0ccf214604c1c = function() { return handleError(function (arg0, arg1, arg2) {
8116
+ imports.wbg.__wbg_stateIndex_1649f9be165adc06 = function() { return handleError(function (arg0, arg1, arg2) {
8117
8117
  stateIndex(getObject(arg0), arg1 >>> 0, getObject(arg2));
8118
8118
  }, arguments) };
8119
- imports.wbg.__wbg_stateOptions_0d8f2cd8d190e970 = function() { return handleError(function (arg0, arg1) {
8119
+ imports.wbg.__wbg_stateOptions_715a60383a215f03 = function() { return handleError(function (arg0, arg1) {
8120
8120
  const ret = stateOptions(takeObject(arg0), arg1 !== 0);
8121
8121
  return addHeapObject(ret);
8122
8122
  }, arguments) };
8123
- imports.wbg.__wbg_stateRootCid_f428e303d924bdaf = function(arg0, arg1, arg2) {
8123
+ imports.wbg.__wbg_stateRootCid_fd5a57597e5a6878 = function(arg0, arg1, arg2) {
8124
8124
  const ret = stateRootCid(getStringFromWasm0(arg0, arg1), arg2);
8125
8125
  return addHeapObject(ret);
8126
8126
  };
8127
- imports.wbg.__wbg_stateSet_11254347d3c9f8a5 = function() { return handleError(function (arg0, arg1, arg2) {
8127
+ imports.wbg.__wbg_stateSet_94c2e7ed3e5880bb = function() { return handleError(function (arg0, arg1, arg2) {
8128
8128
  stateSet(getObject(arg0), getObject(arg1), getObject(arg2));
8129
8129
  }, arguments) };
8130
- imports.wbg.__wbg_stateSlice_6e1624d9003b9be4 = function(arg0, arg1, arg2) {
8130
+ imports.wbg.__wbg_stateSlice_90b6948816597251 = function(arg0, arg1, arg2) {
8131
8131
  const ret = stateSlice(takeObject(arg0), arg1 >>> 0, arg2 >>> 0);
8132
8132
  return addHeapObject(ret);
8133
8133
  };
8134
- imports.wbg.__wbg_stateValue_39cda262b05c7733 = function(arg0) {
8134
+ imports.wbg.__wbg_stateValue_26fc5effdba0aa3e = function(arg0) {
8135
8135
  const ret = stateValue(takeObject(arg0));
8136
8136
  return addHeapObject(ret);
8137
8137
  };
@@ -8171,7 +8171,7 @@ function __wbg_get_imports() {
8171
8171
  const ret = VersionVector.__wrap(arg0);
8172
8172
  return addHeapObject(ret);
8173
8173
  };
8174
- imports.wbg.__wbg_warn_86d516f31af68498 = function(arg0, arg1) {
8174
+ imports.wbg.__wbg_warn_3405af8b3bbb5a6a = function(arg0, arg1) {
8175
8175
  console.warn(getStringFromWasm0(arg0, arg1));
8176
8176
  };
8177
8177
  imports.wbg.__wbindgen_as_number = function(arg0) {
@@ -8206,11 +8206,11 @@ function __wbg_get_imports() {
8206
8206
  const ret = false;
8207
8207
  return ret;
8208
8208
  };
8209
- imports.wbg.__wbindgen_closure_wrapper278 = function(arg0, arg1, arg2) {
8209
+ imports.wbg.__wbindgen_closure_wrapper283 = function(arg0, arg1, arg2) {
8210
8210
  const ret = makeMutClosure(arg0, arg1, 15, __wbg_adapter_58);
8211
8211
  return addHeapObject(ret);
8212
8212
  };
8213
- imports.wbg.__wbindgen_closure_wrapper536 = function(arg0, arg1, arg2) {
8213
+ imports.wbg.__wbindgen_closure_wrapper542 = function(arg0, arg1, arg2) {
8214
8214
  const ret = makeMutClosure(arg0, arg1, 15, __wbg_adapter_61);
8215
8215
  return addHeapObject(ret);
8216
8216
  };
Binary file
@@ -352,6 +352,6 @@ export const __wbindgen_exn_store: (a: number) => void;
352
352
  export const __wbindgen_free: (a: number, b: number, c: number) => void;
353
353
  export const __wbindgen_export_4: WebAssembly.Table;
354
354
  export const __wbindgen_add_to_stack_pointer: (a: number) => number;
355
- export const _dyn_core_f0fd674eaa06beef___ops__function__FnMut_______Output______as_wasm_bindgen_1b359ed29b81b352___closure__WasmClosure___describe__invoke___wasm_bindgen_1b359ed29b81b352___JsValue_____: (a: number, b: number, c: number) => void;
356
- export const _dyn_core_f0fd674eaa06beef___ops__function__FnMut_____Output______as_wasm_bindgen_1b359ed29b81b352___closure__WasmClosure___describe__invoke______: (a: number, b: number) => void;
355
+ export const _dyn_core_ed718c3d60ebd546___ops__function__FnMut_______Output______as_wasm_bindgen_cfd5deec16e3bd1c___closure__WasmClosure___describe__invoke___wasm_bindgen_cfd5deec16e3bd1c___JsValue_____: (a: number, b: number, c: number) => void;
356
+ export const _dyn_core_ed718c3d60ebd546___ops__function__FnMut_____Output______as_wasm_bindgen_cfd5deec16e3bd1c___closure__WasmClosure___describe__invoke______: (a: number, b: number) => void;
357
357
  export const __wbindgen_start: () => void;