@yorkie-js/react 0.6.24 → 0.6.25

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.
@@ -14570,7 +14570,6 @@ class ChangeID {
14570
14570
  */
14571
14571
  setClocks(otherLamport, vector) {
14572
14572
  const lamport = otherLamport > this.lamport ? otherLamport + 1n : this.lamport + 1n;
14573
- vector.unset(InitialActorID);
14574
14573
  const maxVersionVector = this.versionVector.max(vector);
14575
14574
  maxVersionVector.set(this.actor, lamport);
14576
14575
  return ChangeID.of(this.clientSeq, lamport, this.actor, maxVersionVector);
@@ -17508,6 +17507,7 @@ class Attachment {
17508
17507
  __publicField(this, "docID");
17509
17508
  __publicField(this, "syncMode");
17510
17509
  __publicField(this, "remoteChangeEventReceived");
17510
+ __publicField(this, "cancelled");
17511
17511
  __publicField(this, "watchStream");
17512
17512
  __publicField(this, "watchLoopTimerID");
17513
17513
  __publicField(this, "watchAbortController");
@@ -17517,6 +17517,7 @@ class Attachment {
17517
17517
  this.docID = docID;
17518
17518
  this.syncMode = syncMode;
17519
17519
  this.remoteChangeEventReceived = false;
17520
+ this.cancelled = false;
17520
17521
  this.unsubscribeBroadcastEvent = unsubscribeBroacastEvent;
17521
17522
  }
17522
17523
  /**
@@ -17553,10 +17554,12 @@ class Attachment {
17553
17554
  [this.watchStream, this.watchAbortController] = await watchStreamCreator(() => {
17554
17555
  this.watchStream = void 0;
17555
17556
  this.watchAbortController = void 0;
17556
- this.watchLoopTimerID = setTimeout(
17557
- doLoop,
17558
- this.reconnectStreamDelay
17559
- );
17557
+ if (!this.cancelled) {
17558
+ this.watchLoopTimerID = setTimeout(
17559
+ doLoop,
17560
+ this.reconnectStreamDelay
17561
+ );
17562
+ }
17560
17563
  });
17561
17564
  } catch {
17562
17565
  }
@@ -17567,6 +17570,7 @@ class Attachment {
17567
17570
  * `cancelWatchStream` cancels the watch stream.
17568
17571
  */
17569
17572
  cancelWatchStream() {
17573
+ this.cancelled = true;
17570
17574
  if (this.watchStream && this.watchAbortController) {
17571
17575
  this.watchAbortController.abort();
17572
17576
  this.watchStream = void 0;
@@ -21572,7 +21576,7 @@ function createAuthInterceptor(apiKey, token) {
21572
21576
  };
21573
21577
  }
21574
21578
  const name$1 = "@yorkie-js/sdk";
21575
- const version$1 = "0.6.24";
21579
+ const version$1 = "0.6.25";
21576
21580
  const pkg$1 = {
21577
21581
  name: name$1,
21578
21582
  version: version$1
@@ -22462,7 +22466,7 @@ if (typeof globalThis !== "undefined") {
22462
22466
  };
22463
22467
  }
22464
22468
  const name = "@yorkie-js/react";
22465
- const version = "0.6.24";
22469
+ const version = "0.6.25";
22466
22470
  const pkg = {
22467
22471
  name,
22468
22472
  version