cross-tab-worker-databus 0.21.6 → 0.21.7
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 +21 -0
- package/dist/centrifuge-session.d.ts +10 -1
- package/dist/centrifuge-session.d.ts.map +1 -1
- package/dist/centrifuge.d.ts.map +1 -1
- package/dist/centrifuge.js +11 -2
- package/dist/centrifuge.js.map +2 -2
- package/dist/centrifuge.shared.worker.js +10 -1
- package/dist/centrifuge.shared.worker.js.map +2 -2
- package/dist/centrifuge.worker.js +10 -1
- package/dist/centrifuge.worker.js.map +2 -2
- package/dist/{chunk-LXAHMO7L.js → chunk-JQEKC5WW.js} +2 -2
- package/dist/{chunk-LXAHMO7L.js.map → chunk-JQEKC5WW.js.map} +2 -2
- package/dist/cjs/centrifuge.cjs +11 -2
- package/dist/cjs/centrifuge.cjs.map +2 -2
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.cjs.map +2 -2
- package/dist/core/data-bus.d.ts.map +1 -1
- package/dist/core/replay-manager.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/dist/websocket.d.ts.map +1 -1
- package/dist/workers/port-reaper.d.ts.map +1 -1
- package/docs/api.md +2 -2
- package/docs/architecture.md +36 -0
- package/docs/benchmarks.md +7 -7
- package/docs/release-checklist.md +1 -1
- package/docs/roadmap.md +11 -2
- package/docs/zh/api.md +2 -2
- package/docs/zh/architecture.md +18 -0
- package/docs/zh/benchmarks.md +7 -7
- package/docs/zh/release-checklist.md +1 -1
- package/docs/zh/roadmap.md +11 -1
- package/package.json +1 -1
package/dist/cjs/centrifuge.cjs
CHANGED
|
@@ -2518,7 +2518,7 @@ var DedupManager = class {
|
|
|
2518
2518
|
};
|
|
2519
2519
|
|
|
2520
2520
|
// src/core/version.ts
|
|
2521
|
-
var SDK_VERSION = true ? "0.21.
|
|
2521
|
+
var SDK_VERSION = true ? "0.21.7" : "";
|
|
2522
2522
|
|
|
2523
2523
|
// src/core/data-bus.ts
|
|
2524
2524
|
var DEFAULT_REPLAY_MAX_PER_TOPIC = 100;
|
|
@@ -3832,7 +3832,16 @@ var CentrifugeSession = class {
|
|
|
3832
3832
|
/** Forward a publication to the transport. Binary payloads take the
|
|
3833
3833
|
* zero-copy `MESSAGE_BIN` path when `transferable` is enabled; everything
|
|
3834
3834
|
* else is structured-cloned via `MESSAGE`. An empty topic means the
|
|
3835
|
-
* publication carried no channel info and is silently dropped.
|
|
3835
|
+
* publication carried no channel info and is silently dropped.
|
|
3836
|
+
*
|
|
3837
|
+
* That drop is uncovered and dominated: the connection-level caller tests the
|
|
3838
|
+
* same emptiness before calling, and the subscription-level caller reads the
|
|
3839
|
+
* topic out of a key this session only ever populates from a SUBSCRIBE frame.
|
|
3840
|
+
* Measured — deleting this line leaves all 37 test files green, and the frame
|
|
3841
|
+
* it withholds could not be delivered anyway, because `topicMatchesPattern`
|
|
3842
|
+
* answers false for an empty topic against both `*` and `prefix.*` (so no
|
|
3843
|
+
* wildcard handler sees it either) and `subscribe('')` throws. Kept as the
|
|
3844
|
+
* boundary statement, not counted as a closed leg. */
|
|
3836
3845
|
postPublication(topic, data) {
|
|
3837
3846
|
if (!topic) return;
|
|
3838
3847
|
if (this.transferable && data instanceof ArrayBuffer) {
|