cross-tab-worker-databus 0.21.46 → 0.21.48

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.
@@ -507,6 +507,14 @@ var BatchingStorageWriter = class {
507
507
  }
508
508
  // Reads always see the pending value first (task-local consistency), then
509
509
  // fall back to the underlying storage.
510
+ //
511
+ // The two operands are **interchangeable formulations of one test**, which is
512
+ // measured rather than argued: `has(key)` and `get(key) ?? null` each suffice,
513
+ // because a pending *delete* stores `null` (which `??` passes straight through)
514
+ // and a key that is not pending yields `undefined` from `get`. So deleting
515
+ // either one alone is a no-op mutation that the whole suite cannot see, while
516
+ // deleting the guard as a whole is caught by four cases. Noted so a future edit
517
+ // does not read the survival of one operand as that of the pair.
510
518
  getItem(key) {
511
519
  if (this.pending.has(key)) return this.pending.get(key) ?? null;
512
520
  return this.storage.getItem(key);
@@ -2540,7 +2548,7 @@ var SDK_VERSION = (
2540
2548
  // declaration's type is `string | undefined` and the export's is `string`
2541
2549
  // (dropping the conditional is TS2322, measured). Recorded here so the leg reads
2542
2550
  // as a shape the harness cannot reach rather than as a case nobody exercised.
2543
- true ? "0.21.46" : ""
2551
+ true ? "0.21.48" : ""
2544
2552
  );
2545
2553
 
2546
2554
  // src/core/data-bus.ts
@@ -3793,4 +3801,4 @@ export {
3793
3801
  parseDataBusPublication,
3794
3802
  selectWorkerBackend
3795
3803
  };
3796
- //# sourceMappingURL=chunk-VUHBF4CY.js.map
3804
+ //# sourceMappingURL=chunk-A3AYPDMW.js.map