cross-tab-worker-databus 0.21.1 → 0.21.2
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 -1
- package/dist/centrifuge.js +1 -1
- package/dist/{chunk-2E2FBACL.js → chunk-HRB4SND7.js} +3 -3
- package/dist/{chunk-2E2FBACL.js.map → chunk-HRB4SND7.js.map} +2 -2
- package/dist/cjs/centrifuge.cjs +2 -2
- package/dist/cjs/centrifuge.cjs.map +2 -2
- package/dist/cjs/index.cjs +2 -2
- 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 +6 -1
- package/docs/zh/roadmap.md +6 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.21.2] - 2026-09-22
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- One unreachable defensive branch removed, with no behavior change: `performStop()` awaited its pending transport stop through `.catch(() => undefined)`, but that absorption could never run — `pendingStop` is assigned non-null in exactly two places (`openTransport`'s failure path via `createStopPromise()`, and `suspendTransport()`'s stop chained behind the in-flight open) and both chains already end in a terminal `.catch(error => this.reportError(error))` that resolves, so the failure is recorded where it is produced. The neighbouring `startPromise?.catch(() => undefined)` is kept, because that promise *does* reject: it holds the opening a failing `ready()` reports to its caller. Naming which kind of arm each one is is now written into the source and into `AGENTS.md`, since the difference decides whether deleting it is a cleanup or a regression.
|
|
7
|
+
- No public surface, no observable behavior and no protocol changed; `verify:compat` is green against `v0.21.1` by construction. Whole-suite coverage moves from 98.68 / 96.16 / 98.54 / 99.45 to 98.71 / 96.16 / 98.72 / 99.45 (one fewer uncovered function, no test deleted or weakened).
|
|
8
|
+
|
|
3
9
|
## [0.21.1] - 2026-09-22
|
|
4
10
|
|
|
5
11
|
### Added
|
|
@@ -8,7 +14,7 @@
|
|
|
8
14
|
### Changed
|
|
9
15
|
- `e2e/adapters.spec.ts` now drives both example pages with one set of cases (fan-out, reactive rebind, delivery after the owning tab closes, and the cleared-topic-box fallback), because the two pages expose the same surface: `#topicInput`/`#publishButton`/`#messageList` ids, a `?topic=` override, and a `__vueBus`/`__reactBus` diagnostics hook. The React page gained those ids, the query override, a topic badge and the hook — it hand-wires the core API rather than importing `cross-tab-worker-databus/hooks`, so a failure that shows up for one page and not the other localizes to the adapter instead of to the library. All four cases pass against both pages, and the fallback leg was verified by mutation on each.
|
|
10
16
|
- `docs/getting-started.md` (en + zh) records that both adapter pages are browser-covered and need no network.
|
|
11
|
-
- One correction to the `0.21.0` entry
|
|
17
|
+
- One correction to the `0.21.0` entry below: it named the React adapter `cross-tab-worker-databus/react`, which is not an export this package has (`cross-tab-worker-databus/hooks` is). The published `0.21.0` release notes keep the original wording — npm versions and GitHub releases are not rewritten — so this fixes it for anyone reading between tags.
|
|
12
18
|
|
|
13
19
|
## [0.21.0] - 2026-09-22
|
|
14
20
|
|
package/dist/centrifuge.js
CHANGED
|
@@ -2346,7 +2346,7 @@ var DedupManager = class {
|
|
|
2346
2346
|
};
|
|
2347
2347
|
|
|
2348
2348
|
// src/core/version.ts
|
|
2349
|
-
var SDK_VERSION = true ? "0.21.
|
|
2349
|
+
var SDK_VERSION = true ? "0.21.2" : "";
|
|
2350
2350
|
|
|
2351
2351
|
// src/core/data-bus.ts
|
|
2352
2352
|
var DEFAULT_REPLAY_MAX_PER_TOPIC = 100;
|
|
@@ -3107,7 +3107,7 @@ var CrossTabDataBus = class {
|
|
|
3107
3107
|
try {
|
|
3108
3108
|
await this.startPromise?.catch(() => void 0);
|
|
3109
3109
|
const pendingStop = this.pendingStop;
|
|
3110
|
-
if (pendingStop) await pendingStop
|
|
3110
|
+
if (pendingStop) await pendingStop;
|
|
3111
3111
|
else await this.transport.stop();
|
|
3112
3112
|
} catch (error) {
|
|
3113
3113
|
this.reportError(error);
|
|
@@ -3547,4 +3547,4 @@ export {
|
|
|
3547
3547
|
parseDataBusPublication,
|
|
3548
3548
|
selectWorkerBackend
|
|
3549
3549
|
};
|
|
3550
|
-
//# sourceMappingURL=chunk-
|
|
3550
|
+
//# sourceMappingURL=chunk-HRB4SND7.js.map
|