cross-tab-worker-databus 0.21.1 → 0.21.3
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 +14 -1
- package/dist/centrifuge.js +1 -1
- package/dist/{chunk-2E2FBACL.js → chunk-CFFSSIUO.js} +5 -5
- package/dist/{chunk-2E2FBACL.js.map → chunk-CFFSSIUO.js.map} +2 -2
- package/dist/cjs/centrifuge.cjs +4 -4
- package/dist/cjs/centrifuge.cjs.map +2 -2
- package/dist/cjs/index.cjs +4 -4
- package/dist/cjs/index.cjs.map +2 -2
- package/dist/core/data-bus.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/docs/roadmap.md +11 -1
- package/docs/zh/roadmap.md +11 -1
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -2472,7 +2472,7 @@ var DedupManager = class {
|
|
|
2472
2472
|
};
|
|
2473
2473
|
|
|
2474
2474
|
// src/core/version.ts
|
|
2475
|
-
var SDK_VERSION = true ? "0.21.
|
|
2475
|
+
var SDK_VERSION = true ? "0.21.3" : "";
|
|
2476
2476
|
|
|
2477
2477
|
// src/core/data-bus.ts
|
|
2478
2478
|
var DEFAULT_REPLAY_MAX_PER_TOPIC = 100;
|
|
@@ -2781,7 +2781,7 @@ var CrossTabDataBus = class {
|
|
|
2781
2781
|
if (this.queuedStart) return this.queuedStart;
|
|
2782
2782
|
const stop = this.stopPromise ?? Promise.resolve();
|
|
2783
2783
|
const token = ++this.queuedStartToken;
|
|
2784
|
-
const queued = stop.
|
|
2784
|
+
const queued = stop.then(() => {
|
|
2785
2785
|
if (this.queuedStart === queued) this.queuedStart = null;
|
|
2786
2786
|
if (token <= this.canceledQueuedStartToken) return;
|
|
2787
2787
|
return this.start(config);
|
|
@@ -2863,7 +2863,7 @@ var CrossTabDataBus = class {
|
|
|
2863
2863
|
const chainedPendingStop = this.pendingStop;
|
|
2864
2864
|
const isCurrentLifecycle = () => lifecycleEpoch === this.lifecycleEpoch;
|
|
2865
2865
|
let startupInProgress = true;
|
|
2866
|
-
return before.
|
|
2866
|
+
return before.then(() => {
|
|
2867
2867
|
if (!isCurrentLifecycle() || this.stopping || this.suspended) return;
|
|
2868
2868
|
if (this.pendingStop === chainedPendingStop) this.pendingStop = null;
|
|
2869
2869
|
this.transportHasConnected = false;
|
|
@@ -3233,7 +3233,7 @@ var CrossTabDataBus = class {
|
|
|
3233
3233
|
try {
|
|
3234
3234
|
await this.startPromise?.catch(() => void 0);
|
|
3235
3235
|
const pendingStop = this.pendingStop;
|
|
3236
|
-
if (pendingStop) await pendingStop
|
|
3236
|
+
if (pendingStop) await pendingStop;
|
|
3237
3237
|
else await this.transport.stop();
|
|
3238
3238
|
} catch (error) {
|
|
3239
3239
|
this.reportError(error);
|