@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.
Files changed (33) hide show
  1. package/dist/{chunk-75ZMPCKC.js → chunk-62BM2WOT.js} +2 -2
  2. package/dist/{chunk-ZLMQQI43.js → chunk-C4EPHIKQ.js} +11 -3
  3. package/dist/chunk-C4EPHIKQ.js.map +1 -0
  4. package/dist/codec/index.js +2 -2
  5. package/dist/protobuf/index.cjs +1 -1
  6. package/dist/protobuf/index.cjs.map +1 -1
  7. package/dist/protobuf/index.d.cts +2 -2
  8. package/dist/protobuf/index.d.ts +2 -2
  9. package/dist/protobuf/index.js +1 -1
  10. package/dist/router/index.cjs +10 -2
  11. package/dist/router/index.cjs.map +1 -1
  12. package/dist/router/index.d.cts +3 -3
  13. package/dist/router/index.d.ts +3 -3
  14. package/dist/router/index.js +1 -1
  15. package/dist/{services-cwGAC2rB.d.cts → services-CjigASqe.d.cts} +11 -1
  16. package/dist/{services-BrTFTO5Q.d.ts → services-DpT2yNtt.d.ts} +11 -1
  17. package/dist/testUtil/index.cjs +1 -1
  18. package/dist/testUtil/index.cjs.map +1 -1
  19. package/dist/testUtil/index.d.cts +1 -1
  20. package/dist/testUtil/index.d.ts +1 -1
  21. package/dist/testUtil/index.js +2 -2
  22. package/dist/transport/impls/ws/client.cjs +1 -1
  23. package/dist/transport/impls/ws/client.cjs.map +1 -1
  24. package/dist/transport/impls/ws/client.js +2 -2
  25. package/dist/transport/impls/ws/server.cjs +1 -1
  26. package/dist/transport/impls/ws/server.cjs.map +1 -1
  27. package/dist/transport/impls/ws/server.js +2 -2
  28. package/dist/transport/index.cjs +1 -1
  29. package/dist/transport/index.cjs.map +1 -1
  30. package/dist/transport/index.js +2 -2
  31. package/package.json +1 -1
  32. package/dist/chunk-ZLMQQI43.js.map +0 -1
  33. /package/dist/{chunk-75ZMPCKC.js.map → chunk-62BM2WOT.js.map} +0 -0
@@ -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-cwGAC2rB.cjs';
2
- export { B as BaseErrorSchemaType, C as CANCEL_CODE, c as Client, E as Err, d as ErrResult, e as INVALID_REQUEST_CODE, O as Ok, f as OkResult, g as ProcErrors, h as ProcHandler, i as ProcInit, j as ProcRequest, k as ProcResponse, l as ProcType, m as Procedure, n as ProcedureErrorSchemaType, o as ProcedureMap, R as RPCProcedure, p as RawReadable, q as Readable, r as ReadableBrokenError, s as ReadableResult, t as ReaderErrorSchema, u as ResponseData, v as Result, w as ResultUnwrapErr, x as ResultUnwrapOk, S as SerializedProcedureSchema, y as SerializedProcedureSchemaProtocolv1, z as SerializedServerSchema, D as SerializedServerSchemaProtocolv1, F as SerializedServiceSchema, G as SerializedServiceSchemaProtocolv1, H as Service, J as ServiceConfiguration, K as StreamProcedure, L as SubscriptionProcedure, U as UNCAUGHT_ERROR_CODE, N as UNEXPECTED_DISCONNECT_CODE, Q as UploadProcedure, V as ValidProcType, W as Writable, T as createClient, X as createServiceSchema, Y as flattenErrorType, Z as serializeSchema, _ as serializeSchemaV1Compat } from '../services-cwGAC2rB.cjs';
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.0";
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 };
@@ -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-BrTFTO5Q.js';
2
- export { B as BaseErrorSchemaType, C as CANCEL_CODE, c as Client, E as Err, d as ErrResult, e as INVALID_REQUEST_CODE, O as Ok, f as OkResult, g as ProcErrors, h as ProcHandler, i as ProcInit, j as ProcRequest, k as ProcResponse, l as ProcType, m as Procedure, n as ProcedureErrorSchemaType, o as ProcedureMap, R as RPCProcedure, p as RawReadable, q as Readable, r as ReadableBrokenError, s as ReadableResult, t as ReaderErrorSchema, u as ResponseData, v as Result, w as ResultUnwrapErr, x as ResultUnwrapOk, S as SerializedProcedureSchema, y as SerializedProcedureSchemaProtocolv1, z as SerializedServerSchema, D as SerializedServerSchemaProtocolv1, F as SerializedServiceSchema, G as SerializedServiceSchemaProtocolv1, H as Service, J as ServiceConfiguration, K as StreamProcedure, L as SubscriptionProcedure, U as UNCAUGHT_ERROR_CODE, N as UNEXPECTED_DISCONNECT_CODE, Q as UploadProcedure, V as ValidProcType, W as Writable, T as createClient, X as createServiceSchema, Y as flattenErrorType, Z as serializeSchema, _ as serializeSchemaV1Compat } from '../services-BrTFTO5Q.js';
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.0";
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 };
@@ -18,7 +18,7 @@ import {
18
18
  serializeSchema,
19
19
  serializeSchemaV1Compat,
20
20
  version
21
- } from "../chunk-ZLMQQI43.js";
21
+ } from "../chunk-C4EPHIKQ.js";
22
22
  export {
23
23
  CANCEL_CODE,
24
24
  Err,
@@ -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 { type ReadableIterator as $, type AnyServiceSchemaMap as A, type BaseErrorSchemaType as B, CANCEL_CODE as C, type SerializedServerSchemaProtocolv1 as D, Err as E, type SerializedServiceSchema as F, type SerializedServiceSchemaProtocolv1 as G, type Service as H, type InstantiatedServiceSchemaMap as I, type ServiceConfiguration as J, type StreamProcedure as K, type SubscriptionProcedure as L, type MaybeDisposable as M, UNEXPECTED_DISCONNECT_CODE as N, Ok as O, type ProcedureHandlerContext as P, type UploadProcedure as Q, type RpcProcedure as R, type SerializedProcedureSchema as S, createClient as T, UNCAUGHT_ERROR_CODE as U, type ValidProcType as V, type Writable as W, createServiceSchema as X, flattenErrorType as Y, serializeSchema as Z, serializeSchemaV1Compat as _, type PayloadType as a, type ErrorPayload as a0, type AnyProcedure as b, type Client as c, type ErrResult as d, INVALID_REQUEST_CODE as e, type OkResult as f, type ProcErrors as g, type ProcHandler as h, type ProcInit as i, type ProcRequest as j, type ProcResponse as k, type ProcType as l, Procedure as m, type ProcedureErrorSchemaType as n, type ProcedureMap as o, ReadableImpl as p, type Readable as q, ReadableBrokenError as r, type ReadableResult as s, ReaderErrorSchema as t, type ResponseData as u, type Result as v, type ResultUnwrapErr as w, type ResultUnwrapOk as x, type SerializedProcedureSchemaProtocolv1 as y, type SerializedServerSchema as z };
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 { type ReadableIterator as $, type AnyServiceSchemaMap as A, type BaseErrorSchemaType as B, CANCEL_CODE as C, type SerializedServerSchemaProtocolv1 as D, Err as E, type SerializedServiceSchema as F, type SerializedServiceSchemaProtocolv1 as G, type Service as H, type InstantiatedServiceSchemaMap as I, type ServiceConfiguration as J, type StreamProcedure as K, type SubscriptionProcedure as L, type MaybeDisposable as M, UNEXPECTED_DISCONNECT_CODE as N, Ok as O, type ProcedureHandlerContext as P, type UploadProcedure as Q, type RpcProcedure as R, type SerializedProcedureSchema as S, createClient as T, UNCAUGHT_ERROR_CODE as U, type ValidProcType as V, type Writable as W, createServiceSchema as X, flattenErrorType as Y, serializeSchema as Z, serializeSchemaV1Compat as _, type PayloadType as a, type ErrorPayload as a0, type AnyProcedure as b, type Client as c, type ErrResult as d, INVALID_REQUEST_CODE as e, type OkResult as f, type ProcErrors as g, type ProcHandler as h, type ProcInit as i, type ProcRequest as j, type ProcResponse as k, type ProcType as l, Procedure as m, type ProcedureErrorSchemaType as n, type ProcedureMap as o, ReadableImpl as p, type Readable as q, ReadableBrokenError as r, type ReadableResult as s, ReaderErrorSchema as t, type ResponseData as u, type Result as v, type ResultUnwrapErr as w, type ResultUnwrapOk as x, type SerializedProcedureSchemaProtocolv1 as y, type SerializedServerSchema as z };
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 };
@@ -564,7 +564,7 @@ function coerceErrorString(err) {
564
564
  }
565
565
 
566
566
  // package.json
567
- var version = "0.216.0";
567
+ var version = "0.216.1";
568
568
 
569
569
  // tracing/index.ts
570
570
  function getPropagationContext(ctx) {