@loro-dev/flock 2.0.1 → 2.1.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loro-dev/flock",
3
- "version": "2.0.1",
3
+ "version": "2.1.1",
4
4
  "description": "TypeScript bindings for the Flock CRDT with mergeable export/import utilities.",
5
5
  "exports": {
6
6
  ".": {
@@ -1,5 +1,7 @@
1
1
  import type * as MoonBit from "./moonbit.d.ts";
2
2
 
3
+ export function _int64_helper_for_test(): any;
4
+
3
5
  export function subscribe_ffi(self: any,
4
6
  listener: any): any;
5
7
 
@@ -16,7 +18,7 @@ export function get_mvr_ffi(self: any,
16
18
 
17
19
  export function put_mvr_ffi(self: any,
18
20
  key: any,
19
- value: any,
21
+ value: MoonBit.String,
20
22
  now: any): MoonBit.Unit;
21
23
 
22
24
  export function digest_hex_ffi(self: any): any;
@@ -33,13 +35,13 @@ export function delete_ffi(self: any,
33
35
 
34
36
  export function put_with_meta_ffi(self: any,
35
37
  key: any,
36
- value: any,
38
+ value: MoonBit.String,
37
39
  metadata: any,
38
40
  now: any): MoonBit.Unit;
39
41
 
40
42
  export function put_json_ffi(self: any,
41
43
  key: any,
42
- value: any,
44
+ value: MoonBit.String,
43
45
  now: any): MoonBit.Unit;
44
46
 
45
47
  export function check_invariants_ffi(self: any): MoonBit.Unit;
@@ -53,14 +55,15 @@ export function import_json_ffi(self: any,
53
55
  json: any): any;
54
56
 
55
57
  export function export_json_ffi(self: any,
56
- from: any): any;
58
+ from: any,
59
+ prune_tombstones_before: any): any;
57
60
 
58
61
  export function get_ffi(self: any,
59
62
  key: any): any;
60
63
 
61
64
  export function put_ffi(self: any,
62
65
  key: any,
63
- value: any,
66
+ value: MoonBit.String,
64
67
  now: MoonBit.Double): MoonBit.Unit;
65
68
 
66
69
  export function newFlock(peer_id: MoonBit.Bytes): any;
@@ -76,7 +79,8 @@ export function import_json(self: any,
76
79
  hooks$46$opt: any): MoonBit.Result<any, any>;
77
80
 
78
81
  export function export_json(self: any,
79
- from: MoonBit.UnboxedOption<any>): any;
82
+ from: MoonBit.UnboxedOption<any>,
83
+ prune_tombstones_before$46$opt: MoonBit.UnboxedOption<any>): any;
80
84
 
81
85
  export function version(self: any): any;
82
86