@replit/river 0.216.0 → 0.216.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-75ZMPCKC.js → chunk-62BM2WOT.js} +2 -2
- package/dist/{chunk-ZLMQQI43.js → chunk-C4EPHIKQ.js} +11 -3
- package/dist/chunk-C4EPHIKQ.js.map +1 -0
- package/dist/codec/index.js +2 -2
- package/dist/protobuf/index.cjs +1 -1
- package/dist/protobuf/index.cjs.map +1 -1
- package/dist/protobuf/index.d.cts +2 -2
- package/dist/protobuf/index.d.ts +2 -2
- package/dist/protobuf/index.js +1 -1
- package/dist/router/index.cjs +10 -2
- 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 +1 -1
- package/dist/{services-cwGAC2rB.d.cts → services-CjigASqe.d.cts} +11 -1
- package/dist/{services-BrTFTO5Q.d.ts → services-DpT2yNtt.d.ts} +11 -1
- package/dist/testUtil/index.cjs +1 -1
- 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 +2 -2
- package/dist/transport/impls/ws/client.cjs +1 -1
- package/dist/transport/impls/ws/client.cjs.map +1 -1
- package/dist/transport/impls/ws/client.js +2 -2
- package/dist/transport/impls/ws/server.cjs +1 -1
- package/dist/transport/impls/ws/server.cjs.map +1 -1
- package/dist/transport/impls/ws/server.js +2 -2
- package/dist/transport/index.cjs +1 -1
- package/dist/transport/index.cjs.map +1 -1
- package/dist/transport/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-ZLMQQI43.js.map +0 -1
- /package/dist/{chunk-75ZMPCKC.js.map → chunk-62BM2WOT.js.map} +0 -0
package/dist/router/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as ProcedureHandlerContext, a as PayloadType, M as MaybeDisposable, A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, b as AnyProcedure } from '../services-
|
|
2
|
-
export { B as BaseErrorSchemaType, C as CANCEL_CODE, c as Client, E as Err,
|
|
1
|
+
import { P as ProcedureHandlerContext, a as PayloadType, M as MaybeDisposable, A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, b as AnyProcedure } from '../services-CjigASqe.cjs';
|
|
2
|
+
export { B as BaseErrorSchemaType, C as CANCEL_CODE, c as CallOptions, d as Client, e as ClientOptions, E as Err, f as ErrResult, g as INVALID_REQUEST_CODE, O as Ok, h as OkResult, i as ProcErrors, j as ProcHandler, k as ProcInit, l as ProcRequest, m as ProcResponse, n as ProcType, o as Procedure, p as ProcedureErrorSchemaType, q as ProcedureMap, R as RPCProcedure, r as RawReadable, s as Readable, t as ReadableBrokenError, u as ReadableResult, v as ReaderErrorSchema, w as ResponseData, x as Result, y as ResultUnwrapErr, z as ResultUnwrapOk, S as SerializedProcedureSchema, D as SerializedProcedureSchemaProtocolv1, F as SerializedServerSchema, G as SerializedServerSchemaProtocolv1, H as SerializedServiceSchema, J as SerializedServiceSchemaProtocolv1, K as Service, L as ServiceConfiguration, N as StreamProcedure, Q as SubscriptionProcedure, U as UNCAUGHT_ERROR_CODE, T as UNEXPECTED_DISCONNECT_CODE, V as UploadProcedure, W as ValidProcType, X as Writable, Y as createClient, Z as createServiceSchema, _ as flattenErrorType, $ as serializeSchema, a0 as serializeSchemaV1Compat } from '../services-CjigASqe.cjs';
|
|
3
3
|
import { Static, TSchema } from '@sinclair/typebox';
|
|
4
4
|
import { T as TransportClientId, O as OpaqueTransportMessage } from '../message-CpXWqmJw.cjs';
|
|
5
5
|
import { C as Connection, q as ServerHandshakeOptions } from '../transport-BnU3Zb0Q.cjs';
|
|
@@ -75,6 +75,6 @@ declare function createServer<MetadataSchema extends TSchema, ParsedMetadata ext
|
|
|
75
75
|
middlewares?: Array<Middleware>;
|
|
76
76
|
}>): Server<Context, ParsedMetadata, Services>;
|
|
77
77
|
|
|
78
|
-
var version = "0.216.
|
|
78
|
+
var version = "0.216.1";
|
|
79
79
|
|
|
80
80
|
export { MaybeDisposable, type Middleware, type MiddlewareContext, type MiddlewareParam, PayloadType, ProcedureHandlerContext, version as RIVER_VERSION, type Server, createServer };
|
package/dist/router/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as ProcedureHandlerContext, a as PayloadType, M as MaybeDisposable, A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, b as AnyProcedure } from '../services-
|
|
2
|
-
export { B as BaseErrorSchemaType, C as CANCEL_CODE, c as Client, E as Err,
|
|
1
|
+
import { P as ProcedureHandlerContext, a as PayloadType, M as MaybeDisposable, A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, b as AnyProcedure } from '../services-DpT2yNtt.js';
|
|
2
|
+
export { B as BaseErrorSchemaType, C as CANCEL_CODE, c as CallOptions, d as Client, e as ClientOptions, E as Err, f as ErrResult, g as INVALID_REQUEST_CODE, O as Ok, h as OkResult, i as ProcErrors, j as ProcHandler, k as ProcInit, l as ProcRequest, m as ProcResponse, n as ProcType, o as Procedure, p as ProcedureErrorSchemaType, q as ProcedureMap, R as RPCProcedure, r as RawReadable, s as Readable, t as ReadableBrokenError, u as ReadableResult, v as ReaderErrorSchema, w as ResponseData, x as Result, y as ResultUnwrapErr, z as ResultUnwrapOk, S as SerializedProcedureSchema, D as SerializedProcedureSchemaProtocolv1, F as SerializedServerSchema, G as SerializedServerSchemaProtocolv1, H as SerializedServiceSchema, J as SerializedServiceSchemaProtocolv1, K as Service, L as ServiceConfiguration, N as StreamProcedure, Q as SubscriptionProcedure, U as UNCAUGHT_ERROR_CODE, T as UNEXPECTED_DISCONNECT_CODE, V as UploadProcedure, W as ValidProcType, X as Writable, Y as createClient, Z as createServiceSchema, _ as flattenErrorType, $ as serializeSchema, a0 as serializeSchemaV1Compat } from '../services-DpT2yNtt.js';
|
|
3
3
|
import { Static, TSchema } from '@sinclair/typebox';
|
|
4
4
|
import { T as TransportClientId, O as OpaqueTransportMessage } from '../message-CpXWqmJw.js';
|
|
5
5
|
import { C as Connection, q as ServerHandshakeOptions } from '../transport-B1MUtXL7.js';
|
|
@@ -75,6 +75,6 @@ declare function createServer<MetadataSchema extends TSchema, ParsedMetadata ext
|
|
|
75
75
|
middlewares?: Array<Middleware>;
|
|
76
76
|
}>): Server<Context, ParsedMetadata, Services>;
|
|
77
77
|
|
|
78
|
-
var version = "0.216.
|
|
78
|
+
var version = "0.216.1";
|
|
79
79
|
|
|
80
80
|
export { MaybeDisposable, type Middleware, type MiddlewareContext, type MiddlewareParam, PayloadType, ProcedureHandlerContext, version as RIVER_VERSION, type Server, createServer };
|
package/dist/router/index.js
CHANGED
|
@@ -225,6 +225,16 @@ type Client<Services extends AnyServiceSchemaMap<any>, IS extends InstantiatedSe
|
|
|
225
225
|
interface ClientOptions {
|
|
226
226
|
connectOnInvoke: boolean;
|
|
227
227
|
eagerlyConnect: boolean;
|
|
228
|
+
/**
|
|
229
|
+
* Default options merged into every leaf call (`rpc`, `stream`,
|
|
230
|
+
* `upload`, `subscribe`). Caller-supplied `options` win field-by-field,
|
|
231
|
+
* so a caller can override `signal` while keeping other defaults.
|
|
232
|
+
*
|
|
233
|
+
* Pass a function form when the default needs to be re-resolved per
|
|
234
|
+
* call (e.g. an ambient signal that changes between invocations of
|
|
235
|
+
* the same client).
|
|
236
|
+
*/
|
|
237
|
+
defaultCallOptions?: CallOptions | (() => CallOptions);
|
|
228
238
|
}
|
|
229
239
|
/**
|
|
230
240
|
* Creates a client for a given server using the provided transport.
|
|
@@ -1122,4 +1132,4 @@ declare class ServiceScaffold<Context extends MaybeDisposable, State extends obj
|
|
|
1122
1132
|
};
|
|
1123
1133
|
}
|
|
1124
1134
|
|
|
1125
|
-
export {
|
|
1135
|
+
export { serializeSchema as $, type AnyServiceSchemaMap as A, type BaseErrorSchemaType as B, CANCEL_CODE as C, type SerializedProcedureSchemaProtocolv1 as D, Err as E, type SerializedServerSchema as F, type SerializedServerSchemaProtocolv1 as G, type SerializedServiceSchema as H, type InstantiatedServiceSchemaMap as I, type SerializedServiceSchemaProtocolv1 as J, type Service as K, type ServiceConfiguration as L, type MaybeDisposable as M, type StreamProcedure as N, Ok as O, type ProcedureHandlerContext as P, type SubscriptionProcedure as Q, type RpcProcedure as R, type SerializedProcedureSchema as S, UNEXPECTED_DISCONNECT_CODE as T, UNCAUGHT_ERROR_CODE as U, type UploadProcedure as V, type ValidProcType as W, type Writable as X, createClient as Y, createServiceSchema as Z, flattenErrorType as _, type PayloadType as a, serializeSchemaV1Compat as a0, type ReadableIterator as a1, type ErrorPayload as a2, type AnyProcedure as b, type CallOptions as c, type Client as d, type ClientOptions as e, type ErrResult as f, INVALID_REQUEST_CODE as g, type OkResult as h, type ProcErrors as i, type ProcHandler as j, type ProcInit as k, type ProcRequest as l, type ProcResponse as m, type ProcType as n, Procedure as o, type ProcedureErrorSchemaType as p, type ProcedureMap as q, ReadableImpl as r, type Readable as s, ReadableBrokenError as t, type ReadableResult as u, ReaderErrorSchema as v, type ResponseData as w, type Result as x, type ResultUnwrapErr as y, type ResultUnwrapOk as z };
|
|
@@ -225,6 +225,16 @@ type Client<Services extends AnyServiceSchemaMap<any>, IS extends InstantiatedSe
|
|
|
225
225
|
interface ClientOptions {
|
|
226
226
|
connectOnInvoke: boolean;
|
|
227
227
|
eagerlyConnect: boolean;
|
|
228
|
+
/**
|
|
229
|
+
* Default options merged into every leaf call (`rpc`, `stream`,
|
|
230
|
+
* `upload`, `subscribe`). Caller-supplied `options` win field-by-field,
|
|
231
|
+
* so a caller can override `signal` while keeping other defaults.
|
|
232
|
+
*
|
|
233
|
+
* Pass a function form when the default needs to be re-resolved per
|
|
234
|
+
* call (e.g. an ambient signal that changes between invocations of
|
|
235
|
+
* the same client).
|
|
236
|
+
*/
|
|
237
|
+
defaultCallOptions?: CallOptions | (() => CallOptions);
|
|
228
238
|
}
|
|
229
239
|
/**
|
|
230
240
|
* Creates a client for a given server using the provided transport.
|
|
@@ -1122,4 +1132,4 @@ declare class ServiceScaffold<Context extends MaybeDisposable, State extends obj
|
|
|
1122
1132
|
};
|
|
1123
1133
|
}
|
|
1124
1134
|
|
|
1125
|
-
export {
|
|
1135
|
+
export { serializeSchema as $, type AnyServiceSchemaMap as A, type BaseErrorSchemaType as B, CANCEL_CODE as C, type SerializedProcedureSchemaProtocolv1 as D, Err as E, type SerializedServerSchema as F, type SerializedServerSchemaProtocolv1 as G, type SerializedServiceSchema as H, type InstantiatedServiceSchemaMap as I, type SerializedServiceSchemaProtocolv1 as J, type Service as K, type ServiceConfiguration as L, type MaybeDisposable as M, type StreamProcedure as N, Ok as O, type ProcedureHandlerContext as P, type SubscriptionProcedure as Q, type RpcProcedure as R, type SerializedProcedureSchema as S, UNEXPECTED_DISCONNECT_CODE as T, UNCAUGHT_ERROR_CODE as U, type UploadProcedure as V, type ValidProcType as W, type Writable as X, createClient as Y, createServiceSchema as Z, flattenErrorType as _, type PayloadType as a, serializeSchemaV1Compat as a0, type ReadableIterator as a1, type ErrorPayload as a2, type AnyProcedure as b, type CallOptions as c, type Client as d, type ClientOptions as e, type ErrResult as f, INVALID_REQUEST_CODE as g, type OkResult as h, type ProcErrors as i, type ProcHandler as j, type ProcInit as k, type ProcRequest as l, type ProcResponse as m, type ProcType as n, Procedure as o, type ProcedureErrorSchemaType as p, type ProcedureMap as q, ReadableImpl as r, type Readable as s, ReadableBrokenError as t, type ReadableResult as u, ReaderErrorSchema as v, type ResponseData as w, type Result as x, type ResultUnwrapErr as y, type ResultUnwrapOk as z };
|