@replit/river 0.209.8 → 0.210.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.
@@ -1,5 +1,5 @@
1
- import { A as AnyServiceSchemaMap, P as ProcedureHandlerContext, a as PayloadType, I as InstantiatedServiceSchemaMap, b as AnyProcedure } from '../services-BxYapN_l.cjs';
2
- export { J as BaseErrorSchemaType, G as CANCEL_CODE, L as Client, M as Err, Q as ErrResult, F as INVALID_REQUEST_CODE, O as Ok, T as OkResult, h as ProcErrors, d as ProcHandler, e as ProcInit, f as ProcRequest, g as ProcResponse, i as ProcType, z as Procedure, B as ProcedureErrorSchemaType, r as ProcedureMap, R as RPCProcedure, y as RawReadable, v as Readable, x as ReadableBrokenError, w as ReadableResult, H as ReaderErrorSchema, Z as ResponseData, N as Result, Y as ResultUnwrapErr, X as ResultUnwrapOk, m as SerializedProcedureSchema, q as SerializedProcedureSchemaProtocolv1, k as SerializedServerSchema, o as SerializedServerSchemaProtocolv1, l as SerializedServiceSchema, p as SerializedServiceSchemaProtocolv1, S as Service, c as ServiceConfiguration, u as StreamProcedure, t as SubscriptionProcedure, D as UNCAUGHT_ERROR_CODE, E as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, K as createClient, j as createServiceSchema, C as flattenErrorType, s as serializeSchema, n as serializeSchemaV1Compat } from '../services-BxYapN_l.cjs';
1
+ import { A as AnyServiceSchemaMap, P as ProcedureHandlerContext, a as PayloadType, I as InstantiatedServiceSchemaMap, b as AnyProcedure } from '../services-CBRHvYG_.cjs';
2
+ export { J as BaseErrorSchemaType, G as CANCEL_CODE, L as Client, M as Err, Q as ErrResult, F as INVALID_REQUEST_CODE, O as Ok, T as OkResult, h as ProcErrors, d as ProcHandler, e as ProcInit, f as ProcRequest, g as ProcResponse, i as ProcType, z as Procedure, B as ProcedureErrorSchemaType, r as ProcedureMap, R as RPCProcedure, y as RawReadable, v as Readable, x as ReadableBrokenError, w as ReadableResult, H as ReaderErrorSchema, Z as ResponseData, N as Result, Y as ResultUnwrapErr, X as ResultUnwrapOk, m as SerializedProcedureSchema, q as SerializedProcedureSchemaProtocolv1, k as SerializedServerSchema, o as SerializedServerSchemaProtocolv1, l as SerializedServiceSchema, p as SerializedServiceSchemaProtocolv1, S as Service, c as ServiceConfiguration, u as StreamProcedure, t as SubscriptionProcedure, D as UNCAUGHT_ERROR_CODE, E as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, K as createClient, j as createServiceSchema, C as flattenErrorType, s as serializeSchema, n as serializeSchemaV1Compat } from '../services-CBRHvYG_.cjs';
3
3
  import { TSchema, Static } from '@sinclair/typebox';
4
4
  import { c as TransportClientId, b as OpaqueTransportMessage } from '../message-Dlsh5WDF.cjs';
5
5
  import { C as Connection, q as ServerHandshakeOptions } from '../transport-CxT7y8Qk.cjs';
@@ -74,6 +74,6 @@ declare function createServer<Context extends object, MetadataSchema extends TSc
74
74
  middlewares?: Array<Middleware>;
75
75
  }>): Server<Context, ParsedMetadata, Services>;
76
76
 
77
- var version = "0.209.8";
77
+ var version = "0.210.0";
78
78
 
79
79
  export { type Middleware, type MiddlewareContext, type MiddlewareParam, PayloadType, ProcedureHandlerContext, version as RIVER_VERSION, type Server, createServer };
@@ -1,5 +1,5 @@
1
- import { A as AnyServiceSchemaMap, P as ProcedureHandlerContext, a as PayloadType, I as InstantiatedServiceSchemaMap, b as AnyProcedure } from '../services-DaruJ3EY.js';
2
- export { J as BaseErrorSchemaType, G as CANCEL_CODE, L as Client, M as Err, Q as ErrResult, F as INVALID_REQUEST_CODE, O as Ok, T as OkResult, h as ProcErrors, d as ProcHandler, e as ProcInit, f as ProcRequest, g as ProcResponse, i as ProcType, z as Procedure, B as ProcedureErrorSchemaType, r as ProcedureMap, R as RPCProcedure, y as RawReadable, v as Readable, x as ReadableBrokenError, w as ReadableResult, H as ReaderErrorSchema, Z as ResponseData, N as Result, Y as ResultUnwrapErr, X as ResultUnwrapOk, m as SerializedProcedureSchema, q as SerializedProcedureSchemaProtocolv1, k as SerializedServerSchema, o as SerializedServerSchemaProtocolv1, l as SerializedServiceSchema, p as SerializedServiceSchemaProtocolv1, S as Service, c as ServiceConfiguration, u as StreamProcedure, t as SubscriptionProcedure, D as UNCAUGHT_ERROR_CODE, E as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, K as createClient, j as createServiceSchema, C as flattenErrorType, s as serializeSchema, n as serializeSchemaV1Compat } from '../services-DaruJ3EY.js';
1
+ import { A as AnyServiceSchemaMap, P as ProcedureHandlerContext, a as PayloadType, I as InstantiatedServiceSchemaMap, b as AnyProcedure } from '../services-O3F7G5zb.js';
2
+ export { J as BaseErrorSchemaType, G as CANCEL_CODE, L as Client, M as Err, Q as ErrResult, F as INVALID_REQUEST_CODE, O as Ok, T as OkResult, h as ProcErrors, d as ProcHandler, e as ProcInit, f as ProcRequest, g as ProcResponse, i as ProcType, z as Procedure, B as ProcedureErrorSchemaType, r as ProcedureMap, R as RPCProcedure, y as RawReadable, v as Readable, x as ReadableBrokenError, w as ReadableResult, H as ReaderErrorSchema, Z as ResponseData, N as Result, Y as ResultUnwrapErr, X as ResultUnwrapOk, m as SerializedProcedureSchema, q as SerializedProcedureSchemaProtocolv1, k as SerializedServerSchema, o as SerializedServerSchemaProtocolv1, l as SerializedServiceSchema, p as SerializedServiceSchemaProtocolv1, S as Service, c as ServiceConfiguration, u as StreamProcedure, t as SubscriptionProcedure, D as UNCAUGHT_ERROR_CODE, E as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, K as createClient, j as createServiceSchema, C as flattenErrorType, s as serializeSchema, n as serializeSchemaV1Compat } from '../services-O3F7G5zb.js';
3
3
  import { TSchema, Static } from '@sinclair/typebox';
4
4
  import { c as TransportClientId, b as OpaqueTransportMessage } from '../message-Dlsh5WDF.js';
5
5
  import { C as Connection, q as ServerHandshakeOptions } from '../transport-pdbkDzmJ.js';
@@ -74,6 +74,6 @@ declare function createServer<Context extends object, MetadataSchema extends TSc
74
74
  middlewares?: Array<Middleware>;
75
75
  }>): Server<Context, ParsedMetadata, Services>;
76
76
 
77
- var version = "0.209.8";
77
+ var version = "0.210.0";
78
78
 
79
79
  export { 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-DOUYY7FU.js";
21
+ } from "../chunk-23NPMSFH.js";
22
22
  export {
23
23
  CANCEL_CODE,
24
24
  Err,
@@ -1,5 +1,5 @@
1
1
  import * as _sinclair_typebox from '@sinclair/typebox';
2
- import { TObject, TLiteral, TString, TSchema, TNever, TUnion, Static } from '@sinclair/typebox';
2
+ import { TNever, TObject, TLiteral, TEnum, TString, TSchema, TUnion, Static } from '@sinclair/typebox';
3
3
  import { Span } from '@opentelemetry/api';
4
4
  import { c as TransportClientId } from './message-Dlsh5WDF.cjs';
5
5
  import { C as Connection, n as ClientHandshakeOptions, z as SessionId } from './transport-CxT7y8Qk.cjs';
@@ -24,11 +24,12 @@ declare const INVALID_REQUEST_CODE = "INVALID_REQUEST";
24
24
  */
25
25
  declare const CANCEL_CODE = "CANCEL";
26
26
  type TLiteralString = TLiteral<string>;
27
+ type TEnumString = TEnum<Record<string, string>>;
27
28
  type BaseErrorSchemaType = TObject<{
28
- code: TLiteralString;
29
+ code: TLiteralString | TEnumString;
29
30
  message: TLiteralString | TString;
30
31
  }> | TObject<{
31
- code: TLiteralString;
32
+ code: TLiteralString | TEnumString;
32
33
  message: TLiteralString | TString;
33
34
  extras: TSchema;
34
35
  }>;
@@ -73,7 +74,7 @@ type ProcedureErrorSchemaType = TNever | BaseErrorSchemaType | TUnion<Array<Base
73
74
  type NestableProcedureErrorSchemaType = BaseErrorSchemaType | TUnion<NestableProcedureErrorSchemaTypeArray>;
74
75
  interface NestableProcedureErrorSchemaTypeArray extends Array<NestableProcedureErrorSchemaType> {
75
76
  }
76
- type Flatten<T> = T extends BaseErrorSchemaType ? T : T extends TUnion<Array<infer U extends TSchema>> ? Flatten<U> : unknown;
77
+ type Flatten<T> = T extends BaseErrorSchemaType ? T : T extends TUnion<Array<infer U extends TSchema>> ? U extends BaseErrorSchemaType ? TUnion<Array<U>> : Flatten<U> : unknown;
77
78
  /**
78
79
  * In the case where API consumers for some god-forsaken reason want to use
79
80
  * arbitrarily nested unions, this helper flattens them to a single level.
@@ -1,5 +1,5 @@
1
1
  import * as _sinclair_typebox from '@sinclair/typebox';
2
- import { TObject, TLiteral, TString, TSchema, TNever, TUnion, Static } from '@sinclair/typebox';
2
+ import { TNever, TObject, TLiteral, TEnum, TString, TSchema, TUnion, Static } from '@sinclair/typebox';
3
3
  import { Span } from '@opentelemetry/api';
4
4
  import { c as TransportClientId } from './message-Dlsh5WDF.js';
5
5
  import { C as Connection, n as ClientHandshakeOptions, z as SessionId } from './transport-pdbkDzmJ.js';
@@ -24,11 +24,12 @@ declare const INVALID_REQUEST_CODE = "INVALID_REQUEST";
24
24
  */
25
25
  declare const CANCEL_CODE = "CANCEL";
26
26
  type TLiteralString = TLiteral<string>;
27
+ type TEnumString = TEnum<Record<string, string>>;
27
28
  type BaseErrorSchemaType = TObject<{
28
- code: TLiteralString;
29
+ code: TLiteralString | TEnumString;
29
30
  message: TLiteralString | TString;
30
31
  }> | TObject<{
31
- code: TLiteralString;
32
+ code: TLiteralString | TEnumString;
32
33
  message: TLiteralString | TString;
33
34
  extras: TSchema;
34
35
  }>;
@@ -73,7 +74,7 @@ type ProcedureErrorSchemaType = TNever | BaseErrorSchemaType | TUnion<Array<Base
73
74
  type NestableProcedureErrorSchemaType = BaseErrorSchemaType | TUnion<NestableProcedureErrorSchemaTypeArray>;
74
75
  interface NestableProcedureErrorSchemaTypeArray extends Array<NestableProcedureErrorSchemaType> {
75
76
  }
76
- type Flatten<T> = T extends BaseErrorSchemaType ? T : T extends TUnion<Array<infer U extends TSchema>> ? Flatten<U> : unknown;
77
+ type Flatten<T> = T extends BaseErrorSchemaType ? T : T extends TUnion<Array<infer U extends TSchema>> ? U extends BaseErrorSchemaType ? TUnion<Array<U>> : Flatten<U> : unknown;
77
78
  /**
78
79
  * In the case where API consumers for some god-forsaken reason want to use
79
80
  * arbitrarily nested unions, this helper flattens them to a single level.
@@ -558,7 +558,7 @@ function coerceErrorString(err) {
558
558
  }
559
559
 
560
560
  // package.json
561
- var version = "0.209.8";
561
+ var version = "0.210.0";
562
562
 
563
563
  // tracing/index.ts
564
564
  function getPropagationContext(ctx) {