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 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
@@ -2,7 +2,7 @@ import {
2
2
  CrossTabDataBus,
3
3
  parseDataBusPublication,
4
4
  selectWorkerBackend
5
- } from "./chunk-LPS4XOK4.js";
5
+ } from "./chunk-WSJN2RG7.js";
6
6
 
7
7
  // src/centrifuge-session.ts
8
8
  import { Centrifuge } from "centrifuge";
@@ -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
- () => void 0
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-LPS4XOK4.js.map
2084
+ //# sourceMappingURL=chunk-WSJN2RG7.js.map