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.
- package/CHANGELOG.md +38 -0
- package/dist/centrifuge-session.d.ts +2 -1
- package/dist/centrifuge-session.d.ts.map +1 -1
- package/dist/centrifuge.js +3 -2
- package/dist/centrifuge.js.map +2 -2
- package/dist/centrifuge.shared.worker.js +2 -1
- package/dist/centrifuge.shared.worker.js.map +2 -2
- package/dist/centrifuge.worker.js +2 -1
- package/dist/centrifuge.worker.js.map +2 -2
- package/dist/{chunk-Q2INCAFO.js → chunk-37NTHK22.js} +6 -4
- package/dist/chunk-37NTHK22.js.map +7 -0
- package/dist/cjs/centrifuge.cjs +7 -4
- package/dist/cjs/centrifuge.cjs.map +2 -2
- package/dist/cjs/index.cjs +5 -3
- package/dist/cjs/index.cjs.map +2 -2
- package/dist/core/cluster.d.ts +6 -1
- package/dist/core/cluster.d.ts.map +1 -1
- package/dist/core/data-bus.d.ts +4 -2
- package/dist/core/data-bus.d.ts.map +1 -1
- package/dist/core/replay-manager.d.ts.map +1 -1
- package/dist/core/replay-persistence.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/docs/roadmap.md +17 -1
- package/docs/zh/roadmap.md +17 -1
- package/package.json +1 -1
- package/dist/chunk-Q2INCAFO.js.map +0 -7
package/dist/cjs/centrifuge.cjs
CHANGED
|
@@ -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.
|
|
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
|
|
3539
|
-
*
|
|
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
|
|
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*,
|