loro-crdt 1.8.4 → 1.8.5

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.
@@ -4,30 +4,21 @@ import * as wasm from "./loro_wasm_bg.wasm";
4
4
  import * as imports from "./loro_wasm_bg.js";
5
5
 
6
6
  if (wasm.__wbindgen_start) {
7
- imports.__wbg_set_wasm(wasm);
8
- // Seed wasm-bindgen's externref table so constants like `true`/`false`
9
- // don't alias arbitrary externrefs when we instantiate manually.
10
- if (typeof imports.__wbindgen_init_externref_table === "function") {
11
- imports.__wbindgen_init_externref_table();
12
- }
13
- wasm.__wbindgen_start();
14
- } else if ('Bun' in globalThis) {
15
- const { instance } = await WebAssembly.instantiateStreaming(fetch(Bun.pathToFileURL(wasm.default)), {
16
- "./loro_wasm_bg.js": imports,
17
- });
18
- imports.__wbg_set_wasm(instance.exports);
19
- // Bun path needs the same externref initialisation.
20
- if (typeof imports.__wbindgen_init_externref_table === "function") {
21
- imports.__wbindgen_init_externref_table();
22
- }
7
+ imports.__wbg_set_wasm(wasm);
8
+ wasm.__wbindgen_start();
9
+ } else if ("Bun" in globalThis) {
10
+ const { instance } = await WebAssembly.instantiateStreaming(
11
+ fetch(Bun.pathToFileURL(wasm.default)),
12
+ {
13
+ "./loro_wasm_bg.js": imports,
14
+ },
15
+ );
16
+ imports.__wbg_set_wasm(instance.exports);
23
17
  } else {
24
- const wkmod = await import("./loro_wasm_bg.wasm");
25
- const instance = new WebAssembly.Instance(wkmod.default, {
26
- "./loro_wasm_bg.js": imports,
27
- });
28
- imports.__wbg_set_wasm(instance.exports);
29
- if (typeof imports.__wbindgen_init_externref_table === "function") {
30
- imports.__wbindgen_init_externref_table();
31
- }
18
+ const wkmod = await import("./loro_wasm_bg.wasm");
19
+ const instance = new WebAssembly.Instance(wkmod.default, {
20
+ "./loro_wasm_bg.js": imports,
21
+ });
22
+ imports.__wbg_set_wasm(instance.exports);
32
23
  }
33
24
  export * from "./loro_wasm_bg.js";
@@ -7007,12 +7007,12 @@ export function __wbindgen_cb_drop(arg0) {
7007
7007
  return ret;
7008
7008
  };
7009
7009
 
7010
- export function __wbindgen_closure_wrapper710(arg0, arg1, arg2) {
7011
- const ret = makeMutClosure(arg0, arg1, 12, __wbg_adapter_60);
7010
+ export function __wbindgen_closure_wrapper709(arg0, arg1, arg2) {
7011
+ const ret = makeMutClosure(arg0, arg1, 10, __wbg_adapter_60);
7012
7012
  return addHeapObject(ret);
7013
7013
  };
7014
7014
 
7015
- export function __wbindgen_closure_wrapper713(arg0, arg1, arg2) {
7015
+ export function __wbindgen_closure_wrapper711(arg0, arg1, arg2) {
7016
7016
  const ret = makeMutClosure(arg0, arg1, 10, __wbg_adapter_63);
7017
7017
  return addHeapObject(ret);
7018
7018
  };
Binary file
@@ -7017,12 +7017,12 @@ module.exports.__wbindgen_cb_drop = function(arg0) {
7017
7017
  return ret;
7018
7018
  };
7019
7019
 
7020
- module.exports.__wbindgen_closure_wrapper710 = function(arg0, arg1, arg2) {
7021
- const ret = makeMutClosure(arg0, arg1, 12, __wbg_adapter_60);
7020
+ module.exports.__wbindgen_closure_wrapper709 = function(arg0, arg1, arg2) {
7021
+ const ret = makeMutClosure(arg0, arg1, 10, __wbg_adapter_60);
7022
7022
  return addHeapObject(ret);
7023
7023
  };
7024
7024
 
7025
- module.exports.__wbindgen_closure_wrapper713 = function(arg0, arg1, arg2) {
7025
+ module.exports.__wbindgen_closure_wrapper711 = function(arg0, arg1, arg2) {
7026
7026
  const ret = makeMutClosure(arg0, arg1, 10, __wbg_adapter_63);
7027
7027
  return addHeapObject(ret);
7028
7028
  };
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "loro-crdt",
3
- "version": "1.8.4",
3
+ "version": "1.8.5",
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",
package/web/loro_wasm.js CHANGED
@@ -6948,11 +6948,11 @@ function __wbg_get_imports() {
6948
6948
  const ret = false;
6949
6949
  return ret;
6950
6950
  };
6951
- imports.wbg.__wbindgen_closure_wrapper710 = function(arg0, arg1, arg2) {
6952
- const ret = makeMutClosure(arg0, arg1, 12, __wbg_adapter_60);
6951
+ imports.wbg.__wbindgen_closure_wrapper709 = function(arg0, arg1, arg2) {
6952
+ const ret = makeMutClosure(arg0, arg1, 10, __wbg_adapter_60);
6953
6953
  return addHeapObject(ret);
6954
6954
  };
6955
- imports.wbg.__wbindgen_closure_wrapper713 = function(arg0, arg1, arg2) {
6955
+ imports.wbg.__wbindgen_closure_wrapper711 = function(arg0, arg1, arg2) {
6956
6956
  const ret = makeMutClosure(arg0, arg1, 10, __wbg_adapter_63);
6957
6957
  return addHeapObject(ret);
6958
6958
  };
Binary file