cross-tab-worker-databus 0.21.5 → 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 +31 -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-RWUDSL24.js → chunk-JQEKC5WW.js} +5 -3
- package/dist/chunk-JQEKC5WW.js.map +7 -0
- package/dist/cjs/centrifuge.cjs +14 -3
- package/dist/cjs/centrifuge.cjs.map +2 -2
- package/dist/cjs/index.cjs +4 -2
- package/dist/cjs/index.cjs.map +2 -2
- package/dist/core/cluster.d.ts.map +1 -1
- 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 +18 -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 +18 -1
- package/package.json +1 -1
- package/dist/chunk-RWUDSL24.js.map +0 -7
|
@@ -5244,7 +5244,16 @@ var CentrifugeSession = class {
|
|
|
5244
5244
|
/** Forward a publication to the transport. Binary payloads take the
|
|
5245
5245
|
* zero-copy `MESSAGE_BIN` path when `transferable` is enabled; everything
|
|
5246
5246
|
* else is structured-cloned via `MESSAGE`. An empty topic means the
|
|
5247
|
-
* publication carried no channel info and is silently dropped.
|
|
5247
|
+
* publication carried no channel info and is silently dropped.
|
|
5248
|
+
*
|
|
5249
|
+
* That drop is uncovered and dominated: the connection-level caller tests the
|
|
5250
|
+
* same emptiness before calling, and the subscription-level caller reads the
|
|
5251
|
+
* topic out of a key this session only ever populates from a SUBSCRIBE frame.
|
|
5252
|
+
* Measured — deleting this line leaves all 37 test files green, and the frame
|
|
5253
|
+
* it withholds could not be delivered anyway, because `topicMatchesPattern`
|
|
5254
|
+
* answers false for an empty topic against both `*` and `prefix.*` (so no
|
|
5255
|
+
* wildcard handler sees it either) and `subscribe('')` throws. Kept as the
|
|
5256
|
+
* boundary statement, not counted as a closed leg. */
|
|
5248
5257
|
postPublication(topic, data) {
|
|
5249
5258
|
if (!topic) return;
|
|
5250
5259
|
if (this.transferable && data instanceof ArrayBuffer) {
|