loro-crdt 1.5.9 โ 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 +6 -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 +13 -4
- 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 +13 -4
- 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 +13 -4
- package/web/loro_wasm_bg.wasm +0 -0
- package/web/loro_wasm_bg.wasm.d.ts +1 -0
- package/base64/loro_wasm_bg-467afd22.js +0 -64
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.5.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f8bef58: Fix local event error (#763)
|
|
8
|
+
|
|
3
9
|
## 1.5.9
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -55,7 +61,6 @@
|
|
|
55
61
|
### Patch Changes
|
|
56
62
|
|
|
57
63
|
- 742cf7d: Fix memory leak caused by wasm-bindgen
|
|
58
|
-
|
|
59
64
|
- https://github.com/rustwasm/wasm-bindgen/issues/3854
|
|
60
65
|
|
|
61
66
|
## 1.5.0
|
|
@@ -302,7 +307,6 @@
|
|
|
302
307
|
- ddafb7e: feat: diff, applyDiff, and revertTo #610
|
|
303
308
|
|
|
304
309
|
Add new version-control-related primitives:
|
|
305
|
-
|
|
306
310
|
- **`diff(from, to)`**: calculate the difference between two versions. The returned results have similar structures to the differences in events.
|
|
307
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.
|
|
308
312
|
- **`applyDiff(diff)`**: you can use it to apply the differences generated from `diff(from, to)`.
|
|
@@ -452,7 +456,6 @@
|
|
|
452
456
|
### Patch Changes
|
|
453
457
|
|
|
454
458
|
- 3b7a738: Add getShallowValue and toJsonWIthReplacer
|
|
455
|
-
|
|
456
459
|
- Add getShallowValue for each container (#581)
|
|
457
460
|
- Implement toJsonWithReplacer method for LoroDoc to customize JSON serialization (#582)
|
|
458
461
|
- Rename importUpdateBatch into importBatch & refine type (#580)
|
|
@@ -612,11 +615,9 @@
|
|
|
612
615
|
- Performance improvement and bug fixes
|
|
613
616
|
|
|
614
617
|
### ๐ Features
|
|
615
|
-
|
|
616
618
|
- Redact (#504)
|
|
617
619
|
|
|
618
620
|
### ๐ Bug Fixes
|
|
619
|
-
|
|
620
621
|
- Ffi Subscription (#505)
|
|
621
622
|
- Ffi remove try unwrap (#506)
|
|
622
623
|
- Movable list undo impl (#509)
|
|
@@ -624,18 +625,15 @@
|
|
|
624
625
|
- IsContainerDeleted cache err (#513)
|
|
625
626
|
|
|
626
627
|
### ๐ Documentation
|
|
627
|
-
|
|
628
628
|
- Refine wasm docs
|
|
629
629
|
|
|
630
630
|
### โก Performance
|
|
631
|
-
|
|
632
631
|
- Optimize shrink frontiers
|
|
633
632
|
- Optimize batch container registrations on arena (#510)
|
|
634
633
|
- Optimize high concurrency performance (#514)
|
|
635
634
|
- Use better data structure for frontiers (#515)
|
|
636
635
|
|
|
637
636
|
### Perf
|
|
638
|
-
|
|
639
637
|
- Commit speed & text insert cache (#511)
|
|
640
638
|
|
|
641
639
|
## 1.0.0-alpha.5
|
|
@@ -643,11 +641,9 @@
|
|
|
643
641
|
### Patch Changes
|
|
644
642
|
|
|
645
643
|
- ## Fix
|
|
646
|
-
|
|
647
644
|
- Use release build
|
|
648
645
|
|
|
649
646
|
## Test
|
|
650
|
-
|
|
651
647
|
- Add compatibility tests (#503)
|
|
652
648
|
|
|
653
649
|
## 1.0.0-alpha.4
|
|
@@ -655,7 +651,6 @@
|
|
|
655
651
|
### Patch Changes
|
|
656
652
|
|
|
657
653
|
- ### ๐ Features
|
|
658
|
-
|
|
659
654
|
- _(wasm)_ Commit message & get pending ops length (#477)
|
|
660
655
|
- Update text by line (#480)
|
|
661
656
|
- Add clear methods (#478)
|
|
@@ -666,7 +661,6 @@
|
|
|
666
661
|
- Add import status (#494)
|
|
667
662
|
|
|
668
663
|
### ๐ Bug Fixes
|
|
669
|
-
|
|
670
664
|
- Get correct tree_cache current vv when retreating (#476)
|
|
671
665
|
- Gc snapshot error (#481)
|
|
672
666
|
- Checkout into middle of marks
|
|
@@ -678,7 +672,6 @@
|
|
|
678
672
|
- Create event cannot find parent (#498)
|
|
679
673
|
|
|
680
674
|
### ๐ Refactor
|
|
681
|
-
|
|
682
675
|
- [**breaking**] Don't wait for `commit` to update version info
|
|
683
676
|
- Avoid footgun of impl ord for cid
|
|
684
677
|
- Loro import function should return LoroEncodeError (#487)
|
|
@@ -687,7 +680,6 @@
|
|
|
687
680
|
- [**breaking**] List state snapshot schema for v1.0 (#485)
|
|
688
681
|
|
|
689
682
|
### โก Performance
|
|
690
|
-
|
|
691
683
|
- Make shrink frontiers faster when the peer num is large (#482)
|
|
692
684
|
- Optimize tree cache find children speed
|
|
693
685
|
- Avoid memory leak when forking repeatedly (#500)
|
|
@@ -696,12 +688,10 @@
|
|
|
696
688
|
- Optimize diff calc cache use (#475)
|
|
697
689
|
|
|
698
690
|
### ๐งช Testing
|
|
699
|
-
|
|
700
691
|
- Make awareness more robust
|
|
701
692
|
- Bench large folder with 1M files & 100M ops (#495)
|
|
702
693
|
|
|
703
694
|
### โ๏ธ Miscellaneous Tasks
|
|
704
|
-
|
|
705
695
|
- Use cached diff calc
|
|
706
696
|
|
|
707
697
|
## 1.0.0-alpha.3
|
|
@@ -709,20 +699,16 @@
|
|
|
709
699
|
### Patch Changes
|
|
710
700
|
|
|
711
701
|
- ### ๐ Bug Fixes
|
|
712
|
-
|
|
713
702
|
- Cursor behavior when using gc-snapshot (#472)
|
|
714
703
|
- _(wasm)_ Type err
|
|
715
704
|
|
|
716
705
|
### โ๏ธ Miscellaneous Tasks
|
|
717
|
-
|
|
718
706
|
- Make tree parent id pub on loro crate
|
|
719
707
|
|
|
720
708
|
### Feat
|
|
721
|
-
|
|
722
709
|
- Allow editing on detached mode (#473)
|
|
723
710
|
|
|
724
711
|
### Fix
|
|
725
|
-
|
|
726
712
|
- Get tree's alive children correctly (#474)
|
|
727
713
|
- Should not emit event when exporting gc-snapshot (#471)
|
|
728
714
|
|
|
@@ -731,11 +717,9 @@
|
|
|
731
717
|
### Patch Changes
|
|
732
718
|
|
|
733
719
|
- ### ๐ Features
|
|
734
|
-
|
|
735
720
|
- Fork doc at the target version (#469)
|
|
736
721
|
|
|
737
722
|
### ๐ Refactor
|
|
738
|
-
|
|
739
723
|
- BREAKING CHANGE: Use hierarchy value for tree value (#470)
|
|
740
724
|
|
|
741
725
|
## 1.0.0-alpha.1
|
|
@@ -743,24 +727,20 @@
|
|
|
743
727
|
### Patch Changes
|
|
744
728
|
|
|
745
729
|
- ### ๐ Features
|
|
746
|
-
|
|
747
730
|
- Get shallow value of doc (#463)
|
|
748
731
|
- Add state only snapshot & refine check slow test
|
|
749
732
|
- Add new cid method to js binding
|
|
750
733
|
- Jsonpath experimental support (#466)
|
|
751
734
|
|
|
752
735
|
### ๐ Bug Fixes
|
|
753
|
-
|
|
754
736
|
- Raise error if perform action on a deleted container (#465)
|
|
755
737
|
- Raise error if moving a deleted node
|
|
756
738
|
- Export snapshot error on a gc doc
|
|
757
739
|
|
|
758
740
|
### ๐ Refactor
|
|
759
|
-
|
|
760
741
|
- Tree contains & isDeleted (#467)
|
|
761
742
|
|
|
762
743
|
### ๐งช Testing
|
|
763
|
-
|
|
764
744
|
- Check state correctness on shallow doc
|
|
765
745
|
|
|
766
746
|
## 1.0.0-alpha.0
|
|
@@ -799,27 +779,22 @@
|
|
|
799
779
|
### Patch Changes
|
|
800
780
|
|
|
801
781
|
- 38b4bcf: Add text update API
|
|
802
|
-
|
|
803
782
|
- Remove the patch for crypto
|
|
804
783
|
- Add text update API (#404)
|
|
805
784
|
- Check invalid root container name (#411)
|
|
806
785
|
|
|
807
786
|
### ๐ Bug Fixes
|
|
808
|
-
|
|
809
787
|
- Workaround lldb bug make loro crate debuggable (#414)
|
|
810
788
|
- Delete the **bring back** tree node from the undo container remap (#423)
|
|
811
789
|
|
|
812
790
|
### ๐ Documentation
|
|
813
|
-
|
|
814
791
|
- Fix typo
|
|
815
792
|
- Refine docs about event (#417)
|
|
816
793
|
|
|
817
794
|
### ๐จ Styling
|
|
818
|
-
|
|
819
795
|
- Use clippy to perf code (#407)
|
|
820
796
|
|
|
821
797
|
### โ๏ธ Miscellaneous Tasks
|
|
822
|
-
|
|
823
798
|
- Add test tools (#410)
|
|
824
799
|
|
|
825
800
|
## 0.16.7
|
|
@@ -829,24 +804,20 @@
|
|
|
829
804
|
- 45c98d5: Better text APIs and bug fixes
|
|
830
805
|
|
|
831
806
|
### ๐ Features
|
|
832
|
-
|
|
833
807
|
- Add insert_utf8 and delete_utf8 for Rust Text API (#396)
|
|
834
808
|
- Add text iter (#400)
|
|
835
809
|
- Add more text api (#398)
|
|
836
810
|
|
|
837
811
|
### ๐ Bug Fixes
|
|
838
|
-
|
|
839
812
|
- Tree undo when processing deleted node (#399)
|
|
840
813
|
- Tree diff calc children should be sorted by idlp (#401)
|
|
841
814
|
- When computing the len of the map, do not count elements that are None (#402)
|
|
842
815
|
|
|
843
816
|
### ๐ Documentation
|
|
844
|
-
|
|
845
817
|
- Update wasm docs
|
|
846
818
|
- Rm experimental warning
|
|
847
819
|
|
|
848
820
|
### โ๏ธ Miscellaneous Tasks
|
|
849
|
-
|
|
850
821
|
- Update fuzz config
|
|
851
822
|
- Pnpm
|
|
852
823
|
- Rename position to fractional_index (#381)
|
|
@@ -889,7 +860,6 @@
|
|
|
889
860
|
- 34f6064: Better undo events & transform cursors by undo manager (#369)
|
|
890
861
|
|
|
891
862
|
#### ๐งช Testing
|
|
892
|
-
|
|
893
863
|
- Enable compatibility test (#367)
|
|
894
864
|
|
|
895
865
|
## 0.16.1
|
|
@@ -897,7 +867,6 @@
|
|
|
897
867
|
### Patch Changes
|
|
898
868
|
|
|
899
869
|
- 5cd80b0: Refine undo impl
|
|
900
|
-
|
|
901
870
|
- Add "undo" origin for undo and redo event
|
|
902
871
|
- Allow users to skip certain local operations
|
|
903
872
|
- Skip undo/redo ops that are not visible to users
|
|
@@ -910,23 +879,19 @@
|
|
|
910
879
|
- c12c2b9: Movable Tree Children & Undo
|
|
911
880
|
|
|
912
881
|
#### ๐ Bug Fixes
|
|
913
|
-
|
|
914
882
|
- Refine error message on corrupted data (#356)
|
|
915
883
|
- Add MovableList to CONTAINER_TYPES (#359)
|
|
916
884
|
- Better jitter for fractional index (#360)
|
|
917
885
|
|
|
918
886
|
#### ๐งช Testing
|
|
919
|
-
|
|
920
887
|
- Add compatibility tests (#357)
|
|
921
888
|
|
|
922
889
|
#### Feat
|
|
923
|
-
|
|
924
890
|
- Make the encoding format forward and backward compatible (#329)
|
|
925
891
|
- Undo (#361)
|
|
926
892
|
- Use fractional index to order the children of the tree (#298)
|
|
927
893
|
|
|
928
894
|
#### ๐ Bug Fixes
|
|
929
|
-
|
|
930
895
|
- Tree fuzz sort value (#351)
|
|
931
896
|
- Upgrade wasm-bindgen to fix str free err (#353)
|
|
932
897
|
|
|
@@ -937,13 +902,11 @@
|
|
|
937
902
|
- 43506cc: Fix unsound issue caused by wasm-bindgen
|
|
938
903
|
|
|
939
904
|
#### ๐ Bug Fixes
|
|
940
|
-
|
|
941
905
|
- Fix potential movable list bug (#354)
|
|
942
906
|
- Tree fuzz sort value (#351)
|
|
943
907
|
- Upgrade wasm-bindgen to fix str free err (#353)
|
|
944
908
|
|
|
945
909
|
#### ๐ Documentation
|
|
946
|
-
|
|
947
910
|
- Simplify readme (#352)
|
|
948
911
|
|
|
949
912
|
## 0.15.2
|
|
@@ -953,15 +916,12 @@
|
|
|
953
916
|
- e30678d: Perf: fix deletions merge
|
|
954
917
|
|
|
955
918
|
#### ๐ Bug Fixes
|
|
956
|
-
|
|
957
919
|
- _(wasm)_ Movable list .kind() (#342)
|
|
958
920
|
|
|
959
921
|
#### โก Performance
|
|
960
|
-
|
|
961
922
|
- Delete span merge err (#348)
|
|
962
923
|
|
|
963
924
|
#### โ๏ธ Miscellaneous Tasks
|
|
964
|
-
|
|
965
925
|
- Warn missing debug impl (#347)
|
|
966
926
|
|
|
967
927
|
<!-- generated by git-cliff -->
|
|
@@ -973,7 +933,6 @@
|
|
|
973
933
|
- 04c6290: Bug fixes and improvements.
|
|
974
934
|
|
|
975
935
|
#### ๐ Bug Fixes
|
|
976
|
-
|
|
977
936
|
- Impl a few unimplemented! for movable tree (#335)
|
|
978
937
|
- Refine ts type; reject invalid operations (#334)
|
|
979
938
|
- Get cursor err on text and movable list (#337)
|
|
@@ -981,12 +940,10 @@
|
|
|
981
940
|
- Upgrade generic-btree to allow large btree (#344)
|
|
982
941
|
|
|
983
942
|
#### ๐ Documentation
|
|
984
|
-
|
|
985
943
|
- Add warn(missing_docs) to loro and loro-wasm (#339)
|
|
986
944
|
- Minor fix on set_change_merge_interval api (#341)
|
|
987
945
|
|
|
988
946
|
#### โ๏ธ Miscellaneous Tasks
|
|
989
|
-
|
|
990
947
|
- Skip the checking if not debug_assertions (#340)
|
|
991
948
|
|
|
992
949
|
<!-- generated by git-cliff -->
|
|
@@ -1034,7 +991,6 @@
|
|
|
1034
991
|
- 24cf9b9: Bug Fix
|
|
1035
992
|
|
|
1036
993
|
#### ๐ Bug Fixes
|
|
1037
|
-
|
|
1038
994
|
- Attached container can be inserted to `Map` or `List` (#331)
|
|
1039
995
|
|
|
1040
996
|
## 0.14.5
|
|
@@ -1044,11 +1000,9 @@
|
|
|
1044
1000
|
- 73e3ba5: Bug Fix
|
|
1045
1001
|
|
|
1046
1002
|
#### ๐ Bug Fixes
|
|
1047
|
-
|
|
1048
1003
|
- _(js)_ Allow convert from undefined to LoroValue (#323)
|
|
1049
1004
|
|
|
1050
1005
|
#### ๐ Refactor
|
|
1051
|
-
|
|
1052
1006
|
- Refine ts type (#322)
|
|
1053
1007
|
|
|
1054
1008
|
## 0.14.4
|
|
@@ -1056,12 +1010,10 @@
|
|
|
1056
1010
|
### Patch Changes
|
|
1057
1011
|
|
|
1058
1012
|
- 598d97e: ### ๐ Refactor
|
|
1059
|
-
|
|
1060
1013
|
- Refine the TS Type of Awareness
|
|
1061
1014
|
- Parse Uint8array to LoroValue::Binary (#320)
|
|
1062
1015
|
|
|
1063
1016
|
### ๐ Documentation
|
|
1064
|
-
|
|
1065
1017
|
- Update how to publish new npm pkgs
|
|
1066
1018
|
|
|
1067
1019
|
## 0.14.3
|
|
@@ -1075,7 +1027,6 @@
|
|
|
1075
1027
|
### Patch Changes
|
|
1076
1028
|
|
|
1077
1029
|
- Refactor rename `StablePosition` to `Cursor`
|
|
1078
|
-
|
|
1079
1030
|
- Rename stable pos to cursor (#317)
|
|
1080
1031
|
|
|
1081
1032
|
<!-- generated by git-cliff -->
|
|
@@ -1087,7 +1038,6 @@
|
|
|
1087
1038
|
- Supports Cursors
|
|
1088
1039
|
|
|
1089
1040
|
#### ๐ Features
|
|
1090
|
-
|
|
1091
1041
|
- Cursors (#290)
|
|
1092
1042
|
|
|
1093
1043
|
## 0.14.0
|
|
@@ -1097,27 +1047,22 @@
|
|
|
1097
1047
|
- Improved API
|
|
1098
1048
|
|
|
1099
1049
|
### ๐ Features
|
|
1100
|
-
|
|
1101
1050
|
- Access value/container by path (#308)
|
|
1102
1051
|
- Decode import blob meta (#307)
|
|
1103
1052
|
|
|
1104
1053
|
### ๐ Bug Fixes
|
|
1105
|
-
|
|
1106
1054
|
- Decode iter return result by updating columnar to 0.3.4 (#309)
|
|
1107
1055
|
|
|
1108
1056
|
### ๐ Refactor
|
|
1109
|
-
|
|
1110
1057
|
- Replace "local" and "fromCheckout" in event with "triggeredBy" (#312)
|
|
1111
1058
|
- Add concrete type for each different container (#313)
|
|
1112
1059
|
- _(ts)_ Make types better (#315)
|
|
1113
1060
|
|
|
1114
1061
|
### ๐ Documentation
|
|
1115
|
-
|
|
1116
1062
|
- Refine wasm docs (#304)
|
|
1117
1063
|
- Clarify that peer id should be convertible to a u64 (#306)
|
|
1118
1064
|
|
|
1119
1065
|
### โ๏ธ Miscellaneous Tasks
|
|
1120
|
-
|
|
1121
1066
|
- Add coverage report cli (#311)
|
|
1122
1067
|
|
|
1123
1068
|
## 0.13.1
|
|
@@ -1157,7 +1102,6 @@
|
|
|
1157
1102
|
### Minor Changes
|
|
1158
1103
|
|
|
1159
1104
|
- Fix a few bugs and include BREAKING CHANG refactors
|
|
1160
|
-
|
|
1161
1105
|
- fix: should not reset the state when calling checkout to latest (#265)
|
|
1162
1106
|
- refactor: only send a event for one `import`/`transaction`/`checkout` (#263)
|
|
1163
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);
|
|
@@ -6862,12 +6871,12 @@ function __wbindgen_cb_drop(arg0) {
|
|
|
6862
6871
|
const ret = false;
|
|
6863
6872
|
return ret;
|
|
6864
6873
|
}
|
|
6865
|
-
function
|
|
6866
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
6874
|
+
function __wbindgen_closure_wrapper562(arg0, arg1, arg2) {
|
|
6875
|
+
const ret = makeMutClosure(arg0, arg1, 10, __wbg_adapter_60);
|
|
6867
6876
|
return addHeapObject(ret);
|
|
6868
6877
|
}
|
|
6869
|
-
function
|
|
6870
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
6878
|
+
function __wbindgen_closure_wrapper565(arg0, arg1, arg2) {
|
|
6879
|
+
const ret = makeMutClosure(arg0, arg1, 8, __wbg_adapter_63);
|
|
6871
6880
|
return addHeapObject(ret);
|
|
6872
6881
|
}
|
|
6873
6882
|
function __wbindgen_debug_string(arg0, arg1) {
|
|
@@ -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, __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,
|
|
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
|
*/
|