@replit/river 0.206.0 → 0.207.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/dist/{chunk-VGWFMCOP.js → chunk-7LMZNSVC.js} +2 -2
- package/dist/{chunk-NTVJNU5K.js → chunk-BCCZA7SX.js} +2 -11
- package/dist/{chunk-NTVJNU5K.js.map → chunk-BCCZA7SX.js.map} +1 -1
- package/dist/{chunk-FCQWZRES.js → chunk-CRD3HDVN.js} +3 -3
- package/dist/{chunk-EMOYAUX3.js → chunk-I27WBSMZ.js} +3 -3
- package/dist/{chunk-JSU537MZ.js → chunk-QMAVXV4Z.js} +8 -3
- package/dist/chunk-QMAVXV4Z.js.map +1 -0
- package/dist/{connection-494a5b68.d.ts → connection-933c87b2.d.ts} +1 -1
- package/dist/router/index.cjs +3 -13
- package/dist/router/index.cjs.map +1 -1
- package/dist/router/index.d.cts +3 -3
- package/dist/router/index.d.ts +3 -3
- package/dist/router/index.js +2 -4
- package/dist/{services-15a0df95.d.ts → services-4cd29829.d.ts} +1 -8
- package/dist/testUtil/index.cjs +7 -2
- package/dist/testUtil/index.cjs.map +1 -1
- package/dist/testUtil/index.d.cts +1 -1
- package/dist/testUtil/index.d.ts +1 -1
- package/dist/testUtil/index.js +4 -4
- package/dist/transport/impls/ws/client.cjs +7 -2
- package/dist/transport/impls/ws/client.cjs.map +1 -1
- package/dist/transport/impls/ws/client.d.cts +2 -2
- package/dist/transport/impls/ws/client.d.ts +2 -2
- package/dist/transport/impls/ws/client.js +4 -4
- package/dist/transport/impls/ws/server.cjs +7 -2
- package/dist/transport/impls/ws/server.cjs.map +1 -1
- package/dist/transport/impls/ws/server.d.cts +2 -2
- package/dist/transport/impls/ws/server.d.ts +2 -2
- package/dist/transport/impls/ws/server.js +4 -4
- package/dist/transport/index.cjs +7 -2
- package/dist/transport/index.cjs.map +1 -1
- package/dist/transport/index.d.cts +2 -2
- package/dist/transport/index.d.ts +2 -2
- package/dist/transport/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-JSU537MZ.js.map +0 -1
- /package/dist/{chunk-VGWFMCOP.js.map → chunk-7LMZNSVC.js.map} +0 -0
- /package/dist/{chunk-FCQWZRES.js.map → chunk-CRD3HDVN.js.map} +0 -0
- /package/dist/{chunk-EMOYAUX3.js.map → chunk-I27WBSMZ.js.map} +0 -0
package/dist/router/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, c as ParsedMetadata, d as AnyProcedure, b as Connection, S as ServerHandshakeOptions, e as ServiceContext } from '../services-
|
|
2
|
-
export { M as BaseErrorSchemaType, K as CANCEL_CODE, O as Client, X as Err,
|
|
1
|
+
import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, c as ParsedMetadata, d as AnyProcedure, b as Connection, S as ServerHandshakeOptions, e as ServiceContext } from '../services-4cd29829.js';
|
|
2
|
+
export { M as BaseErrorSchemaType, K as CANCEL_CODE, O as Client, X as Err, Z as ErrResult, J as INVALID_REQUEST_CODE, T as Ok, _ as OkResult, w as PayloadType, l as ProcErrors, h as ProcHandler, i as ProcInit, j as ProcRequest, k as ProcResponse, m as ProcType, D as Procedure, E as ProcedureErrorSchemaType, Q as ProcedureHandlerContext, x as ProcedureMap, R as RPCProcedure, B as Readable, L as ReaderErrorSchema, a1 as ResponseData, Y as Result, a0 as ResultUnwrapErr, $ as ResultUnwrapOk, q as SerializedProcedureSchema, v as SerializedProcedureSchemaProtocolv1, o as SerializedServerSchema, t as SerializedServerSchemaProtocolv1, p as SerializedServiceSchema, u as SerializedServiceSchemaProtocolv1, f as Service, g as ServiceConfiguration, n as ServiceSchema, z as StreamProcedure, y as SubscriptionProcedure, G as UNCAUGHT_ERROR_CODE, H as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, N as createClient, a2 as createClientHandshakeOptions, a3 as createServerHandshakeOptions, F as flattenErrorType, s as serializeSchema, r as serializeSchemaV1Compat } from '../services-4cd29829.js';
|
|
3
3
|
import { T as TransportClientId, O as OpaqueTransportMessage } from '../message-ffacb98a.js';
|
|
4
4
|
import { ServerTransport } from '../transport/index.cjs';
|
|
5
5
|
import '@sinclair/typebox';
|
|
@@ -51,6 +51,6 @@ declare function createServer<Services extends AnyServiceSchemaMap>(transport: S
|
|
|
51
51
|
maxCancelledStreamTombstonesPerSession?: number;
|
|
52
52
|
}>): Server<Services>;
|
|
53
53
|
|
|
54
|
-
var version = "0.
|
|
54
|
+
var version = "0.207.1";
|
|
55
55
|
|
|
56
56
|
export { ParsedMetadata, version as RIVER_VERSION, Server, ServiceContext, createServer };
|
package/dist/router/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, c as ParsedMetadata, d as AnyProcedure, b as Connection, S as ServerHandshakeOptions, e as ServiceContext } from '../services-
|
|
2
|
-
export { M as BaseErrorSchemaType, K as CANCEL_CODE, O as Client, X as Err,
|
|
1
|
+
import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, c as ParsedMetadata, d as AnyProcedure, b as Connection, S as ServerHandshakeOptions, e as ServiceContext } from '../services-4cd29829.js';
|
|
2
|
+
export { M as BaseErrorSchemaType, K as CANCEL_CODE, O as Client, X as Err, Z as ErrResult, J as INVALID_REQUEST_CODE, T as Ok, _ as OkResult, w as PayloadType, l as ProcErrors, h as ProcHandler, i as ProcInit, j as ProcRequest, k as ProcResponse, m as ProcType, D as Procedure, E as ProcedureErrorSchemaType, Q as ProcedureHandlerContext, x as ProcedureMap, R as RPCProcedure, B as Readable, L as ReaderErrorSchema, a1 as ResponseData, Y as Result, a0 as ResultUnwrapErr, $ as ResultUnwrapOk, q as SerializedProcedureSchema, v as SerializedProcedureSchemaProtocolv1, o as SerializedServerSchema, t as SerializedServerSchemaProtocolv1, p as SerializedServiceSchema, u as SerializedServiceSchemaProtocolv1, f as Service, g as ServiceConfiguration, n as ServiceSchema, z as StreamProcedure, y as SubscriptionProcedure, G as UNCAUGHT_ERROR_CODE, H as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, N as createClient, a2 as createClientHandshakeOptions, a3 as createServerHandshakeOptions, F as flattenErrorType, s as serializeSchema, r as serializeSchemaV1Compat } from '../services-4cd29829.js';
|
|
3
3
|
import { T as TransportClientId, O as OpaqueTransportMessage } from '../message-ffacb98a.js';
|
|
4
4
|
import { ServerTransport } from '../transport/index.js';
|
|
5
5
|
import '@sinclair/typebox';
|
|
@@ -51,6 +51,6 @@ declare function createServer<Services extends AnyServiceSchemaMap>(transport: S
|
|
|
51
51
|
maxCancelledStreamTombstonesPerSession?: number;
|
|
52
52
|
}>): Server<Services>;
|
|
53
53
|
|
|
54
|
-
var version = "0.
|
|
54
|
+
var version = "0.207.1";
|
|
55
55
|
|
|
56
56
|
export { ParsedMetadata, version as RIVER_VERSION, Server, ServiceContext, createServer };
|
package/dist/router/index.js
CHANGED
|
@@ -15,9 +15,8 @@ import {
|
|
|
15
15
|
flattenErrorType,
|
|
16
16
|
serializeSchema,
|
|
17
17
|
serializeSchemaV1Compat,
|
|
18
|
-
unwrapOrThrow,
|
|
19
18
|
version
|
|
20
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-BCCZA7SX.js";
|
|
21
20
|
export {
|
|
22
21
|
CANCEL_CODE,
|
|
23
22
|
Err,
|
|
@@ -35,7 +34,6 @@ export {
|
|
|
35
34
|
createServerHandshakeOptions,
|
|
36
35
|
flattenErrorType,
|
|
37
36
|
serializeSchema,
|
|
38
|
-
serializeSchemaV1Compat
|
|
39
|
-
unwrapOrThrow
|
|
37
|
+
serializeSchemaV1Compat
|
|
40
38
|
};
|
|
41
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -874,13 +874,6 @@ declare function Err<const Err extends Static<BaseErrorSchemaType>>(error: Err):
|
|
|
874
874
|
* Refine a {@link Result} type to its returned payload.
|
|
875
875
|
*/
|
|
876
876
|
type ResultUnwrapOk<R> = R extends Result<infer T, infer __E> ? T : never;
|
|
877
|
-
/**
|
|
878
|
-
* Unwrap a {@link Result} type and return the payload if successful,
|
|
879
|
-
* otherwise throws an error.
|
|
880
|
-
* @param result - The result to unwrap.
|
|
881
|
-
* @throws Will throw an error if the result is not ok.
|
|
882
|
-
*/
|
|
883
|
-
declare function unwrapOrThrow<T, Err extends Static<BaseErrorSchemaType>>(result: Result<T, Err>): T;
|
|
884
877
|
/**
|
|
885
878
|
* Refine a {@link Result} type to its error payload.
|
|
886
879
|
*/
|
|
@@ -1568,4 +1561,4 @@ declare class ServiceScaffold<State extends object> {
|
|
|
1568
1561
|
}>;
|
|
1569
1562
|
}
|
|
1570
1563
|
|
|
1571
|
-
export {
|
|
1564
|
+
export { ResultUnwrapOk as $, AnyServiceSchemaMap as A, Readable as B, ClientTransport as C, Procedure as D, ProcedureErrorSchemaType as E, flattenErrorType as F, UNCAUGHT_ERROR_CODE as G, UNEXPECTED_DISCONNECT_CODE as H, InstantiatedServiceSchemaMap as I, INVALID_REQUEST_CODE as J, CANCEL_CODE as K, ReaderErrorSchema as L, BaseErrorSchemaType as M, createClient as N, Client as O, ProvidedClientTransportOptions as P, ProcedureHandlerContext as Q, RpcProcedure as R, ServerHandshakeOptions as S, Ok as T, UploadProcedure as U, ValidProcType as V, Writable as W, Err as X, Result as Y, ErrResult as Z, OkResult as _, ProvidedServerTransportOptions as a, ResultUnwrapErr as a0, ResponseData as a1, createClientHandshakeOptions as a2, createServerHandshakeOptions as a3, ClientHandshakeOptions as a4, ReadableIterator as a5, ReadableResult as a6, Transport as a7, SessionOptions as a8, ClientTransportOptions as a9, SessionNoConnection as aa, SessionBoundSendFn as ab, CommonSession as ac, SessionState as ad, CommonSessionProps as ae, ServerTransportOptions as af, ServerSession as ag, DeleteSessionOptions as ah, TransportStatus as ai, ProvidedTransportOptions as aj, Session as ak, SessionConnecting as al, SessionHandshaking as am, SessionConnected as an, EventMap as ao, EventTypes as ap, EventHandler as aq, ProtocolError as ar, ProtocolErrorType as as, Connection as b, ParsedMetadata as c, AnyProcedure as d, ServiceContext as e, Service as f, ServiceConfiguration as g, ProcHandler as h, ProcInit as i, ProcRequest as j, ProcResponse as k, ProcErrors as l, ProcType as m, ServiceSchema as n, SerializedServerSchema as o, SerializedServiceSchema as p, SerializedProcedureSchema as q, serializeSchemaV1Compat as r, serializeSchema as s, SerializedServerSchemaProtocolv1 as t, SerializedServiceSchemaProtocolv1 as u, SerializedProcedureSchemaProtocolv1 as v, PayloadType as w, ProcedureMap as x, SubscriptionProcedure as y, StreamProcedure as z };
|
package/dist/testUtil/index.cjs
CHANGED
|
@@ -428,6 +428,9 @@ var IdentifiedSession = class extends CommonSession {
|
|
|
428
428
|
return metadata;
|
|
429
429
|
}
|
|
430
430
|
constructMsg(partialMsg) {
|
|
431
|
+
if (this._isConsumed) {
|
|
432
|
+
throw new Error(ERR_CONSUMED);
|
|
433
|
+
}
|
|
431
434
|
const msg = {
|
|
432
435
|
...partialMsg,
|
|
433
436
|
id: generateId(),
|
|
@@ -557,7 +560,7 @@ function coerceErrorString(err) {
|
|
|
557
560
|
}
|
|
558
561
|
|
|
559
562
|
// package.json
|
|
560
|
-
var version = "0.
|
|
563
|
+
var version = "0.207.1";
|
|
561
564
|
|
|
562
565
|
// tracing/index.ts
|
|
563
566
|
function getPropagationContext(ctx) {
|
|
@@ -848,7 +851,9 @@ var SessionConnected = class extends IdentifiedSession {
|
|
|
848
851
|
transportMessage: parsedMsg
|
|
849
852
|
});
|
|
850
853
|
if (!this.isActivelyHeartbeating) {
|
|
851
|
-
|
|
854
|
+
void Promise.resolve().then(() => {
|
|
855
|
+
this.sendHeartbeat();
|
|
856
|
+
});
|
|
852
857
|
}
|
|
853
858
|
};
|
|
854
859
|
_handleStateExit() {
|