@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
package/dist/router/index.d.cts
CHANGED
|
@@ -46,6 +46,6 @@ declare function createServer<Services extends AnyServiceSchemaMap>(transport: S
|
|
|
46
46
|
extendedContext?: Omit<ServiceContext, 'state'>;
|
|
47
47
|
}>): Server<Services>;
|
|
48
48
|
|
|
49
|
-
var version = "0.26.
|
|
49
|
+
var version = "0.26.5";
|
|
50
50
|
|
|
51
51
|
export { PayloadType, version as RIVER_VERSION, Result, RiverError, Server, ServiceContext, createServer };
|
package/dist/router/index.d.ts
CHANGED
|
@@ -46,6 +46,6 @@ declare function createServer<Services extends AnyServiceSchemaMap>(transport: S
|
|
|
46
46
|
extendedContext?: Omit<ServiceContext, 'state'>;
|
|
47
47
|
}>): Server<Services>;
|
|
48
48
|
|
|
49
|
-
var version = "0.26.
|
|
49
|
+
var version = "0.26.5";
|
|
50
50
|
|
|
51
51
|
export { PayloadType, version as RIVER_VERSION, Result, RiverError, Server, ServiceContext, createServer };
|
package/dist/router/index.js
CHANGED
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
createServer,
|
|
11
11
|
createServerHandshakeOptions,
|
|
12
12
|
serializeSchema
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-FA2IRWCM.js";
|
|
14
14
|
import {
|
|
15
15
|
version
|
|
16
|
-
} from "../chunk-
|
|
16
|
+
} from "../chunk-7KB7DHFZ.js";
|
|
17
17
|
export {
|
|
18
18
|
Err,
|
|
19
19
|
Ok,
|
|
@@ -75,10 +75,7 @@ var ControlMessageHandshakeRequestSchema = import_typebox.Type.Object({
|
|
|
75
75
|
expectedSessionState: import_typebox.Type.Object({
|
|
76
76
|
// what the client expects the server to send next
|
|
77
77
|
nextExpectedSeq: import_typebox.Type.Integer(),
|
|
78
|
-
|
|
79
|
-
// are nextSentSeq here
|
|
80
|
-
// what the server expects the client to send next
|
|
81
|
-
nextSentSeq: import_typebox.Type.Optional(import_typebox.Type.Integer())
|
|
78
|
+
nextSentSeq: import_typebox.Type.Integer()
|
|
82
79
|
}),
|
|
83
80
|
metadata: import_typebox.Type.Optional(import_typebox.Type.Unknown())
|
|
84
81
|
});
|
|
@@ -114,9 +111,7 @@ var ControlMessageHandshakeResponseSchema = import_typebox.Type.Object({
|
|
|
114
111
|
import_typebox.Type.Object({
|
|
115
112
|
ok: import_typebox.Type.Literal(false),
|
|
116
113
|
reason: import_typebox.Type.String(),
|
|
117
|
-
|
|
118
|
-
// are sending code here
|
|
119
|
-
code: import_typebox.Type.Optional(HandshakeErrorResponseCodes)
|
|
114
|
+
code: HandshakeErrorResponseCodes
|
|
120
115
|
})
|
|
121
116
|
])
|
|
122
117
|
});
|
|
@@ -636,7 +631,7 @@ var SessionNoConnection = class extends IdentifiedSessionWithGracePeriod {
|
|
|
636
631
|
var import_api = require("@opentelemetry/api");
|
|
637
632
|
|
|
638
633
|
// package.json
|
|
639
|
-
var version = "0.26.
|
|
634
|
+
var version = "0.26.5";
|
|
640
635
|
|
|
641
636
|
// tracing/index.ts
|
|
642
637
|
function getPropagationContext(ctx) {
|
|
@@ -798,13 +793,13 @@ var SessionConnected = class extends IdentifiedSession {
|
|
|
798
793
|
this.conn.addCloseListener(this.listeners.onConnectionClosed);
|
|
799
794
|
this.conn.addErrorListener(this.listeners.onConnectionErrored);
|
|
800
795
|
if (this.sendBuffer.length > 0) {
|
|
801
|
-
this.log?.
|
|
802
|
-
`sending ${this.sendBuffer.length} buffered messages`,
|
|
796
|
+
this.log?.info(
|
|
797
|
+
`sending ${this.sendBuffer.length} buffered messages, starting at seq ${this.nextSeq()}`,
|
|
803
798
|
this.loggingMetadata
|
|
804
799
|
);
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
800
|
+
for (const msg of this.sendBuffer) {
|
|
801
|
+
this.conn.send(this.options.codec.toBuffer(msg));
|
|
802
|
+
}
|
|
808
803
|
}
|
|
809
804
|
this.isActivelyHeartbeating = false;
|
|
810
805
|
this.heartbeatHandle = setInterval(() => {
|
|
@@ -1535,10 +1530,10 @@ var ClientTransport = class extends Transport {
|
|
|
1535
1530
|
return;
|
|
1536
1531
|
}
|
|
1537
1532
|
if (!msg.payload.status.ok) {
|
|
1538
|
-
const retriable =
|
|
1533
|
+
const retriable = import_value2.Value.Check(
|
|
1539
1534
|
HandshakeErrorRetriableResponseCodes,
|
|
1540
1535
|
msg.payload.status.code
|
|
1541
|
-
)
|
|
1536
|
+
);
|
|
1542
1537
|
const reason = `handshake failed: ${msg.payload.status.reason}`;
|
|
1543
1538
|
const to = session.to;
|
|
1544
1539
|
this.rejectHandshakeResponse(session, reason, {
|