cross-tab-worker-databus 0.21.13 → 0.21.15

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.
@@ -2410,7 +2410,7 @@ var DedupManager = class {
2410
2410
  };
2411
2411
 
2412
2412
  // src/core/version.ts
2413
- var SDK_VERSION = true ? "0.21.13" : "";
2413
+ var SDK_VERSION = true ? "0.21.15" : "";
2414
2414
 
2415
2415
  // src/core/data-bus.ts
2416
2416
  var DEFAULT_REPLAY_MAX_PER_TOPIC = 100;
@@ -3626,4 +3626,4 @@ export {
3626
3626
  parseDataBusPublication,
3627
3627
  selectWorkerBackend
3628
3628
  };
3629
- //# sourceMappingURL=chunk-4HW6PYIR.js.map
3629
+ //# sourceMappingURL=chunk-VQJIMGJN.js.map
@@ -2539,7 +2539,7 @@ var DedupManager = class {
2539
2539
  };
2540
2540
 
2541
2541
  // src/core/version.ts
2542
- var SDK_VERSION = true ? "0.21.13" : "";
2542
+ var SDK_VERSION = true ? "0.21.15" : "";
2543
2543
 
2544
2544
  // src/core/data-bus.ts
2545
2545
  var DEFAULT_REPLAY_MAX_PER_TOPIC = 100;
@@ -4006,11 +4006,13 @@ var CentrifugeWorkerTransport = class {
4006
4006
  // `isCurrentBackend()` compares worker/port/localSession identity as well.
4007
4007
  // Only the asynchronous credential bridge reads the counter: a provider may
4008
4008
  // settle after the backend it was answering is gone. Worker error events need
4009
- // no such check, but not for the reason this note used to give — `stop()`
4010
- // bumps at `:189` and removes the listeners at `:193-194`, so the generation
4011
- // moves on *before* the removal, not after. The containment is that both
4012
- // happen in one synchronous task, together with `handlers = null`, and no
4013
- // message or error event can be delivered to this object mid-task.
4009
+ // no such check, but not for the reason this note used to give — the top of
4010
+ // `stop()` bumps the counter and only then removes the listeners, so the
4011
+ // generation moves on *before* the removal, not after, while `onWorkerFailed()`
4012
+ // removes them without touching the counter at all. The containment in both
4013
+ // cases is that they happen in one synchronous task, together with
4014
+ // `handlers = null`, and no message or error event can be delivered to this
4015
+ // object mid-task.
4014
4016
  generation = 0;
4015
4017
  get diagnosticsBackend() {
4016
4018
  return this.backend ?? "uninitialized";