cross-tab-worker-databus 0.20.61 → 0.20.62
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 +6 -0
- package/dist/centrifuge.js +1 -1
- package/dist/{chunk-VB4P6DS6.js → chunk-NYBXYYPM.js} +15 -1
- package/dist/{chunk-VB4P6DS6.js.map → chunk-NYBXYYPM.js.map} +2 -2
- package/dist/cjs/centrifuge.cjs +14 -0
- package/dist/cjs/centrifuge.cjs.map +2 -2
- package/dist/cjs/index.cjs +14 -0
- package/dist/cjs/index.cjs.map +2 -2
- package/dist/core/data-bus.d.ts +26 -2
- package/dist/core/data-bus.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/docs/roadmap.md +5 -1
- package/docs/zh/roadmap.md +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.20.62] - 2026-09-05
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
- Added `CrossTabDataBus.getDiagnostics()` combining lifecycle status, transport readiness, recovery history, dedup counters, replay buffer usage, and cluster snapshot into one health-oriented view.
|
|
7
|
+
- Added coverage for the top-level diagnostics contract.
|
|
8
|
+
|
|
3
9
|
## [0.20.61] - 2026-09-05
|
|
4
10
|
|
|
5
11
|
### Added
|
package/dist/centrifuge.js
CHANGED
|
@@ -1823,6 +1823,20 @@ var CrossTabDataBus = class {
|
|
|
1823
1823
|
getClusterSnapshot() {
|
|
1824
1824
|
return this.cluster.getSnapshot();
|
|
1825
1825
|
}
|
|
1826
|
+
/** Return a single health snapshot combining lifecycle, recovery, dedup, replay, and cluster state. */
|
|
1827
|
+
getDiagnostics() {
|
|
1828
|
+
let messages = 0;
|
|
1829
|
+
if (this.replayBuffers) for (const buffer of this.replayBuffers.values()) messages += buffer.length;
|
|
1830
|
+
return {
|
|
1831
|
+
status: this.status,
|
|
1832
|
+
started: this.started,
|
|
1833
|
+
transportReady: this.transportReady,
|
|
1834
|
+
recovery: this.getRecoveryStats(),
|
|
1835
|
+
dedup: this.getDedupStats(),
|
|
1836
|
+
replay: { enabled: Boolean(this.replayBuffers), topics: this.replayBuffers?.size ?? 0, messages },
|
|
1837
|
+
cluster: this.cluster.getSnapshot()
|
|
1838
|
+
};
|
|
1839
|
+
}
|
|
1826
1840
|
/**
|
|
1827
1841
|
* Gracefully stop the DataBus: unsubscribe all topics, stop the cluster,
|
|
1828
1842
|
* and close the transport. Idempotent.
|
|
@@ -2293,4 +2307,4 @@ export {
|
|
|
2293
2307
|
parseDataBusPublication,
|
|
2294
2308
|
selectWorkerBackend
|
|
2295
2309
|
};
|
|
2296
|
-
//# sourceMappingURL=chunk-
|
|
2310
|
+
//# sourceMappingURL=chunk-NYBXYYPM.js.map
|