@replit/river 0.214.0 → 0.215.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/dist/{adapter-Cp7_gIVA.d.ts → adapter-CgF7vQPu.d.ts} +3 -2
- package/dist/{adapter-DjiEwOYi.d.cts → adapter-IGrG4KLL.d.cts} +3 -2
- package/dist/{chunk-LECVFB2G.js → chunk-RDTQZ7HO.js} +15 -10
- package/dist/chunk-RDTQZ7HO.js.map +1 -0
- package/dist/{chunk-DRYCLL6N.js → chunk-VXRAFUA3.js} +178 -54
- package/dist/chunk-VXRAFUA3.js.map +1 -0
- package/dist/{client-Dw0JBBs3.d.ts → client-BhwlY0-L.d.ts} +2 -2
- package/dist/{client-DXJRow2s.d.cts → client-Dk4H7qeg.d.cts} +2 -2
- package/dist/codec/index.cjs.map +1 -1
- package/dist/codec/index.d.cts +3 -3
- package/dist/codec/index.d.ts +3 -3
- package/dist/codec/index.js +2 -2
- package/dist/{connection-Dzkqj18h.d.cts → connection-CS00EWuS.d.cts} +3 -3
- package/dist/{connection-C2lYgRh0.d.ts → connection-DU9v3y8a.d.ts} +3 -3
- package/dist/{index-D9R6UTMl.d.cts → index-CHCzvZ9D.d.cts} +1 -1
- package/dist/{index-CSM8soK7.d.ts → index-uF0cBM7z.d.ts} +1 -1
- package/dist/logging/index.d.cts +2 -2
- package/dist/logging/index.d.ts +2 -2
- package/dist/{message-Dlsh5WDF.d.cts → message-aABg0s5M.d.cts} +12 -1
- package/dist/{message-Dlsh5WDF.d.ts → message-aABg0s5M.d.ts} +12 -1
- package/dist/router/index.cjs +14 -9
- package/dist/router/index.cjs.map +1 -1
- package/dist/router/index.d.cts +10 -10
- package/dist/router/index.d.ts +10 -10
- package/dist/router/index.js +1 -1
- package/dist/{server-BDSYa-CO.d.cts → server-BR0DZaWi.d.cts} +4 -4
- package/dist/{server-DFOzjvLh.d.ts → server-uNzkzIRh.d.ts} +4 -4
- package/dist/{services-D47_GPCH.d.ts → services-B5SY771g.d.ts} +3 -3
- package/dist/{services-DqYQvm_L.d.cts → services-DBv2nmly.d.cts} +3 -3
- package/dist/testUtil/index.cjs +179 -53
- package/dist/testUtil/index.cjs.map +1 -1
- package/dist/testUtil/index.d.cts +7 -7
- package/dist/testUtil/index.d.ts +7 -7
- package/dist/testUtil/index.js +4 -2
- package/dist/testUtil/index.js.map +1 -1
- package/dist/transport/impls/ws/client.cjs +166 -53
- package/dist/transport/impls/ws/client.cjs.map +1 -1
- package/dist/transport/impls/ws/client.d.cts +6 -6
- package/dist/transport/impls/ws/client.d.ts +6 -6
- package/dist/transport/impls/ws/client.js +2 -2
- package/dist/transport/impls/ws/server.cjs +133 -53
- package/dist/transport/impls/ws/server.cjs.map +1 -1
- package/dist/transport/impls/ws/server.d.cts +6 -6
- package/dist/transport/impls/ws/server.d.ts +6 -6
- package/dist/transport/impls/ws/server.js +2 -2
- package/dist/transport/index.cjs +177 -53
- package/dist/transport/index.cjs.map +1 -1
- package/dist/transport/index.d.cts +7 -7
- package/dist/transport/index.d.ts +7 -7
- package/dist/transport/index.js +2 -2
- package/dist/{transport-CxT7y8Qk.d.cts → transport-BOL2p5s-.d.ts} +70 -64
- package/dist/{transport-pdbkDzmJ.d.ts → transport-D3jzhFSi.d.cts} +70 -64
- package/package.json +1 -1
- package/dist/chunk-DRYCLL6N.js.map +0 -1
- package/dist/chunk-LECVFB2G.js.map +0 -1
|
@@ -92,6 +92,17 @@ type PartialTransportMessage<Payload = unknown> = Omit<TransportMessage<Payload>
|
|
|
92
92
|
*/
|
|
93
93
|
type OpaqueTransportMessage = TransportMessage;
|
|
94
94
|
type TransportClientId = string;
|
|
95
|
+
/**
|
|
96
|
+
* An encoded message that is ready to be sent over the transport.
|
|
97
|
+
* The seq number is kept to track which messages have been
|
|
98
|
+
* acked by the peer and can be dropped from the send buffer.
|
|
99
|
+
*/
|
|
100
|
+
interface EncodedTransportMessage {
|
|
101
|
+
id: string;
|
|
102
|
+
seq: number;
|
|
103
|
+
msg: PartialTransportMessage;
|
|
104
|
+
data: Uint8Array;
|
|
105
|
+
}
|
|
95
106
|
/**
|
|
96
107
|
* Checks if the given control flag (usually found in msg.controlFlag) is a stream open message.
|
|
97
108
|
* @param controlFlag - The control flag to check.
|
|
@@ -105,4 +116,4 @@ declare function isStreamOpen(controlFlag: number): boolean;
|
|
|
105
116
|
*/
|
|
106
117
|
declare function isStreamClose(controlFlag: number): boolean;
|
|
107
118
|
|
|
108
|
-
export { HandshakeErrorResponseCodes as H, OpaqueTransportMessageSchema as O, type ProtocolVersion as P, TransportMessageSchema as T, type TransportMessage as a, type OpaqueTransportMessage as b, type TransportClientId as c, isStreamClose as d, type PartialTransportMessage as e, type TelemetryInfo as f, HandshakeErrorCustomHandlerFatalResponseCodes as g, isStreamOpen as i };
|
|
119
|
+
export { type EncodedTransportMessage as E, HandshakeErrorResponseCodes as H, OpaqueTransportMessageSchema as O, type ProtocolVersion as P, TransportMessageSchema as T, type TransportMessage as a, type OpaqueTransportMessage as b, type TransportClientId as c, isStreamClose as d, type PartialTransportMessage as e, type TelemetryInfo as f, HandshakeErrorCustomHandlerFatalResponseCodes as g, isStreamOpen as i };
|
|
@@ -92,6 +92,17 @@ type PartialTransportMessage<Payload = unknown> = Omit<TransportMessage<Payload>
|
|
|
92
92
|
*/
|
|
93
93
|
type OpaqueTransportMessage = TransportMessage;
|
|
94
94
|
type TransportClientId = string;
|
|
95
|
+
/**
|
|
96
|
+
* An encoded message that is ready to be sent over the transport.
|
|
97
|
+
* The seq number is kept to track which messages have been
|
|
98
|
+
* acked by the peer and can be dropped from the send buffer.
|
|
99
|
+
*/
|
|
100
|
+
interface EncodedTransportMessage {
|
|
101
|
+
id: string;
|
|
102
|
+
seq: number;
|
|
103
|
+
msg: PartialTransportMessage;
|
|
104
|
+
data: Uint8Array;
|
|
105
|
+
}
|
|
95
106
|
/**
|
|
96
107
|
* Checks if the given control flag (usually found in msg.controlFlag) is a stream open message.
|
|
97
108
|
* @param controlFlag - The control flag to check.
|
|
@@ -105,4 +116,4 @@ declare function isStreamOpen(controlFlag: number): boolean;
|
|
|
105
116
|
*/
|
|
106
117
|
declare function isStreamClose(controlFlag: number): boolean;
|
|
107
118
|
|
|
108
|
-
export { HandshakeErrorResponseCodes as H, OpaqueTransportMessageSchema as O, type ProtocolVersion as P, TransportMessageSchema as T, type TransportMessage as a, type OpaqueTransportMessage as b, type TransportClientId as c, isStreamClose as d, type PartialTransportMessage as e, type TelemetryInfo as f, HandshakeErrorCustomHandlerFatalResponseCodes as g, isStreamOpen as i };
|
|
119
|
+
export { type EncodedTransportMessage as E, HandshakeErrorResponseCodes as H, OpaqueTransportMessageSchema as O, type ProtocolVersion as P, TransportMessageSchema as T, type TransportMessage as a, type OpaqueTransportMessage as b, type TransportClientId as c, isStreamClose as d, type PartialTransportMessage as e, type TelemetryInfo as f, HandshakeErrorCustomHandlerFatalResponseCodes as g, isStreamOpen as i };
|
package/dist/router/index.cjs
CHANGED
|
@@ -1161,14 +1161,19 @@ function handleProc(procType, transport, serverId, init, serviceName, procedureN
|
|
|
1161
1161
|
abortSignal?.addEventListener("abort", onClientCancel);
|
|
1162
1162
|
transport.addEventListener("message", onMessage);
|
|
1163
1163
|
transport.addEventListener("sessionStatus", onSessionStatus);
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1164
|
+
try {
|
|
1165
|
+
sessionScopedSend({
|
|
1166
|
+
streamId,
|
|
1167
|
+
serviceName,
|
|
1168
|
+
procedureName,
|
|
1169
|
+
tracing: getPropagationContext(ctx),
|
|
1170
|
+
payload: init,
|
|
1171
|
+
controlFlags: procClosesWithInit ? 2 /* StreamOpenBit */ | 8 /* StreamClosedBit */ : 2 /* StreamOpenBit */
|
|
1172
|
+
});
|
|
1173
|
+
} catch (e) {
|
|
1174
|
+
cleanup();
|
|
1175
|
+
throw e;
|
|
1176
|
+
}
|
|
1172
1177
|
if (procClosesWithInit) {
|
|
1173
1178
|
reqWritable.close();
|
|
1174
1179
|
}
|
|
@@ -2004,7 +2009,7 @@ function createServerHandshakeOptions(schema, validate) {
|
|
|
2004
2009
|
}
|
|
2005
2010
|
|
|
2006
2011
|
// package.json
|
|
2007
|
-
var version = "0.
|
|
2012
|
+
var version = "0.215.0";
|
|
2008
2013
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2009
2014
|
0 && (module.exports = {
|
|
2010
2015
|
CANCEL_CODE,
|