cross-tab-worker-databus 0.21.47 → 0.21.49

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.
@@ -487,6 +487,14 @@ var BatchingStorageWriter = class {
487
487
  }
488
488
  // Reads always see the pending value first (task-local consistency), then
489
489
  // fall back to the underlying storage.
490
+ //
491
+ // The two operands are **interchangeable formulations of one test**, which is
492
+ // measured rather than argued: `has(key)` and `get(key) ?? null` each suffice,
493
+ // because a pending *delete* stores `null` (which `??` passes straight through)
494
+ // and a key that is not pending yields `undefined` from `get`. So deleting
495
+ // either one alone is a no-op mutation that the whole suite cannot see, while
496
+ // deleting the guard as a whole is caught by four cases. Noted so a future edit
497
+ // does not read the survival of one operand as that of the pair.
490
498
  getItem(key) {
491
499
  if (this.pending.has(key)) return this.pending.get(key) ?? null;
492
500
  return this.storage.getItem(key);
@@ -2635,7 +2643,7 @@ var SDK_VERSION = (
2635
2643
  // declaration's type is `string | undefined` and the export's is `string`
2636
2644
  // (dropping the conditional is TS2322, measured). Recorded here so the leg reads
2637
2645
  // as a shape the harness cannot reach rather than as a case nobody exercised.
2638
- true ? "0.21.47" : ""
2646
+ true ? "0.21.49" : ""
2639
2647
  );
2640
2648
 
2641
2649
  // src/core/data-bus.ts