@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.
@@ -14572,7 +14572,6 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
14572
14572
  */
14573
14573
  setClocks(otherLamport, vector) {
14574
14574
  const lamport = otherLamport > this.lamport ? otherLamport + 1n : this.lamport + 1n;
14575
- vector.unset(InitialActorID);
14576
14575
  const maxVersionVector = this.versionVector.max(vector);
14577
14576
  maxVersionVector.set(this.actor, lamport);
14578
14577
  return ChangeID.of(this.clientSeq, lamport, this.actor, maxVersionVector);
@@ -17510,6 +17509,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
17510
17509
  __publicField(this, "docID");
17511
17510
  __publicField(this, "syncMode");
17512
17511
  __publicField(this, "remoteChangeEventReceived");
17512
+ __publicField(this, "cancelled");
17513
17513
  __publicField(this, "watchStream");
17514
17514
  __publicField(this, "watchLoopTimerID");
17515
17515
  __publicField(this, "watchAbortController");
@@ -17519,6 +17519,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
17519
17519
  this.docID = docID;
17520
17520
  this.syncMode = syncMode;
17521
17521
  this.remoteChangeEventReceived = false;
17522
+ this.cancelled = false;
17522
17523
  this.unsubscribeBroadcastEvent = unsubscribeBroacastEvent;
17523
17524
  }
17524
17525
  /**
@@ -17555,10 +17556,12 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
17555
17556
  [this.watchStream, this.watchAbortController] = await watchStreamCreator(() => {
17556
17557
  this.watchStream = void 0;
17557
17558
  this.watchAbortController = void 0;
17558
- this.watchLoopTimerID = setTimeout(
17559
- doLoop,
17560
- this.reconnectStreamDelay
17561
- );
17559
+ if (!this.cancelled) {
17560
+ this.watchLoopTimerID = setTimeout(
17561
+ doLoop,
17562
+ this.reconnectStreamDelay
17563
+ );
17564
+ }
17562
17565
  });
17563
17566
  } catch {
17564
17567
  }
@@ -17569,6 +17572,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
17569
17572
  * `cancelWatchStream` cancels the watch stream.
17570
17573
  */
17571
17574
  cancelWatchStream() {
17575
+ this.cancelled = true;
17572
17576
  if (this.watchStream && this.watchAbortController) {
17573
17577
  this.watchAbortController.abort();
17574
17578
  this.watchStream = void 0;
@@ -21574,7 +21578,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
21574
21578
  };
21575
21579
  }
21576
21580
  const name$1 = "@yorkie-js/sdk";
21577
- const version$1 = "0.6.24";
21581
+ const version$1 = "0.6.25";
21578
21582
  const pkg$1 = {
21579
21583
  name: name$1,
21580
21584
  version: version$1
@@ -22464,7 +22468,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
22464
22468
  };
22465
22469
  }
22466
22470
  const name = "@yorkie-js/react";
22467
- const version = "0.6.24";
22471
+ const version = "0.6.25";
22468
22472
  const pkg = {
22469
22473
  name,
22470
22474
  version