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.
- package/CHANGELOG.md +40 -0
- package/dist/centrifuge.d.ts.map +1 -1
- package/dist/centrifuge.js +1 -1
- package/dist/centrifuge.js.map +2 -2
- package/dist/centrifuge.shared.worker.js.map +2 -2
- package/dist/{chunk-ZBA6SUFN.js → chunk-7AMYUWEP.js} +10 -2
- package/dist/chunk-7AMYUWEP.js.map +7 -0
- package/dist/cjs/centrifuge.cjs +9 -1
- package/dist/cjs/centrifuge.cjs.map +2 -2
- package/dist/cjs/index.cjs +9 -1
- package/dist/cjs/index.cjs.map +2 -2
- package/dist/core/environment.d.ts.map +1 -1
- package/dist/core/replay-manager.d.ts.map +1 -1
- package/dist/core/storage-batch.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/workers/port-reaper.d.ts.map +1 -1
- package/docs/benchmarks.md +7 -7
- package/docs/configuration.md +17 -0
- package/docs/roadmap.md +1 -1
- package/docs/zh/benchmarks.md +7 -7
- package/docs/zh/configuration.md +15 -0
- package/docs/zh/roadmap.md +1 -1
- package/package.json +7 -6
- package/dist/chunk-ZBA6SUFN.js.map +0 -7
package/dist/cjs/centrifuge.cjs
CHANGED
|
@@ -472,6 +472,14 @@ var BatchingStorageWriter = class {
|
|
|
472
472
|
}
|
|
473
473
|
// Reads always see the pending value first (task-local consistency), then
|
|
474
474
|
// fall back to the underlying storage.
|
|
475
|
+
//
|
|
476
|
+
// The two operands are **interchangeable formulations of one test**, which is
|
|
477
|
+
// measured rather than argued: `has(key)` and `get(key) ?? null` each suffice,
|
|
478
|
+
// because a pending *delete* stores `null` (which `??` passes straight through)
|
|
479
|
+
// and a key that is not pending yields `undefined` from `get`. So deleting
|
|
480
|
+
// either one alone is a no-op mutation that the whole suite cannot see, while
|
|
481
|
+
// deleting the guard as a whole is caught by four cases. Noted so a future edit
|
|
482
|
+
// does not read the survival of one operand as that of the pair.
|
|
475
483
|
getItem(key) {
|
|
476
484
|
if (this.pending.has(key)) return this.pending.get(key) ?? null;
|
|
477
485
|
return this.storage.getItem(key);
|
|
@@ -2669,7 +2677,7 @@ var SDK_VERSION = (
|
|
|
2669
2677
|
// declaration's type is `string | undefined` and the export's is `string`
|
|
2670
2678
|
// (dropping the conditional is TS2322, measured). Recorded here so the leg reads
|
|
2671
2679
|
// as a shape the harness cannot reach rather than as a case nobody exercised.
|
|
2672
|
-
true ? "0.21.
|
|
2680
|
+
true ? "0.21.49" : ""
|
|
2673
2681
|
);
|
|
2674
2682
|
|
|
2675
2683
|
// src/core/data-bus.ts
|