@replit/river 0.204.0 → 0.205.0
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/README.md +7 -3
- package/dist/{chunk-6YUDEFCS.js → chunk-AXZPYUY6.js} +10 -5
- package/dist/{chunk-6YUDEFCS.js.map → chunk-AXZPYUY6.js.map} +1 -1
- package/dist/{chunk-QSW7AWEP.js → chunk-EU2H4J7U.js} +2 -2
- package/dist/{chunk-LJCR3ADI.js → chunk-GG3GL7CW.js} +4 -4
- package/dist/{chunk-LJCR3ADI.js.map → chunk-GG3GL7CW.js.map} +1 -1
- package/dist/{chunk-3V7VMJNA.js → chunk-RAO6UI45.js} +5 -4
- package/dist/chunk-RAO6UI45.js.map +1 -0
- package/dist/{chunk-YODW2ZMU.js → chunk-VN7QS6OS.js} +3 -3
- package/dist/{client-0c0a4a5e.d.ts → client-3adfb12a.d.ts} +1 -1
- package/dist/{connection-7b62dfec.d.ts → connection-9ca3e7ed.d.ts} +1 -1
- package/dist/{context-3cf1ed4e.d.ts → context-1a332293.d.ts} +4 -1
- package/dist/router/index.cjs +3 -3
- package/dist/router/index.cjs.map +1 -1
- package/dist/router/index.d.cts +7 -7
- package/dist/router/index.d.ts +7 -7
- package/dist/router/index.js +1 -1
- package/dist/{server-a287de55.d.ts → server-8ac5c6bf.d.ts} +1 -1
- package/dist/{services-51980ecd.d.ts → services-4213d92e.d.ts} +2 -2
- package/dist/testUtil/index.cjs +11 -5
- package/dist/testUtil/index.cjs.map +1 -1
- package/dist/testUtil/index.d.cts +4 -4
- package/dist/testUtil/index.d.ts +4 -4
- package/dist/testUtil/index.js +4 -4
- package/dist/transport/impls/ws/client.cjs +11 -5
- package/dist/transport/impls/ws/client.cjs.map +1 -1
- package/dist/transport/impls/ws/client.d.cts +3 -3
- package/dist/transport/impls/ws/client.d.ts +3 -3
- package/dist/transport/impls/ws/client.js +4 -4
- package/dist/transport/impls/ws/server.cjs +9 -4
- package/dist/transport/impls/ws/server.cjs.map +1 -1
- package/dist/transport/impls/ws/server.d.cts +3 -3
- package/dist/transport/impls/ws/server.d.ts +3 -3
- package/dist/transport/impls/ws/server.js +4 -4
- package/dist/transport/index.cjs +11 -5
- package/dist/transport/index.cjs.map +1 -1
- package/dist/transport/index.d.cts +3 -3
- package/dist/transport/index.d.ts +3 -3
- package/dist/transport/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-3V7VMJNA.js.map +0 -1
- /package/dist/{chunk-QSW7AWEP.js.map → chunk-EU2H4J7U.js.map} +0 -0
- /package/dist/{chunk-YODW2ZMU.js.map → chunk-VN7QS6OS.js.map} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as TransportClientId } from '../../../message-3def9ded.js';
|
|
2
2
|
import { WebSocketServer } from 'ws';
|
|
3
|
-
import { W as WebSocketConnection } from '../../../connection-
|
|
3
|
+
import { W as WebSocketConnection } from '../../../connection-9ca3e7ed.js';
|
|
4
4
|
import { W as WsLike } from '../../../wslike-e0b32dd5.js';
|
|
5
|
-
import { S as ServerTransport } from '../../../server-
|
|
6
|
-
import { c as ProvidedServerTransportOptions } from '../../../context-
|
|
5
|
+
import { S as ServerTransport } from '../../../server-8ac5c6bf.js';
|
|
6
|
+
import { c as ProvidedServerTransportOptions } from '../../../context-1a332293.js';
|
|
7
7
|
import { IncomingMessage } from 'http';
|
|
8
8
|
import '@sinclair/typebox/value';
|
|
9
9
|
import '@sinclair/typebox';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { c as TransportClientId } from '../../../message-3def9ded.js';
|
|
2
2
|
import { WebSocketServer } from 'ws';
|
|
3
|
-
import { W as WebSocketConnection } from '../../../connection-
|
|
3
|
+
import { W as WebSocketConnection } from '../../../connection-9ca3e7ed.js';
|
|
4
4
|
import { W as WsLike } from '../../../wslike-e0b32dd5.js';
|
|
5
|
-
import { S as ServerTransport } from '../../../server-
|
|
6
|
-
import { c as ProvidedServerTransportOptions } from '../../../context-
|
|
5
|
+
import { S as ServerTransport } from '../../../server-8ac5c6bf.js';
|
|
6
|
+
import { c as ProvidedServerTransportOptions } from '../../../context-1a332293.js';
|
|
7
7
|
import { IncomingMessage } from 'http';
|
|
8
8
|
import '@sinclair/typebox/value';
|
|
9
9
|
import '@sinclair/typebox';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ServerTransport
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-VN7QS6OS.js";
|
|
4
4
|
import {
|
|
5
5
|
WebSocketConnection
|
|
6
|
-
} from "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
8
|
-
import "../../../chunk-
|
|
6
|
+
} from "../../../chunk-EU2H4J7U.js";
|
|
7
|
+
import "../../../chunk-AXZPYUY6.js";
|
|
8
|
+
import "../../../chunk-GG3GL7CW.js";
|
|
9
9
|
import "../../../chunk-WBGKPIFS.js";
|
|
10
10
|
import "../../../chunk-AJGIY2UB.js";
|
|
11
11
|
|
package/dist/transport/index.cjs
CHANGED
|
@@ -630,7 +630,7 @@ function coerceErrorString(err) {
|
|
|
630
630
|
}
|
|
631
631
|
|
|
632
632
|
// package.json
|
|
633
|
-
var version = "0.
|
|
633
|
+
var version = "0.205.0";
|
|
634
634
|
|
|
635
635
|
// tracing/index.ts
|
|
636
636
|
function getPropagationContext(ctx) {
|
|
@@ -1334,7 +1334,8 @@ var Transport = class {
|
|
|
1334
1334
|
*/
|
|
1335
1335
|
close() {
|
|
1336
1336
|
this.status = "closed";
|
|
1337
|
-
|
|
1337
|
+
const sessions = Array.from(this.sessions.values());
|
|
1338
|
+
for (const session of sessions) {
|
|
1338
1339
|
this.deleteSession(session);
|
|
1339
1340
|
}
|
|
1340
1341
|
this.eventDispatcher.dispatchEvent("transportStatus", {
|
|
@@ -1359,7 +1360,7 @@ var Transport = class {
|
|
|
1359
1360
|
}
|
|
1360
1361
|
this.sessions.set(session.to, session);
|
|
1361
1362
|
this.eventDispatcher.dispatchEvent("sessionStatus", {
|
|
1362
|
-
status: "
|
|
1363
|
+
status: "created",
|
|
1363
1364
|
session
|
|
1364
1365
|
});
|
|
1365
1366
|
this.eventDispatcher.dispatchEvent("sessionTransition", {
|
|
@@ -1400,12 +1401,16 @@ var Transport = class {
|
|
|
1400
1401
|
}
|
|
1401
1402
|
session.log?.info(`closing session ${session.id}`, loggingMetadata);
|
|
1402
1403
|
this.eventDispatcher.dispatchEvent("sessionStatus", {
|
|
1403
|
-
status: "
|
|
1404
|
+
status: "closing",
|
|
1404
1405
|
session
|
|
1405
1406
|
});
|
|
1406
1407
|
const to = session.to;
|
|
1407
1408
|
session.close();
|
|
1408
1409
|
this.sessions.delete(to);
|
|
1410
|
+
this.eventDispatcher.dispatchEvent("sessionStatus", {
|
|
1411
|
+
status: "closed",
|
|
1412
|
+
session: { id: session.id, to }
|
|
1413
|
+
});
|
|
1409
1414
|
}
|
|
1410
1415
|
// common listeners
|
|
1411
1416
|
onSessionGracePeriodElapsed(session) {
|
|
@@ -1803,7 +1808,8 @@ var ClientTransport = class extends Transport {
|
|
|
1803
1808
|
* and don't want to wait for the grace period to elapse.
|
|
1804
1809
|
*/
|
|
1805
1810
|
hardDisconnect() {
|
|
1806
|
-
|
|
1811
|
+
const sessions = Array.from(this.sessions.values());
|
|
1812
|
+
for (const session of sessions) {
|
|
1807
1813
|
this.deleteSession(session);
|
|
1808
1814
|
}
|
|
1809
1815
|
}
|