cross-tab-worker-databus 0.21.35 → 0.21.36
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.d.ts +4 -2
- package/dist/centrifuge.d.ts.map +1 -1
- package/dist/centrifuge.js +5 -3
- package/dist/centrifuge.js.map +2 -2
- package/dist/{chunk-EVVTH6BQ.js → chunk-AWCFYLIT.js} +2 -2
- package/dist/{chunk-EVVTH6BQ.js.map → chunk-AWCFYLIT.js.map} +2 -2
- package/dist/cjs/centrifuge.cjs +5 -3
- 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/trace.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/docs/README.md +1 -1
- package/docs/release-checklist.md +3 -3
- package/docs/roadmap.md +11 -3
- package/docs/zh/README.md +1 -1
- package/docs/zh/release-checklist.md +3 -3
- package/docs/zh/roadmap.md +11 -3
- package/package.json +1 -1
package/dist/cjs/centrifuge.cjs
CHANGED
|
@@ -2604,7 +2604,7 @@ var SDK_VERSION = (
|
|
|
2604
2604
|
// declaration's type is `string | undefined` and the export's is `string`
|
|
2605
2605
|
// (dropping the conditional is TS2322, measured). Recorded here so the leg reads
|
|
2606
2606
|
// as a shape the harness cannot reach rather than as a case nobody exercised.
|
|
2607
|
-
true ? "0.21.
|
|
2607
|
+
true ? "0.21.36" : ""
|
|
2608
2608
|
);
|
|
2609
2609
|
|
|
2610
2610
|
// src/core/data-bus.ts
|
|
@@ -4226,8 +4226,10 @@ var CentrifugeWorkerTransport = class {
|
|
|
4226
4226
|
this.handleOutput(message);
|
|
4227
4227
|
};
|
|
4228
4228
|
/** Route a Worker output message to the appropriate handler callback.
|
|
4229
|
-
*
|
|
4230
|
-
* and the
|
|
4229
|
+
* Three message sources reach it — the dedicated Worker, the SharedWorker
|
|
4230
|
+
* MessagePort, and the in-process session sink — but through two call sites: the
|
|
4231
|
+
* first two share this one `handleMessage` handler, registered on the Worker and
|
|
4232
|
+
* on the port, and only the session path arrives through its own wrapper. */
|
|
4231
4233
|
handleOutput(message) {
|
|
4232
4234
|
if (message.type === CENTRIFUGE_OUTPUT_TYPE.STATUS) this.handlers?.onStatus(message.status);
|
|
4233
4235
|
if (message.type === CENTRIFUGE_OUTPUT_TYPE.MESSAGE) this.handlers?.onMessage({ topic: message.topic, data: message.data, ...publicationMetadata(message.messageId, message.timestamp) });
|