@replit/river 0.10.2 → 0.10.3

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
1
  import * as _sinclair_typebox from '@sinclair/typebox';
2
- import { TObject, TLiteralString, TString, TSchema, TUnion, TNever, Static } from '@sinclair/typebox';
2
+ import { TObject, TLiteralString, TUnion, TString, TSchema, TNever, Static } from '@sinclair/typebox';
3
3
  import { Pushable } from 'it-pushable';
4
4
 
5
5
  /**
@@ -33,10 +33,10 @@ type ServiceContextWithState<State extends object | unknown> = ServiceContext &
33
33
  };
34
34
 
35
35
  type RiverErrorSchema = TObject<{
36
- code: TLiteralString;
36
+ code: TLiteralString | TUnion<TLiteralString[]>;
37
37
  message: TLiteralString | TString;
38
38
  }> | TObject<{
39
- code: TLiteralString;
39
+ code: TLiteralString | TUnion<TLiteralString[]>;
40
40
  message: TLiteralString | TString;
41
41
  extras: TSchema;
42
42
  }>;
@@ -1,5 +1,5 @@
1
- import { A as AnyService, d as AnyProcedure, P as PayloadType, b as Result, R as RiverError, S as ServiceContext, e as ProcType, f as ProcInput, g as ProcOutput, h as ProcErrors, i as ProcHasInit, j as ProcInit } from '../builder-3c4485f0.js';
2
- export { E as Err, O as Ok, n as ProcHandler, l as ProcListing, a as Procedure, p as RiverErrorSchema, c as RiverUncaughtSchema, m as Service, k as ServiceBuilder, o as ServiceContextWithState, U as UNCAUGHT_ERROR, V as ValidProcType, s as serializeService } from '../builder-3c4485f0.js';
1
+ import { A as AnyService, d as AnyProcedure, P as PayloadType, b as Result, R as RiverError, S as ServiceContext, e as ProcType, f as ProcInput, g as ProcOutput, h as ProcErrors, i as ProcHasInit, j as ProcInit } from '../builder-87111051.js';
2
+ export { E as Err, O as Ok, n as ProcHandler, l as ProcListing, a as Procedure, p as RiverErrorSchema, c as RiverUncaughtSchema, m as Service, k as ServiceBuilder, o as ServiceContextWithState, U as UNCAUGHT_ERROR, V as ValidProcType, s as serializeService } from '../builder-87111051.js';
3
3
  import { Transport, Connection, TransportClientId } from '../transport/index.cjs';
4
4
  import { Pushable } from 'it-pushable';
5
5
  import { Static } from '@sinclair/typebox';
@@ -1,5 +1,5 @@
1
- import { A as AnyService, d as AnyProcedure, P as PayloadType, b as Result, R as RiverError, S as ServiceContext, e as ProcType, f as ProcInput, g as ProcOutput, h as ProcErrors, i as ProcHasInit, j as ProcInit } from '../builder-3c4485f0.js';
2
- export { E as Err, O as Ok, n as ProcHandler, l as ProcListing, a as Procedure, p as RiverErrorSchema, c as RiverUncaughtSchema, m as Service, k as ServiceBuilder, o as ServiceContextWithState, U as UNCAUGHT_ERROR, V as ValidProcType, s as serializeService } from '../builder-3c4485f0.js';
1
+ import { A as AnyService, d as AnyProcedure, P as PayloadType, b as Result, R as RiverError, S as ServiceContext, e as ProcType, f as ProcInput, g as ProcOutput, h as ProcErrors, i as ProcHasInit, j as ProcInit } from '../builder-87111051.js';
2
+ export { E as Err, O as Ok, n as ProcHandler, l as ProcListing, a as Procedure, p as RiverErrorSchema, c as RiverUncaughtSchema, m as Service, k as ServiceBuilder, o as ServiceContextWithState, U as UNCAUGHT_ERROR, V as ValidProcType, s as serializeService } from '../builder-87111051.js';
3
3
  import { Transport, Connection, TransportClientId } from '../transport/index.js';
4
4
  import { Pushable } from 'it-pushable';
5
5
  import { Static } from '@sinclair/typebox';
@@ -6,7 +6,7 @@ import { WebSocketClientTransport } from '../transport/impls/ws/client.cjs';
6
6
  import { TransportClientId, TransportMessage, OpaqueTransportMessage, Transport, Connection } from '../transport/index.cjs';
7
7
  import { C as Codec } from '../types-3e5768ec.js';
8
8
  import { WebSocketServerTransport } from '../transport/impls/ws/server.cjs';
9
- import { P as PayloadType, R as RiverError, a as Procedure, S as ServiceContext, b as Result, c as RiverUncaughtSchema } from '../builder-3c4485f0.js';
9
+ import { P as PayloadType, R as RiverError, a as Procedure, S as ServiceContext, b as Result, c as RiverUncaughtSchema } from '../builder-87111051.js';
10
10
  import { Static } from '@sinclair/typebox';
11
11
  import '../connection-f7688cc1.js';
12
12
 
@@ -6,7 +6,7 @@ import { WebSocketClientTransport } from '../transport/impls/ws/client.js';
6
6
  import { TransportClientId, TransportMessage, OpaqueTransportMessage, Transport, Connection } from '../transport/index.js';
7
7
  import { C as Codec } from '../types-3e5768ec.js';
8
8
  import { WebSocketServerTransport } from '../transport/impls/ws/server.js';
9
- import { P as PayloadType, R as RiverError, a as Procedure, S as ServiceContext, b as Result, c as RiverUncaughtSchema } from '../builder-3c4485f0.js';
9
+ import { P as PayloadType, R as RiverError, a as Procedure, S as ServiceContext, b as Result, c as RiverUncaughtSchema } from '../builder-87111051.js';
10
10
  import { Static } from '@sinclair/typebox';
11
11
  import '../connection-8e19874c.js';
12
12
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@replit/river",
3
3
  "description": "It's like tRPC but... with JSON Schema Support, duplex streaming and support for service multiplexing. Transport agnostic!",
4
- "version": "0.10.2",
4
+ "version": "0.10.3",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {