cross-tab-worker-databus 0.20.15 → 0.20.16
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 +7 -0
- package/dist/centrifuge.js +1 -1
- package/dist/{chunk-LPS4XOK4.js → chunk-WSJN2RG7.js} +6 -3
- package/dist/{chunk-LPS4XOK4.js.map → chunk-WSJN2RG7.js.map} +2 -2
- package/dist/cjs/centrifuge.cjs +5 -2
- package/dist/cjs/centrifuge.cjs.map +2 -2
- package/dist/cjs/index.cjs +5 -2
- package/dist/cjs/index.cjs.map +2 -2
- package/dist/core/data-bus.d.ts.map +1 -1
- package/dist/core/trace.d.ts +2 -0
- package/dist/core/trace.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/docs/roadmap.md +6 -1
- package/docs/zh/roadmap.md +6 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
本项目遵循 [Semantic Versioning](https://semver.org/);变更记录格式参考 [Keep a Changelog](https://keepachangelog.com/)。
|
|
4
4
|
|
|
5
|
+
## [0.20.16] - 2026-09-03
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Transport recovery trace events now report `scheduled`, `succeeded`, and `failed` outcomes, making reconnect failures diagnosable without exposing payloads or connection details.
|
|
10
|
+
- Added regression coverage for failed recovery followed by a successful retry.
|
|
11
|
+
|
|
5
12
|
## [0.20.15] - 2026-09-03
|
|
6
13
|
|
|
7
14
|
### Added
|
package/dist/centrifuge.js
CHANGED
|
@@ -1869,7 +1869,7 @@ var CrossTabDataBus = class _CrossTabDataBus {
|
|
|
1869
1869
|
const now = this.now();
|
|
1870
1870
|
if (now - this.lastRecoveryAt >= _CrossTabDataBus.RECOVERY_COOLDOWN_MS) {
|
|
1871
1871
|
this.lastRecoveryAt = now;
|
|
1872
|
-
this.trace.event({ type: "reliability", operation: "transport_recovery", attempt: 1 });
|
|
1872
|
+
this.trace.event({ type: "reliability", operation: "transport_recovery", attempt: 1, outcome: "scheduled" });
|
|
1873
1873
|
setTimeout(() => {
|
|
1874
1874
|
if (this.stopping || !this.started || this.suspended) return;
|
|
1875
1875
|
if (this.status !== "error") return;
|
|
@@ -1976,9 +1976,12 @@ var CrossTabDataBus = class _CrossTabDataBus {
|
|
|
1976
1976
|
this.startPromise = opening;
|
|
1977
1977
|
void opening.then(
|
|
1978
1978
|
() => {
|
|
1979
|
+
this.trace.event({ type: "reliability", operation: "transport_recovery", attempt: 1, outcome: "succeeded" });
|
|
1979
1980
|
if (this.startPromise === opening) this.startPromise = null;
|
|
1980
1981
|
},
|
|
1981
|
-
() =>
|
|
1982
|
+
() => {
|
|
1983
|
+
this.trace.event({ type: "reliability", operation: "transport_recovery", attempt: 1, outcome: "failed" });
|
|
1984
|
+
}
|
|
1982
1985
|
);
|
|
1983
1986
|
void opening.catch(() => void 0);
|
|
1984
1987
|
return opening;
|
|
@@ -2078,4 +2081,4 @@ export {
|
|
|
2078
2081
|
parseDataBusPublication,
|
|
2079
2082
|
selectWorkerBackend
|
|
2080
2083
|
};
|
|
2081
|
-
//# sourceMappingURL=chunk-
|
|
2084
|
+
//# sourceMappingURL=chunk-WSJN2RG7.js.map
|