cross-tab-worker-databus 0.20.19 → 0.20.20

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,12 @@
2
2
 
3
3
  本项目遵循 [Semantic Versioning](https://semver.org/);变更记录格式参考 [Keep a Changelog](https://keepachangelog.com/)。
4
4
 
5
+ ## [0.20.20] - 2026-09-03
6
+
7
+ ### Added
8
+
9
+ - Automatic recovery now emits an `exhausted` reliability event when `recovery.maxAttempts` is reached, instead of stopping silently.
10
+
5
11
  ## [0.20.19] - 2026-09-03
6
12
 
7
13
  ### Added
@@ -2,7 +2,7 @@ import {
2
2
  CrossTabDataBus,
3
3
  parseDataBusPublication,
4
4
  selectWorkerBackend
5
- } from "./chunk-TC7XXOVN.js";
5
+ } from "./chunk-2PUSQWOL.js";
6
6
 
7
7
  // src/centrifuge-session.ts
8
8
  import { Centrifuge } from "centrifuge";
@@ -1882,7 +1882,10 @@ var CrossTabDataBus = class {
1882
1882
  if (now - this.lastRecoveryAt >= this.recoveryCooldownMs) {
1883
1883
  this.lastRecoveryAt = now;
1884
1884
  const attempt = ++this.recoveryAttempt;
1885
- if (attempt > this.recoveryMaxAttempts) return;
1885
+ if (attempt > this.recoveryMaxAttempts) {
1886
+ this.trace.event({ type: "reliability", operation: "transport_recovery", attempt: this.recoveryMaxAttempts, outcome: "exhausted" });
1887
+ return;
1888
+ }
1886
1889
  this.trace.event({ type: "reliability", operation: "transport_recovery", attempt, outcome: "scheduled" });
1887
1890
  setTimeout(() => {
1888
1891
  if (this.stopping || !this.started || this.suspended) return;
@@ -2101,4 +2104,4 @@ export {
2101
2104
  parseDataBusPublication,
2102
2105
  selectWorkerBackend
2103
2106
  };
2104
- //# sourceMappingURL=chunk-TC7XXOVN.js.map
2107
+ //# sourceMappingURL=chunk-2PUSQWOL.js.map