loro-crdt 1.5.8 โ 1.5.10
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/CHANGELOG.md +12 -62
- package/base64/index.js +17 -8
- package/base64/loro_wasm.d.ts +5 -0
- package/base64/loro_wasm_bg-90680301.js +64 -0
- package/bundler/loro_wasm.d.ts +5 -0
- package/bundler/loro_wasm_bg.js +12 -3
- package/bundler/loro_wasm_bg.wasm +0 -0
- package/bundler/loro_wasm_bg.wasm.d.ts +1 -0
- package/nodejs/loro_wasm.d.ts +5 -0
- package/nodejs/loro_wasm.js +12 -3
- package/nodejs/loro_wasm_bg.wasm +0 -0
- package/nodejs/loro_wasm_bg.wasm.d.ts +1 -0
- package/package.json +1 -1
- package/web/loro_wasm.d.ts +6 -0
- package/web/loro_wasm.js +12 -3
- package/web/loro_wasm_bg.wasm +0 -0
- package/web/loro_wasm_bg.wasm.d.ts +1 -0
- package/base64/loro_wasm_bg-a708ca02.js +0 -64
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.5.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f8bef58: Fix local event error (#763)
|
|
8
|
+
|
|
9
|
+
## 1.5.9
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- c2e6d49: fix(wasm): serialize op with bigint support @synoet
|
|
14
|
+
|
|
3
15
|
## 1.5.8
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -49,7 +61,6 @@
|
|
|
49
61
|
### Patch Changes
|
|
50
62
|
|
|
51
63
|
- 742cf7d: Fix memory leak caused by wasm-bindgen
|
|
52
|
-
|
|
53
64
|
- https://github.com/rustwasm/wasm-bindgen/issues/3854
|
|
54
65
|
|
|
55
66
|
## 1.5.0
|
|
@@ -296,7 +307,6 @@
|
|
|
296
307
|
- ddafb7e: feat: diff, applyDiff, and revertTo #610
|
|
297
308
|
|
|
298
309
|
Add new version-control-related primitives:
|
|
299
|
-
|
|
300
310
|
- **`diff(from, to)`**: calculate the difference between two versions. The returned results have similar structures to the differences in events.
|
|
301
311
|
- **`revertTo(targetVersion)`**: revert the document back to the target version. The difference between this and `checkout(targetVersion)` is this method will generate a series of new operations, which will transform the current doc into the same as the target version.
|
|
302
312
|
- **`applyDiff(diff)`**: you can use it to apply the differences generated from `diff(from, to)`.
|
|
@@ -446,7 +456,6 @@
|
|
|
446
456
|
### Patch Changes
|
|
447
457
|
|
|
448
458
|
- 3b7a738: Add getShallowValue and toJsonWIthReplacer
|
|
449
|
-
|
|
450
459
|
- Add getShallowValue for each container (#581)
|
|
451
460
|
- Implement toJsonWithReplacer method for LoroDoc to customize JSON serialization (#582)
|
|
452
461
|
- Rename importUpdateBatch into importBatch & refine type (#580)
|
|
@@ -606,11 +615,9 @@
|
|
|
606
615
|
- Performance improvement and bug fixes
|
|
607
616
|
|
|
608
617
|
### ๐ Features
|
|
609
|
-
|
|
610
618
|
- Redact (#504)
|
|
611
619
|
|
|
612
620
|
### ๐ Bug Fixes
|
|
613
|
-
|
|
614
621
|
- Ffi Subscription (#505)
|
|
615
622
|
- Ffi remove try unwrap (#506)
|
|
616
623
|
- Movable list undo impl (#509)
|
|
@@ -618,18 +625,15 @@
|
|
|
618
625
|
- IsContainerDeleted cache err (#513)
|
|
619
626
|
|
|
620
627
|
### ๐ Documentation
|
|
621
|
-
|
|
622
628
|
- Refine wasm docs
|
|
623
629
|
|
|
624
630
|
### โก Performance
|
|
625
|
-
|
|
626
631
|
- Optimize shrink frontiers
|
|
627
632
|
- Optimize batch container registrations on arena (#510)
|
|
628
633
|
- Optimize high concurrency performance (#514)
|
|
629
634
|
- Use better data structure for frontiers (#515)
|
|
630
635
|
|
|
631
636
|
### Perf
|
|
632
|
-
|
|
633
637
|
- Commit speed & text insert cache (#511)
|
|
634
638
|
|
|
635
639
|
## 1.0.0-alpha.5
|
|
@@ -637,11 +641,9 @@
|
|
|
637
641
|
### Patch Changes
|
|
638
642
|
|
|
639
643
|
- ## Fix
|
|
640
|
-
|
|
641
644
|
- Use release build
|
|
642
645
|
|
|
643
646
|
## Test
|
|
644
|
-
|
|
645
647
|
- Add compatibility tests (#503)
|
|
646
648
|
|
|
647
649
|
## 1.0.0-alpha.4
|
|
@@ -649,7 +651,6 @@
|
|
|
649
651
|
### Patch Changes
|
|
650
652
|
|
|
651
653
|
- ### ๐ Features
|
|
652
|
-
|
|
653
654
|
- _(wasm)_ Commit message & get pending ops length (#477)
|
|
654
655
|
- Update text by line (#480)
|
|
655
656
|
- Add clear methods (#478)
|
|
@@ -660,7 +661,6 @@
|
|
|
660
661
|
- Add import status (#494)
|
|
661
662
|
|
|
662
663
|
### ๐ Bug Fixes
|
|
663
|
-
|
|
664
664
|
- Get correct tree_cache current vv when retreating (#476)
|
|
665
665
|
- Gc snapshot error (#481)
|
|
666
666
|
- Checkout into middle of marks
|
|
@@ -672,7 +672,6 @@
|
|
|
672
672
|
- Create event cannot find parent (#498)
|
|
673
673
|
|
|
674
674
|
### ๐ Refactor
|
|
675
|
-
|
|
676
675
|
- [**breaking**] Don't wait for `commit` to update version info
|
|
677
676
|
- Avoid footgun of impl ord for cid
|
|
678
677
|
- Loro import function should return LoroEncodeError (#487)
|
|
@@ -681,7 +680,6 @@
|
|
|
681
680
|
- [**breaking**] List state snapshot schema for v1.0 (#485)
|
|
682
681
|
|
|
683
682
|
### โก Performance
|
|
684
|
-
|
|
685
683
|
- Make shrink frontiers faster when the peer num is large (#482)
|
|
686
684
|
- Optimize tree cache find children speed
|
|
687
685
|
- Avoid memory leak when forking repeatedly (#500)
|
|
@@ -690,12 +688,10 @@
|
|
|
690
688
|
- Optimize diff calc cache use (#475)
|
|
691
689
|
|
|
692
690
|
### ๐งช Testing
|
|
693
|
-
|
|
694
691
|
- Make awareness more robust
|
|
695
692
|
- Bench large folder with 1M files & 100M ops (#495)
|
|
696
693
|
|
|
697
694
|
### โ๏ธ Miscellaneous Tasks
|
|
698
|
-
|
|
699
695
|
- Use cached diff calc
|
|
700
696
|
|
|
701
697
|
## 1.0.0-alpha.3
|
|
@@ -703,20 +699,16 @@
|
|
|
703
699
|
### Patch Changes
|
|
704
700
|
|
|
705
701
|
- ### ๐ Bug Fixes
|
|
706
|
-
|
|
707
702
|
- Cursor behavior when using gc-snapshot (#472)
|
|
708
703
|
- _(wasm)_ Type err
|
|
709
704
|
|
|
710
705
|
### โ๏ธ Miscellaneous Tasks
|
|
711
|
-
|
|
712
706
|
- Make tree parent id pub on loro crate
|
|
713
707
|
|
|
714
708
|
### Feat
|
|
715
|
-
|
|
716
709
|
- Allow editing on detached mode (#473)
|
|
717
710
|
|
|
718
711
|
### Fix
|
|
719
|
-
|
|
720
712
|
- Get tree's alive children correctly (#474)
|
|
721
713
|
- Should not emit event when exporting gc-snapshot (#471)
|
|
722
714
|
|
|
@@ -725,11 +717,9 @@
|
|
|
725
717
|
### Patch Changes
|
|
726
718
|
|
|
727
719
|
- ### ๐ Features
|
|
728
|
-
|
|
729
720
|
- Fork doc at the target version (#469)
|
|
730
721
|
|
|
731
722
|
### ๐ Refactor
|
|
732
|
-
|
|
733
723
|
- BREAKING CHANGE: Use hierarchy value for tree value (#470)
|
|
734
724
|
|
|
735
725
|
## 1.0.0-alpha.1
|
|
@@ -737,24 +727,20 @@
|
|
|
737
727
|
### Patch Changes
|
|
738
728
|
|
|
739
729
|
- ### ๐ Features
|
|
740
|
-
|
|
741
730
|
- Get shallow value of doc (#463)
|
|
742
731
|
- Add state only snapshot & refine check slow test
|
|
743
732
|
- Add new cid method to js binding
|
|
744
733
|
- Jsonpath experimental support (#466)
|
|
745
734
|
|
|
746
735
|
### ๐ Bug Fixes
|
|
747
|
-
|
|
748
736
|
- Raise error if perform action on a deleted container (#465)
|
|
749
737
|
- Raise error if moving a deleted node
|
|
750
738
|
- Export snapshot error on a gc doc
|
|
751
739
|
|
|
752
740
|
### ๐ Refactor
|
|
753
|
-
|
|
754
741
|
- Tree contains & isDeleted (#467)
|
|
755
742
|
|
|
756
743
|
### ๐งช Testing
|
|
757
|
-
|
|
758
744
|
- Check state correctness on shallow doc
|
|
759
745
|
|
|
760
746
|
## 1.0.0-alpha.0
|
|
@@ -793,27 +779,22 @@
|
|
|
793
779
|
### Patch Changes
|
|
794
780
|
|
|
795
781
|
- 38b4bcf: Add text update API
|
|
796
|
-
|
|
797
782
|
- Remove the patch for crypto
|
|
798
783
|
- Add text update API (#404)
|
|
799
784
|
- Check invalid root container name (#411)
|
|
800
785
|
|
|
801
786
|
### ๐ Bug Fixes
|
|
802
|
-
|
|
803
787
|
- Workaround lldb bug make loro crate debuggable (#414)
|
|
804
788
|
- Delete the **bring back** tree node from the undo container remap (#423)
|
|
805
789
|
|
|
806
790
|
### ๐ Documentation
|
|
807
|
-
|
|
808
791
|
- Fix typo
|
|
809
792
|
- Refine docs about event (#417)
|
|
810
793
|
|
|
811
794
|
### ๐จ Styling
|
|
812
|
-
|
|
813
795
|
- Use clippy to perf code (#407)
|
|
814
796
|
|
|
815
797
|
### โ๏ธ Miscellaneous Tasks
|
|
816
|
-
|
|
817
798
|
- Add test tools (#410)
|
|
818
799
|
|
|
819
800
|
## 0.16.7
|
|
@@ -823,24 +804,20 @@
|
|
|
823
804
|
- 45c98d5: Better text APIs and bug fixes
|
|
824
805
|
|
|
825
806
|
### ๐ Features
|
|
826
|
-
|
|
827
807
|
- Add insert_utf8 and delete_utf8 for Rust Text API (#396)
|
|
828
808
|
- Add text iter (#400)
|
|
829
809
|
- Add more text api (#398)
|
|
830
810
|
|
|
831
811
|
### ๐ Bug Fixes
|
|
832
|
-
|
|
833
812
|
- Tree undo when processing deleted node (#399)
|
|
834
813
|
- Tree diff calc children should be sorted by idlp (#401)
|
|
835
814
|
- When computing the len of the map, do not count elements that are None (#402)
|
|
836
815
|
|
|
837
816
|
### ๐ Documentation
|
|
838
|
-
|
|
839
817
|
- Update wasm docs
|
|
840
818
|
- Rm experimental warning
|
|
841
819
|
|
|
842
820
|
### โ๏ธ Miscellaneous Tasks
|
|
843
|
-
|
|
844
821
|
- Update fuzz config
|
|
845
822
|
- Pnpm
|
|
846
823
|
- Rename position to fractional_index (#381)
|
|
@@ -883,7 +860,6 @@
|
|
|
883
860
|
- 34f6064: Better undo events & transform cursors by undo manager (#369)
|
|
884
861
|
|
|
885
862
|
#### ๐งช Testing
|
|
886
|
-
|
|
887
863
|
- Enable compatibility test (#367)
|
|
888
864
|
|
|
889
865
|
## 0.16.1
|
|
@@ -891,7 +867,6 @@
|
|
|
891
867
|
### Patch Changes
|
|
892
868
|
|
|
893
869
|
- 5cd80b0: Refine undo impl
|
|
894
|
-
|
|
895
870
|
- Add "undo" origin for undo and redo event
|
|
896
871
|
- Allow users to skip certain local operations
|
|
897
872
|
- Skip undo/redo ops that are not visible to users
|
|
@@ -904,23 +879,19 @@
|
|
|
904
879
|
- c12c2b9: Movable Tree Children & Undo
|
|
905
880
|
|
|
906
881
|
#### ๐ Bug Fixes
|
|
907
|
-
|
|
908
882
|
- Refine error message on corrupted data (#356)
|
|
909
883
|
- Add MovableList to CONTAINER_TYPES (#359)
|
|
910
884
|
- Better jitter for fractional index (#360)
|
|
911
885
|
|
|
912
886
|
#### ๐งช Testing
|
|
913
|
-
|
|
914
887
|
- Add compatibility tests (#357)
|
|
915
888
|
|
|
916
889
|
#### Feat
|
|
917
|
-
|
|
918
890
|
- Make the encoding format forward and backward compatible (#329)
|
|
919
891
|
- Undo (#361)
|
|
920
892
|
- Use fractional index to order the children of the tree (#298)
|
|
921
893
|
|
|
922
894
|
#### ๐ Bug Fixes
|
|
923
|
-
|
|
924
895
|
- Tree fuzz sort value (#351)
|
|
925
896
|
- Upgrade wasm-bindgen to fix str free err (#353)
|
|
926
897
|
|
|
@@ -931,13 +902,11 @@
|
|
|
931
902
|
- 43506cc: Fix unsound issue caused by wasm-bindgen
|
|
932
903
|
|
|
933
904
|
#### ๐ Bug Fixes
|
|
934
|
-
|
|
935
905
|
- Fix potential movable list bug (#354)
|
|
936
906
|
- Tree fuzz sort value (#351)
|
|
937
907
|
- Upgrade wasm-bindgen to fix str free err (#353)
|
|
938
908
|
|
|
939
909
|
#### ๐ Documentation
|
|
940
|
-
|
|
941
910
|
- Simplify readme (#352)
|
|
942
911
|
|
|
943
912
|
## 0.15.2
|
|
@@ -947,15 +916,12 @@
|
|
|
947
916
|
- e30678d: Perf: fix deletions merge
|
|
948
917
|
|
|
949
918
|
#### ๐ Bug Fixes
|
|
950
|
-
|
|
951
919
|
- _(wasm)_ Movable list .kind() (#342)
|
|
952
920
|
|
|
953
921
|
#### โก Performance
|
|
954
|
-
|
|
955
922
|
- Delete span merge err (#348)
|
|
956
923
|
|
|
957
924
|
#### โ๏ธ Miscellaneous Tasks
|
|
958
|
-
|
|
959
925
|
- Warn missing debug impl (#347)
|
|
960
926
|
|
|
961
927
|
<!-- generated by git-cliff -->
|
|
@@ -967,7 +933,6 @@
|
|
|
967
933
|
- 04c6290: Bug fixes and improvements.
|
|
968
934
|
|
|
969
935
|
#### ๐ Bug Fixes
|
|
970
|
-
|
|
971
936
|
- Impl a few unimplemented! for movable tree (#335)
|
|
972
937
|
- Refine ts type; reject invalid operations (#334)
|
|
973
938
|
- Get cursor err on text and movable list (#337)
|
|
@@ -975,12 +940,10 @@
|
|
|
975
940
|
- Upgrade generic-btree to allow large btree (#344)
|
|
976
941
|
|
|
977
942
|
#### ๐ Documentation
|
|
978
|
-
|
|
979
943
|
- Add warn(missing_docs) to loro and loro-wasm (#339)
|
|
980
944
|
- Minor fix on set_change_merge_interval api (#341)
|
|
981
945
|
|
|
982
946
|
#### โ๏ธ Miscellaneous Tasks
|
|
983
|
-
|
|
984
947
|
- Skip the checking if not debug_assertions (#340)
|
|
985
948
|
|
|
986
949
|
<!-- generated by git-cliff -->
|
|
@@ -1028,7 +991,6 @@
|
|
|
1028
991
|
- 24cf9b9: Bug Fix
|
|
1029
992
|
|
|
1030
993
|
#### ๐ Bug Fixes
|
|
1031
|
-
|
|
1032
994
|
- Attached container can be inserted to `Map` or `List` (#331)
|
|
1033
995
|
|
|
1034
996
|
## 0.14.5
|
|
@@ -1038,11 +1000,9 @@
|
|
|
1038
1000
|
- 73e3ba5: Bug Fix
|
|
1039
1001
|
|
|
1040
1002
|
#### ๐ Bug Fixes
|
|
1041
|
-
|
|
1042
1003
|
- _(js)_ Allow convert from undefined to LoroValue (#323)
|
|
1043
1004
|
|
|
1044
1005
|
#### ๐ Refactor
|
|
1045
|
-
|
|
1046
1006
|
- Refine ts type (#322)
|
|
1047
1007
|
|
|
1048
1008
|
## 0.14.4
|
|
@@ -1050,12 +1010,10 @@
|
|
|
1050
1010
|
### Patch Changes
|
|
1051
1011
|
|
|
1052
1012
|
- 598d97e: ### ๐ Refactor
|
|
1053
|
-
|
|
1054
1013
|
- Refine the TS Type of Awareness
|
|
1055
1014
|
- Parse Uint8array to LoroValue::Binary (#320)
|
|
1056
1015
|
|
|
1057
1016
|
### ๐ Documentation
|
|
1058
|
-
|
|
1059
1017
|
- Update how to publish new npm pkgs
|
|
1060
1018
|
|
|
1061
1019
|
## 0.14.3
|
|
@@ -1069,7 +1027,6 @@
|
|
|
1069
1027
|
### Patch Changes
|
|
1070
1028
|
|
|
1071
1029
|
- Refactor rename `StablePosition` to `Cursor`
|
|
1072
|
-
|
|
1073
1030
|
- Rename stable pos to cursor (#317)
|
|
1074
1031
|
|
|
1075
1032
|
<!-- generated by git-cliff -->
|
|
@@ -1081,7 +1038,6 @@
|
|
|
1081
1038
|
- Supports Cursors
|
|
1082
1039
|
|
|
1083
1040
|
#### ๐ Features
|
|
1084
|
-
|
|
1085
1041
|
- Cursors (#290)
|
|
1086
1042
|
|
|
1087
1043
|
## 0.14.0
|
|
@@ -1091,27 +1047,22 @@
|
|
|
1091
1047
|
- Improved API
|
|
1092
1048
|
|
|
1093
1049
|
### ๐ Features
|
|
1094
|
-
|
|
1095
1050
|
- Access value/container by path (#308)
|
|
1096
1051
|
- Decode import blob meta (#307)
|
|
1097
1052
|
|
|
1098
1053
|
### ๐ Bug Fixes
|
|
1099
|
-
|
|
1100
1054
|
- Decode iter return result by updating columnar to 0.3.4 (#309)
|
|
1101
1055
|
|
|
1102
1056
|
### ๐ Refactor
|
|
1103
|
-
|
|
1104
1057
|
- Replace "local" and "fromCheckout" in event with "triggeredBy" (#312)
|
|
1105
1058
|
- Add concrete type for each different container (#313)
|
|
1106
1059
|
- _(ts)_ Make types better (#315)
|
|
1107
1060
|
|
|
1108
1061
|
### ๐ Documentation
|
|
1109
|
-
|
|
1110
1062
|
- Refine wasm docs (#304)
|
|
1111
1063
|
- Clarify that peer id should be convertible to a u64 (#306)
|
|
1112
1064
|
|
|
1113
1065
|
### โ๏ธ Miscellaneous Tasks
|
|
1114
|
-
|
|
1115
1066
|
- Add coverage report cli (#311)
|
|
1116
1067
|
|
|
1117
1068
|
## 0.13.1
|
|
@@ -1151,7 +1102,6 @@
|
|
|
1151
1102
|
### Minor Changes
|
|
1152
1103
|
|
|
1153
1104
|
- Fix a few bugs and include BREAKING CHANG refactors
|
|
1154
|
-
|
|
1155
1105
|
- fix: should not reset the state when calling checkout to latest (#265)
|
|
1156
1106
|
- refactor: only send a event for one `import`/`transaction`/`checkout` (#263)
|
|
1157
1107
|
- perf: optimize snapshot encoding speed (#264)
|
package/base64/index.js
CHANGED
|
@@ -2266,6 +2266,7 @@ class LoroDoc {
|
|
|
2266
2266
|
* @param mode - The export mode to use. Can be one of:
|
|
2267
2267
|
* - `{ mode: "snapshot" }`: Export a full snapshot of the document.
|
|
2268
2268
|
* - `{ mode: "update", from?: VersionVector }`: Export updates from the given version vector.
|
|
2269
|
+
* If `from` is not provided, it will export the whole history of the document.
|
|
2269
2270
|
* - `{ mode: "updates-in-range", spans: { id: ID, len: number }[] }`: Export updates within the specified ID spans.
|
|
2270
2271
|
* - `{ mode: "shallow-snapshot", frontiers: Frontiers }`: Export a garbage-collected snapshot up to the given frontiers.
|
|
2271
2272
|
*
|
|
@@ -6171,6 +6172,14 @@ class UndoManager {
|
|
|
6171
6172
|
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
6172
6173
|
}
|
|
6173
6174
|
}
|
|
6175
|
+
/**
|
|
6176
|
+
* Get the peer id of the undo manager.
|
|
6177
|
+
* @returns {PeerID}
|
|
6178
|
+
*/
|
|
6179
|
+
peer() {
|
|
6180
|
+
const ret = wasm.undomanager_peer(this.__wbg_ptr);
|
|
6181
|
+
return takeObject(ret);
|
|
6182
|
+
}
|
|
6174
6183
|
groupStart() {
|
|
6175
6184
|
try {
|
|
6176
6185
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
@@ -6748,7 +6757,7 @@ function __wbg_node_02999533c4ea02e3(arg0) {
|
|
|
6748
6757
|
const ret = getObject(arg0).node;
|
|
6749
6758
|
return addHeapObject(ret);
|
|
6750
6759
|
}
|
|
6751
|
-
function
|
|
6760
|
+
function __wbg_now_439b66158bc4f246() {
|
|
6752
6761
|
const ret = Date.now();
|
|
6753
6762
|
return ret;
|
|
6754
6763
|
}
|
|
@@ -6862,11 +6871,11 @@ function __wbindgen_cb_drop(arg0) {
|
|
|
6862
6871
|
const ret = false;
|
|
6863
6872
|
return ret;
|
|
6864
6873
|
}
|
|
6865
|
-
function
|
|
6874
|
+
function __wbindgen_closure_wrapper562(arg0, arg1, arg2) {
|
|
6866
6875
|
const ret = makeMutClosure(arg0, arg1, 10, __wbg_adapter_60);
|
|
6867
6876
|
return addHeapObject(ret);
|
|
6868
6877
|
}
|
|
6869
|
-
function
|
|
6878
|
+
function __wbindgen_closure_wrapper565(arg0, arg1, arg2) {
|
|
6870
6879
|
const ret = makeMutClosure(arg0, arg1, 8, __wbg_adapter_63);
|
|
6871
6880
|
return addHeapObject(ret);
|
|
6872
6881
|
}
|
|
@@ -7044,7 +7053,7 @@ var imports = /*#__PURE__*/Object.freeze({
|
|
|
7044
7053
|
__wbg_next_928df8c15fc0c9b0: __wbg_next_928df8c15fc0c9b0,
|
|
7045
7054
|
__wbg_next_9dc0926f351c7090: __wbg_next_9dc0926f351c7090,
|
|
7046
7055
|
__wbg_node_02999533c4ea02e3: __wbg_node_02999533c4ea02e3,
|
|
7047
|
-
|
|
7056
|
+
__wbg_now_439b66158bc4f246: __wbg_now_439b66158bc4f246,
|
|
7048
7057
|
__wbg_ownKeys_b16312a839a4152c: __wbg_ownKeys_b16312a839a4152c,
|
|
7049
7058
|
__wbg_process_5c1d670bc53614b8: __wbg_process_5c1d670bc53614b8,
|
|
7050
7059
|
__wbg_push_e7d7247e69dad3ee: __wbg_push_e7d7247e69dad3ee,
|
|
@@ -7072,8 +7081,8 @@ var imports = /*#__PURE__*/Object.freeze({
|
|
|
7072
7081
|
__wbindgen_bigint_get_as_i64: __wbindgen_bigint_get_as_i64,
|
|
7073
7082
|
__wbindgen_boolean_get: __wbindgen_boolean_get,
|
|
7074
7083
|
__wbindgen_cb_drop: __wbindgen_cb_drop,
|
|
7075
|
-
|
|
7076
|
-
|
|
7084
|
+
__wbindgen_closure_wrapper562: __wbindgen_closure_wrapper562,
|
|
7085
|
+
__wbindgen_closure_wrapper565: __wbindgen_closure_wrapper565,
|
|
7077
7086
|
__wbindgen_debug_string: __wbindgen_debug_string,
|
|
7078
7087
|
__wbindgen_error_new: __wbindgen_error_new,
|
|
7079
7088
|
__wbindgen_in: __wbindgen_in,
|
|
@@ -7109,7 +7118,7 @@ var imports = /*#__PURE__*/Object.freeze({
|
|
|
7109
7118
|
// Without this patch, Cloudflare Worker would raise issue like: "Uncaught TypeError: wasm2.__wbindgen_start is not a function"
|
|
7110
7119
|
|
|
7111
7120
|
|
|
7112
|
-
import loro_wasm_bg_js from './loro_wasm_bg-
|
|
7121
|
+
import loro_wasm_bg_js from './loro_wasm_bg-90680301.js';
|
|
7113
7122
|
const instance = new WebAssembly.Instance(loro_wasm_bg_js(), {
|
|
7114
7123
|
"./loro_wasm_bg.js": imports,
|
|
7115
7124
|
});
|
|
@@ -7414,4 +7423,4 @@ function idStrToId(idStr) {
|
|
|
7414
7423
|
};
|
|
7415
7424
|
}
|
|
7416
7425
|
|
|
7417
|
-
export { Awareness, AwarenessWasm, ChangeModifier, Cursor, EphemeralStore, EphemeralStoreWasm, LORO_VERSION, Loro, LoroCounter, LoroDoc, LoroList, LoroMap, LoroMovableList, LoroText, LoroTree, LoroTreeNode, UndoManager, VersionVector, __wbg_String_8f0eb39a4a4c2f66, __wbg_apply_9bb7fe8fff013a3f, __wbg_buffer_ef9774282e5dab94, __wbg_call_0ad083564791763a, __wbg_call_a34b6b4765f27be0, __wbg_call_d00953b926be4879, __wbg_call_efe5a4db7065d1a2, __wbg_changemodifier_new, __wbg_crypto_ed58b8e10a292839, __wbg_cursor_new, __wbg_done_f4c254830a095eaf, __wbg_entries_4dce6361e3ba6fbc, __wbg_entries_83beb641792ccb9c, __wbg_error_7534b8e9a36f1ab4, __wbg_error_9912f7d6d7835a4b, __wbg_from_3aa0fcaa8eef0104, __wbg_getRandomValues_bcb4912f16000dc4, __wbg_get_0c3cc364764a0b98, __wbg_get_b996a12be035ef4f, __wbg_getindex_a471648b3037c750, __wbg_getwithrefkey_1dc361bd10053bfe, __wbg_globalThis_6b4d52a0b6aaeaea, __wbg_global_49324ce12193de77, __wbg_instanceof_ArrayBuffer_ff40e55b5978e215, __wbg_instanceof_Map_0f3f3653f757ced1, __wbg_instanceof_Object_9108547bac1f91b1, __wbg_instanceof_Uint8Array_db97368f94b1373f, __wbg_isArray_8738f1062fa88586, __wbg_isSafeInteger_a1b3e0811faecf2f, __wbg_iterator_c0c688f37fa815e6, __wbg_length_12246a78d2f65d3a, __wbg_length_c24da17096edfe57, __wbg_log_0cc1b7768397bcfe, __wbg_log_0fd6c49475c7bece, __wbg_log_cb9e190acc5753fb, __wbg_lorocounter_new, __wbg_lorolist_new, __wbg_loromap_new, __wbg_loromovablelist_new, __wbg_lorotext_new, __wbg_lorotree_new, __wbg_lorotreenode_new, __wbg_mark_7438147ce31e9d4b, __wbg_measure_fb7825c11612c823, __wbg_msCrypto_0a36e2ec3a343d26, __wbg_new_518e2184725aa711, __wbg_new_59845962d1127937, __wbg_new_67abf4a77618ee3e, __wbg_new_8a6f238a6ece86ea, __wbg_new_e2d07398d7689006, __wbg_newnoargs_a136448eeb7d48ac, __wbg_newwithbyteoffsetandlength_84908302a4c137cf, __wbg_newwithlength_4c216eaaf23f2f9a, __wbg_newwithlength_88b49de1eb24d63e, __wbg_next_928df8c15fc0c9b0, __wbg_next_9dc0926f351c7090, __wbg_node_02999533c4ea02e3,
|
|
7426
|
+
export { Awareness, AwarenessWasm, ChangeModifier, Cursor, EphemeralStore, EphemeralStoreWasm, LORO_VERSION, Loro, LoroCounter, LoroDoc, LoroList, LoroMap, LoroMovableList, LoroText, LoroTree, LoroTreeNode, UndoManager, VersionVector, __wbg_String_8f0eb39a4a4c2f66, __wbg_apply_9bb7fe8fff013a3f, __wbg_buffer_ef9774282e5dab94, __wbg_call_0ad083564791763a, __wbg_call_a34b6b4765f27be0, __wbg_call_d00953b926be4879, __wbg_call_efe5a4db7065d1a2, __wbg_changemodifier_new, __wbg_crypto_ed58b8e10a292839, __wbg_cursor_new, __wbg_done_f4c254830a095eaf, __wbg_entries_4dce6361e3ba6fbc, __wbg_entries_83beb641792ccb9c, __wbg_error_7534b8e9a36f1ab4, __wbg_error_9912f7d6d7835a4b, __wbg_from_3aa0fcaa8eef0104, __wbg_getRandomValues_bcb4912f16000dc4, __wbg_get_0c3cc364764a0b98, __wbg_get_b996a12be035ef4f, __wbg_getindex_a471648b3037c750, __wbg_getwithrefkey_1dc361bd10053bfe, __wbg_globalThis_6b4d52a0b6aaeaea, __wbg_global_49324ce12193de77, __wbg_instanceof_ArrayBuffer_ff40e55b5978e215, __wbg_instanceof_Map_0f3f3653f757ced1, __wbg_instanceof_Object_9108547bac1f91b1, __wbg_instanceof_Uint8Array_db97368f94b1373f, __wbg_isArray_8738f1062fa88586, __wbg_isSafeInteger_a1b3e0811faecf2f, __wbg_iterator_c0c688f37fa815e6, __wbg_length_12246a78d2f65d3a, __wbg_length_c24da17096edfe57, __wbg_log_0cc1b7768397bcfe, __wbg_log_0fd6c49475c7bece, __wbg_log_cb9e190acc5753fb, __wbg_lorocounter_new, __wbg_lorolist_new, __wbg_loromap_new, __wbg_loromovablelist_new, __wbg_lorotext_new, __wbg_lorotree_new, __wbg_lorotreenode_new, __wbg_mark_7438147ce31e9d4b, __wbg_measure_fb7825c11612c823, __wbg_msCrypto_0a36e2ec3a343d26, __wbg_new_518e2184725aa711, __wbg_new_59845962d1127937, __wbg_new_67abf4a77618ee3e, __wbg_new_8a6f238a6ece86ea, __wbg_new_e2d07398d7689006, __wbg_newnoargs_a136448eeb7d48ac, __wbg_newwithbyteoffsetandlength_84908302a4c137cf, __wbg_newwithlength_4c216eaaf23f2f9a, __wbg_newwithlength_88b49de1eb24d63e, __wbg_next_928df8c15fc0c9b0, __wbg_next_9dc0926f351c7090, __wbg_node_02999533c4ea02e3, __wbg_now_439b66158bc4f246, __wbg_ownKeys_b16312a839a4152c, __wbg_process_5c1d670bc53614b8, __wbg_push_e7d7247e69dad3ee, __wbg_randomFillSync_ab2cfe79ebbf2740, __wbg_require_79b1e9274cde3c87, __wbg_resolve_267ff08e7e1d2ce4, __wbg_self_cca3ca60d61220f4, __wbg_set_1b50d2de855a9d50, __wbg_set_393f510a6b7e9da5, __wbg_set_3f1d0b984ed272ed, __wbg_set_5deee49b10b2b780, __wbg_set_93ba9407b5476ec6, __wbg_set_wasm, __wbg_setindex_e0b7b31bfc87ba3f, __wbg_stack_0ed75d68575b0f3c, __wbg_subarray_2dc34705c0dc7cdb, __wbg_then_84907e7a6730461e, __wbg_value_51f8a88d4a1805fb, __wbg_versions_c71aa1626a93e0a1, __wbg_versionvector_new, __wbg_window_2aba046d3fc4ad7c, __wbindgen_as_number, __wbindgen_bigint_from_i64, __wbindgen_bigint_from_u64, __wbindgen_bigint_get_as_i64, __wbindgen_boolean_get, __wbindgen_cb_drop, __wbindgen_closure_wrapper562, __wbindgen_closure_wrapper565, __wbindgen_debug_string, __wbindgen_error_new, __wbindgen_in, __wbindgen_is_array, __wbindgen_is_bigint, __wbindgen_is_falsy, __wbindgen_is_function, __wbindgen_is_null, __wbindgen_is_object, __wbindgen_is_string, __wbindgen_is_undefined, __wbindgen_jsval_eq, __wbindgen_jsval_loose_eq, __wbindgen_memory, __wbindgen_number_get, __wbindgen_number_new, __wbindgen_object_clone_ref, __wbindgen_object_drop_ref, __wbindgen_rethrow, __wbindgen_string_get, __wbindgen_string_new, __wbindgen_throw, __wbindgen_typeof, decodeFrontiers, decodeImportBlobMeta, encodeFrontiers, getType, idStrToId, isContainer, isContainerId, newContainerID, newRootContainerID, redactJsonUpdates, run, setDebug };
|
package/base64/loro_wasm.d.ts
CHANGED
|
@@ -2181,6 +2181,7 @@ export class LoroDoc {
|
|
|
2181
2181
|
* @param mode - The export mode to use. Can be one of:
|
|
2182
2182
|
* - `{ mode: "snapshot" }`: Export a full snapshot of the document.
|
|
2183
2183
|
* - `{ mode: "update", from?: VersionVector }`: Export updates from the given version vector.
|
|
2184
|
+
* If `from` is not provided, it will export the whole history of the document.
|
|
2184
2185
|
* - `{ mode: "updates-in-range", spans: { id: ID, len: number }[] }`: Export updates within the specified ID spans.
|
|
2185
2186
|
* - `{ mode: "shallow-snapshot", frontiers: Frontiers }`: Export a garbage-collected snapshot up to the given frontiers.
|
|
2186
2187
|
*
|
|
@@ -3608,6 +3609,10 @@ export class UndoManager {
|
|
|
3608
3609
|
* Redo the last undone operation.
|
|
3609
3610
|
*/
|
|
3610
3611
|
redo(): boolean;
|
|
3612
|
+
/**
|
|
3613
|
+
* Get the peer id of the undo manager.
|
|
3614
|
+
*/
|
|
3615
|
+
peer(): PeerID;
|
|
3611
3616
|
/**
|
|
3612
3617
|
* Can undo the last operation.
|
|
3613
3618
|
*/
|