@yorkie-js/sdk 0.7.10 → 0.7.11
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/dist/yorkie-js-sdk.d.ts +19 -0
- package/dist/yorkie-js-sdk.es.js +935 -465
- package/dist/yorkie-js-sdk.es.js.map +1 -1
- package/dist/yorkie-js-sdk.js +935 -465
- package/dist/yorkie-js-sdk.js.map +1 -1
- package/package.json +2 -2
package/dist/yorkie-js-sdk.d.ts
CHANGED
|
@@ -495,6 +495,18 @@ declare class ChangeID {
|
|
|
495
495
|
* doesn't have logical clocks, this ID is returned.
|
|
496
496
|
*/
|
|
497
497
|
syncClocks(other: ChangeID): ChangeID;
|
|
498
|
+
/**
|
|
499
|
+
* `syncLamport` advances the lamport clock against the given ID without
|
|
500
|
+
* merging its version vector into the receiver's. It is the counterpart
|
|
501
|
+
* of `syncClocks` for attachments that have opted out of GC participation
|
|
502
|
+
* (see docs/design/disable-gc-on-attach.md in the server repo): the
|
|
503
|
+
* receiver does not need other actors' entries in its VV because it
|
|
504
|
+
* never produces or consumes tombstones, and dropping them keeps each
|
|
505
|
+
* subsequent local Change's VV at O(1) instead of O(num_actors).
|
|
506
|
+
* Lamport must still advance so that TimeTickets produced locally
|
|
507
|
+
* remain ordered against remote operations.
|
|
508
|
+
*/
|
|
509
|
+
syncLamport(other: ChangeID): ChangeID;
|
|
498
510
|
/**
|
|
499
511
|
* `setClocks` sets the given clocks to this ID. This is used when the snapshot
|
|
500
512
|
* is given from the server.
|
|
@@ -2925,6 +2937,7 @@ declare class Document_2<R, P extends Indexable = Indexable> implements Attachab
|
|
|
2925
2937
|
private onlineClients;
|
|
2926
2938
|
private eventStream;
|
|
2927
2939
|
private eventStreamObserver;
|
|
2940
|
+
private disableGC;
|
|
2928
2941
|
/**
|
|
2929
2942
|
* `history` is exposed to the user to manage undo/redo operations.
|
|
2930
2943
|
*/
|
|
@@ -3033,6 +3046,12 @@ declare class Document_2<R, P extends Indexable = Indexable> implements Attachab
|
|
|
3033
3046
|
* changes the document has.
|
|
3034
3047
|
*/
|
|
3035
3048
|
setActor(actorID: ActorID): void;
|
|
3049
|
+
/**
|
|
3050
|
+
* `setDisableGC` records whether this document participates in GC. The
|
|
3051
|
+
* client calls this on attach so subsequent applyChange runs use the
|
|
3052
|
+
* lamport-only sync path.
|
|
3053
|
+
*/
|
|
3054
|
+
setDisableGC(disableGC: boolean): void;
|
|
3036
3055
|
/**
|
|
3037
3056
|
* `isEnableDevtools` returns whether devtools is enabled or not.
|
|
3038
3057
|
*/
|