@replit/river 0.26.4 → 0.26.5
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/dist/{chunk-65EMTMCV.js → chunk-7KB7DHFZ.js} +4 -9
- package/dist/chunk-7KB7DHFZ.js.map +1 -0
- package/dist/{chunk-DS5LF6PS.js → chunk-AZ3ILPXP.js} +5 -5
- package/dist/chunk-AZ3ILPXP.js.map +1 -0
- package/dist/{chunk-PXRKBNWN.js → chunk-FA2IRWCM.js} +2 -2
- package/dist/{chunk-RSCUADHY.js → chunk-IPOUVVKT.js} +3 -3
- package/dist/{chunk-HPOR6FST.js → chunk-PZEYFHAB.js} +6 -6
- package/dist/chunk-PZEYFHAB.js.map +1 -0
- package/dist/{chunk-CYD6GTCU.js → chunk-QEWSUVWV.js} +2 -2
- package/dist/{chunk-CYD6GTCU.js.map → chunk-QEWSUVWV.js.map} +1 -1
- package/dist/{chunk-42SXIIHP.js → chunk-XRZ52TYH.js} +7 -7
- package/dist/chunk-XRZ52TYH.js.map +1 -0
- package/dist/router/index.cjs +3 -8
- package/dist/router/index.cjs.map +1 -1
- package/dist/router/index.d.cts +1 -1
- package/dist/router/index.d.ts +1 -1
- package/dist/router/index.js +2 -2
- package/dist/transport/impls/ws/client.cjs +10 -15
- package/dist/transport/impls/ws/client.cjs.map +1 -1
- package/dist/transport/impls/ws/client.js +5 -5
- package/dist/transport/impls/ws/server.cjs +9 -14
- package/dist/transport/impls/ws/server.cjs.map +1 -1
- package/dist/transport/impls/ws/server.js +5 -5
- package/dist/transport/index.cjs +11 -16
- package/dist/transport/index.cjs.map +1 -1
- package/dist/transport/index.js +5 -5
- package/dist/util/testHelpers.cjs +8 -13
- package/dist/util/testHelpers.cjs.map +1 -1
- package/dist/util/testHelpers.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-42SXIIHP.js.map +0 -1
- package/dist/chunk-65EMTMCV.js.map +0 -1
- package/dist/chunk-DS5LF6PS.js.map +0 -1
- package/dist/chunk-HPOR6FST.js.map +0 -1
- /package/dist/{chunk-PXRKBNWN.js.map → chunk-FA2IRWCM.js.map} +0 -0
- /package/dist/{chunk-RSCUADHY.js.map → chunk-IPOUVVKT.js.map} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ServerTransport
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-AZ3ILPXP.js";
|
|
4
4
|
import {
|
|
5
5
|
WebSocketConnection
|
|
6
|
-
} from "../../../chunk-
|
|
7
|
-
import "../../../chunk-
|
|
6
|
+
} from "../../../chunk-QEWSUVWV.js";
|
|
7
|
+
import "../../../chunk-IPOUVVKT.js";
|
|
8
8
|
import "../../../chunk-TAH2GVTJ.js";
|
|
9
|
-
import "../../../chunk-
|
|
10
|
-
import "../../../chunk-
|
|
9
|
+
import "../../../chunk-XRZ52TYH.js";
|
|
10
|
+
import "../../../chunk-7KB7DHFZ.js";
|
|
11
11
|
import "../../../chunk-4PVU7J25.js";
|
|
12
12
|
|
|
13
13
|
// transport/impls/ws/server.ts
|
package/dist/transport/index.cjs
CHANGED
|
@@ -246,10 +246,7 @@ var ControlMessageHandshakeRequestSchema = import_typebox.Type.Object({
|
|
|
246
246
|
expectedSessionState: import_typebox.Type.Object({
|
|
247
247
|
// what the client expects the server to send next
|
|
248
248
|
nextExpectedSeq: import_typebox.Type.Integer(),
|
|
249
|
-
|
|
250
|
-
// are nextSentSeq here
|
|
251
|
-
// what the server expects the client to send next
|
|
252
|
-
nextSentSeq: import_typebox.Type.Optional(import_typebox.Type.Integer())
|
|
249
|
+
nextSentSeq: import_typebox.Type.Integer()
|
|
253
250
|
}),
|
|
254
251
|
metadata: import_typebox.Type.Optional(import_typebox.Type.Unknown())
|
|
255
252
|
});
|
|
@@ -285,9 +282,7 @@ var ControlMessageHandshakeResponseSchema = import_typebox.Type.Object({
|
|
|
285
282
|
import_typebox.Type.Object({
|
|
286
283
|
ok: import_typebox.Type.Literal(false),
|
|
287
284
|
reason: import_typebox.Type.String(),
|
|
288
|
-
|
|
289
|
-
// are sending code here
|
|
290
|
-
code: import_typebox.Type.Optional(HandshakeErrorResponseCodes)
|
|
285
|
+
code: HandshakeErrorResponseCodes
|
|
291
286
|
})
|
|
292
287
|
])
|
|
293
288
|
});
|
|
@@ -601,7 +596,7 @@ var SessionNoConnection = class extends IdentifiedSessionWithGracePeriod {
|
|
|
601
596
|
var import_api = require("@opentelemetry/api");
|
|
602
597
|
|
|
603
598
|
// package.json
|
|
604
|
-
var version = "0.26.
|
|
599
|
+
var version = "0.26.5";
|
|
605
600
|
|
|
606
601
|
// tracing/index.ts
|
|
607
602
|
function getPropagationContext(ctx) {
|
|
@@ -763,13 +758,13 @@ var SessionConnected = class extends IdentifiedSession {
|
|
|
763
758
|
this.conn.addCloseListener(this.listeners.onConnectionClosed);
|
|
764
759
|
this.conn.addErrorListener(this.listeners.onConnectionErrored);
|
|
765
760
|
if (this.sendBuffer.length > 0) {
|
|
766
|
-
this.log?.
|
|
767
|
-
`sending ${this.sendBuffer.length} buffered messages`,
|
|
761
|
+
this.log?.info(
|
|
762
|
+
`sending ${this.sendBuffer.length} buffered messages, starting at seq ${this.nextSeq()}`,
|
|
768
763
|
this.loggingMetadata
|
|
769
764
|
);
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
765
|
+
for (const msg of this.sendBuffer) {
|
|
766
|
+
this.conn.send(this.options.codec.toBuffer(msg));
|
|
767
|
+
}
|
|
773
768
|
}
|
|
774
769
|
this.isActivelyHeartbeating = false;
|
|
775
770
|
this.heartbeatHandle = setInterval(() => {
|
|
@@ -1570,10 +1565,10 @@ var ClientTransport = class extends Transport {
|
|
|
1570
1565
|
return;
|
|
1571
1566
|
}
|
|
1572
1567
|
if (!msg.payload.status.ok) {
|
|
1573
|
-
const retriable =
|
|
1568
|
+
const retriable = import_value2.Value.Check(
|
|
1574
1569
|
HandshakeErrorRetriableResponseCodes,
|
|
1575
1570
|
msg.payload.status.code
|
|
1576
|
-
)
|
|
1571
|
+
);
|
|
1577
1572
|
const reason = `handshake failed: ${msg.payload.status.reason}`;
|
|
1578
1573
|
const to = session.to;
|
|
1579
1574
|
this.rejectHandshakeResponse(session, reason, {
|
|
@@ -1996,7 +1991,7 @@ var ServerTransport = class extends Transport {
|
|
|
1996
1991
|
}
|
|
1997
1992
|
let connectCase = "new session";
|
|
1998
1993
|
const clientNextExpectedSeq = msg.payload.expectedSessionState.nextExpectedSeq;
|
|
1999
|
-
const clientNextSentSeq = msg.payload.expectedSessionState.nextSentSeq
|
|
1994
|
+
const clientNextSentSeq = msg.payload.expectedSessionState.nextSentSeq;
|
|
2000
1995
|
if (this.options.enableTransparentSessionReconnects && oldSession && oldSession.id === msg.payload.sessionId) {
|
|
2001
1996
|
connectCase = "transparent reconnection";
|
|
2002
1997
|
const ourNextSeq = oldSession.nextSeq();
|