cross-tab-worker-databus 0.21.19 → 0.21.21

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.
@@ -2599,7 +2599,7 @@ var SDK_VERSION = (
2599
2599
  // `string` (dropping the conditional is TS2322, measured). Recorded here so the
2600
2600
  // leg reads as a shape the harness cannot reach rather than as a case nobody
2601
2601
  // exercised.
2602
- true ? "0.21.19" : ""
2602
+ true ? "0.21.21" : ""
2603
2603
  );
2604
2604
 
2605
2605
  // src/core/data-bus.ts
@@ -3535,8 +3535,10 @@ var CrossTabDataBus = class {
3535
3535
  * wrong mechanism and was the shipped claim until it was measured: a snapshot
3536
3536
  * taken with the opening still unresolved already listed the route, its
3537
3537
  * confirmation and both tabs' worker records, because
3538
- * `BatchingStorageWriter` serves pending writes on read (`storage-batch.ts:79-82`
3539
- * for `getItem`, `:143-155` for the `keys()` union that `readAllByPrefix` uses). */
3538
+ * `BatchingStorageWriter` serves pending writes on read — `getItem` returns the
3539
+ * pending value before touching the store, and the private `keys()` union of
3540
+ * persisted keys, pending writes minus pending deletes is what `readAllByPrefix`
3541
+ * walks. */
3540
3542
  emitCoordinationTrace() {
3541
3543
  const snapshot = this.cluster.getSnapshot();
3542
3544
  this.trace.event({
@@ -3951,7 +3953,8 @@ var CentrifugeSession = class {
3951
3953
  * Measured — deleting this line leaves all 37 test files green, and the frame
3952
3954
  * it withholds has nowhere to land anyway: the only handler registry is the
3953
3955
  * DataBus's `topicHandlers`, and every write to it sits behind
3954
- * `assertPublicTopic` (`data-bus.ts:929`, `:1009`, `:1033`), so no `''` key can
3956
+ * `assertPublicTopic` (at the head of `data-bus.ts`'s `subscribe()`, `publish()`
3957
+ * and `publishBatch()`), so no `''` key can
3955
3958
  * exist — while `topicMatchesPattern` answers false for an empty topic against
3956
3959
  * both `*` and `prefix.*`, so a wildcard handler cannot see it either. Neither
3957
3960
  * of those is a reason to delete this guard: it is the only one *at this layer*,