@replit/river 0.204.0 → 0.205.1
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-QSW7AWEP.js → chunk-356UADV3.js} +2 -2
- package/dist/{chunk-3V7VMJNA.js → chunk-3XCLUGDM.js} +5 -4
- package/dist/chunk-3XCLUGDM.js.map +1 -0
- package/dist/{chunk-WBGKPIFS.js → chunk-CC7RN7GI.js} +1 -1
- package/dist/chunk-CC7RN7GI.js.map +1 -0
- package/dist/{chunk-LJCR3ADI.js → chunk-HNBYBRJ7.js} +43 -15
- package/dist/chunk-HNBYBRJ7.js.map +1 -0
- package/dist/{chunk-YODW2ZMU.js → chunk-OVLZDQF4.js} +3 -3
- package/dist/{chunk-6YUDEFCS.js → chunk-Y2N4EJYG.js} +11 -6
- package/dist/{chunk-6YUDEFCS.js.map → chunk-Y2N4EJYG.js.map} +1 -1
- package/dist/{client-0c0a4a5e.d.ts → client-c44d1c69.d.ts} +2 -2
- package/dist/{connection-7b62dfec.d.ts → connection-03726441.d.ts} +6 -4
- package/dist/{context-3cf1ed4e.d.ts → context-ebf88958.d.ts} +13 -5
- package/dist/logging/index.cjs.map +1 -1
- package/dist/logging/index.d.cts +1 -2
- package/dist/logging/index.d.ts +1 -2
- package/dist/logging/index.js +1 -1
- package/dist/{message-3def9ded.d.ts → message-865bba35.d.ts} +4 -2
- package/dist/router/index.cjs +42 -14
- package/dist/router/index.cjs.map +1 -1
- package/dist/router/index.d.cts +8 -10
- package/dist/router/index.d.ts +8 -10
- package/dist/router/index.js +1 -1
- package/dist/{server-a287de55.d.ts → server-b169b234.d.ts} +6 -4
- package/dist/{services-51980ecd.d.ts → services-47b312aa.d.ts} +11 -3
- package/dist/testUtil/index.cjs +11 -5
- package/dist/testUtil/index.cjs.map +1 -1
- package/dist/testUtil/index.d.cts +5 -7
- package/dist/testUtil/index.d.ts +5 -7
- package/dist/testUtil/index.js +5 -5
- 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 +4 -6
- package/dist/transport/impls/ws/client.d.ts +4 -6
- package/dist/transport/impls/ws/client.js +5 -5
- 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 +4 -6
- package/dist/transport/impls/ws/server.d.ts +4 -6
- package/dist/transport/impls/ws/server.js +5 -5
- package/dist/transport/index.cjs +11 -5
- package/dist/transport/index.cjs.map +1 -1
- package/dist/transport/index.d.cts +4 -6
- package/dist/transport/index.d.ts +4 -6
- package/dist/transport/index.js +5 -5
- package/package.json +1 -1
- package/dist/chunk-3V7VMJNA.js.map +0 -1
- package/dist/chunk-LJCR3ADI.js.map +0 -1
- package/dist/chunk-WBGKPIFS.js.map +0 -1
- /package/dist/{chunk-QSW7AWEP.js.map → chunk-356UADV3.js.map} +0 -0
- /package/dist/{chunk-YODW2ZMU.js.map → chunk-OVLZDQF4.js.map} +0 -0
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import { b as ProvidedClientTransportOptions, c as ProvidedServerTransportOptions, n as ClientHandshakeOptions, C as Connection, r as ServerHandshakeOptions, T as Transport, A as SessionOptions, m as ClientTransportOptions, e as SessionNoConnection, B as SessionBoundSendFn } from '../context-
|
|
2
|
-
import { C as ClientTransport } from '../client-
|
|
3
|
-
import { S as ServerTransport } from '../server-
|
|
4
|
-
import { c as TransportClientId, f as PartialTransportMessage, b as OpaqueTransportMessage } from '../message-
|
|
1
|
+
import { b as ProvidedClientTransportOptions, c as ProvidedServerTransportOptions, n as ClientHandshakeOptions, C as Connection, r as ServerHandshakeOptions, T as Transport, A as SessionOptions, m as ClientTransportOptions, e as SessionNoConnection, B as SessionBoundSendFn } from '../context-ebf88958.js';
|
|
2
|
+
import { C as ClientTransport } from '../client-c44d1c69.js';
|
|
3
|
+
import { S as ServerTransport } from '../server-b169b234.js';
|
|
4
|
+
import { c as TransportClientId, f as PartialTransportMessage, b as OpaqueTransportMessage } from '../message-865bba35.js';
|
|
5
5
|
import { Static } from '@sinclair/typebox';
|
|
6
|
-
import { E as BaseErrorSchemaType, u as Readable, X as ReadableIterator, Y as ReadableResult } from '../services-
|
|
6
|
+
import { E as BaseErrorSchemaType, u as Readable, X as ReadableIterator, Y as ReadableResult } from '../services-47b312aa.js';
|
|
7
7
|
import NodeWs from 'ws';
|
|
8
8
|
import http from 'node:http';
|
|
9
9
|
import { W as WsLike } from '../wslike-e0b32dd5.js';
|
|
10
10
|
import { Duplex } from 'node:stream';
|
|
11
|
-
import '@sinclair/typebox/errors';
|
|
12
11
|
import '@opentelemetry/api';
|
|
13
12
|
import '../types-3e5768ec.js';
|
|
14
|
-
import '@sinclair/typebox/value';
|
|
15
13
|
|
|
16
14
|
interface TestTransportOptions {
|
|
17
15
|
client?: ProvidedClientTransportOptions;
|
package/dist/testUtil/index.d.ts
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
|
-
import { b as ProvidedClientTransportOptions, c as ProvidedServerTransportOptions, n as ClientHandshakeOptions, C as Connection, r as ServerHandshakeOptions, T as Transport, A as SessionOptions, m as ClientTransportOptions, e as SessionNoConnection, B as SessionBoundSendFn } from '../context-
|
|
2
|
-
import { C as ClientTransport } from '../client-
|
|
3
|
-
import { S as ServerTransport } from '../server-
|
|
4
|
-
import { c as TransportClientId, f as PartialTransportMessage, b as OpaqueTransportMessage } from '../message-
|
|
1
|
+
import { b as ProvidedClientTransportOptions, c as ProvidedServerTransportOptions, n as ClientHandshakeOptions, C as Connection, r as ServerHandshakeOptions, T as Transport, A as SessionOptions, m as ClientTransportOptions, e as SessionNoConnection, B as SessionBoundSendFn } from '../context-ebf88958.js';
|
|
2
|
+
import { C as ClientTransport } from '../client-c44d1c69.js';
|
|
3
|
+
import { S as ServerTransport } from '../server-b169b234.js';
|
|
4
|
+
import { c as TransportClientId, f as PartialTransportMessage, b as OpaqueTransportMessage } from '../message-865bba35.js';
|
|
5
5
|
import { Static } from '@sinclair/typebox';
|
|
6
|
-
import { E as BaseErrorSchemaType, u as Readable, X as ReadableIterator, Y as ReadableResult } from '../services-
|
|
6
|
+
import { E as BaseErrorSchemaType, u as Readable, X as ReadableIterator, Y as ReadableResult } from '../services-47b312aa.js';
|
|
7
7
|
import NodeWs from 'ws';
|
|
8
8
|
import http from 'node:http';
|
|
9
9
|
import { W as WsLike } from '../wslike-e0b32dd5.js';
|
|
10
10
|
import { Duplex } from 'node:stream';
|
|
11
|
-
import '@sinclair/typebox/errors';
|
|
12
11
|
import '@opentelemetry/api';
|
|
13
12
|
import '../types-3e5768ec.js';
|
|
14
|
-
import '@sinclair/typebox/value';
|
|
15
13
|
|
|
16
14
|
interface TestTransportOptions {
|
|
17
15
|
client?: ProvidedClientTransportOptions;
|
package/dist/testUtil/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ClientTransport
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-3XCLUGDM.js";
|
|
4
4
|
import {
|
|
5
5
|
ServerTransport
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-OVLZDQF4.js";
|
|
7
7
|
import {
|
|
8
8
|
Connection,
|
|
9
9
|
SessionStateGraph,
|
|
10
10
|
defaultClientTransportOptions,
|
|
11
11
|
defaultTransportOptions
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-Y2N4EJYG.js";
|
|
13
13
|
import {
|
|
14
14
|
currentProtocolVersion,
|
|
15
15
|
getTracer
|
|
16
|
-
} from "../chunk-
|
|
17
|
-
import "../chunk-
|
|
16
|
+
} from "../chunk-HNBYBRJ7.js";
|
|
17
|
+
import "../chunk-CC7RN7GI.js";
|
|
18
18
|
import "../chunk-AJGIY2UB.js";
|
|
19
19
|
|
|
20
20
|
// testUtil/index.ts
|
|
@@ -661,7 +661,7 @@ function coerceErrorString(err) {
|
|
|
661
661
|
}
|
|
662
662
|
|
|
663
663
|
// package.json
|
|
664
|
-
var version = "0.
|
|
664
|
+
var version = "0.205.1";
|
|
665
665
|
|
|
666
666
|
// tracing/index.ts
|
|
667
667
|
function getPropagationContext(ctx) {
|
|
@@ -1365,7 +1365,8 @@ var Transport = class {
|
|
|
1365
1365
|
*/
|
|
1366
1366
|
close() {
|
|
1367
1367
|
this.status = "closed";
|
|
1368
|
-
|
|
1368
|
+
const sessions = Array.from(this.sessions.values());
|
|
1369
|
+
for (const session of sessions) {
|
|
1369
1370
|
this.deleteSession(session);
|
|
1370
1371
|
}
|
|
1371
1372
|
this.eventDispatcher.dispatchEvent("transportStatus", {
|
|
@@ -1390,7 +1391,7 @@ var Transport = class {
|
|
|
1390
1391
|
}
|
|
1391
1392
|
this.sessions.set(session.to, session);
|
|
1392
1393
|
this.eventDispatcher.dispatchEvent("sessionStatus", {
|
|
1393
|
-
status: "
|
|
1394
|
+
status: "created",
|
|
1394
1395
|
session
|
|
1395
1396
|
});
|
|
1396
1397
|
this.eventDispatcher.dispatchEvent("sessionTransition", {
|
|
@@ -1431,12 +1432,16 @@ var Transport = class {
|
|
|
1431
1432
|
}
|
|
1432
1433
|
session.log?.info(`closing session ${session.id}`, loggingMetadata);
|
|
1433
1434
|
this.eventDispatcher.dispatchEvent("sessionStatus", {
|
|
1434
|
-
status: "
|
|
1435
|
+
status: "closing",
|
|
1435
1436
|
session
|
|
1436
1437
|
});
|
|
1437
1438
|
const to = session.to;
|
|
1438
1439
|
session.close();
|
|
1439
1440
|
this.sessions.delete(to);
|
|
1441
|
+
this.eventDispatcher.dispatchEvent("sessionStatus", {
|
|
1442
|
+
status: "closed",
|
|
1443
|
+
session: { id: session.id, to }
|
|
1444
|
+
});
|
|
1440
1445
|
}
|
|
1441
1446
|
// common listeners
|
|
1442
1447
|
onSessionGracePeriodElapsed(session) {
|
|
@@ -1764,7 +1769,8 @@ var ClientTransport = class extends Transport {
|
|
|
1764
1769
|
* and don't want to wait for the grace period to elapse.
|
|
1765
1770
|
*/
|
|
1766
1771
|
hardDisconnect() {
|
|
1767
|
-
|
|
1772
|
+
const sessions = Array.from(this.sessions.values());
|
|
1773
|
+
for (const session of sessions) {
|
|
1768
1774
|
this.deleteSession(session);
|
|
1769
1775
|
}
|
|
1770
1776
|
}
|