@replit/river 0.10.9 → 0.10.10

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,4 @@
1
- import * as _sinclair_typebox from '@sinclair/typebox';
2
- import { TObject, TLiteralString, TUnion, TString, TSchema, TNever, Static } from '@sinclair/typebox';
1
+ import { TObject, TUnion, TString, TSchema, TNever, TLiteral, Static } from '@sinclair/typebox';
3
2
  import { Pushable } from 'it-pushable';
4
3
 
5
4
  /**
@@ -32,6 +31,7 @@ type ServiceContextWithState<State extends object | unknown> = ServiceContext &
32
31
  state: State;
33
32
  };
34
33
 
34
+ type TLiteralString = TLiteral<string>;
35
35
  type RiverErrorSchema = TObject<{
36
36
  code: TLiteralString | TUnion<TLiteralString[]>;
37
37
  message: TLiteralString | TString;
@@ -43,7 +43,7 @@ type RiverErrorSchema = TObject<{
43
43
  type RiverError = TUnion<RiverErrorSchema[]> | RiverErrorSchema | TNever;
44
44
  declare const UNCAUGHT_ERROR = "UNCAUGHT_ERROR";
45
45
  declare const RiverUncaughtSchema: TObject<{
46
- code: TUnion<[_sinclair_typebox.TLiteral<"UNCAUGHT_ERROR">, _sinclair_typebox.TLiteral<"UNEXPECTED_DISCONNECT">]>;
46
+ code: TUnion<[TLiteral<"UNCAUGHT_ERROR">, TLiteral<"UNEXPECTED_DISCONNECT">]>;
47
47
  message: TString;
48
48
  }>;
49
49
  type Result<T, E> = {
@@ -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-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';
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-1f26296b.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-1f26296b.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-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';
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-1f26296b.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-1f26296b.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-87111051.js';
9
+ import { P as PayloadType, R as RiverError, a as Procedure, S as ServiceContext, b as Result, c as RiverUncaughtSchema } from '../builder-1f26296b.js';
10
10
  import { Static } from '@sinclair/typebox';
11
11
  import net from 'node:net';
12
12
  import '../connection-f7688cc1.js';
@@ -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-87111051.js';
9
+ import { P as PayloadType, R as RiverError, a as Procedure, S as ServiceContext, b as Result, c as RiverUncaughtSchema } from '../builder-1f26296b.js';
10
10
  import { Static } from '@sinclair/typebox';
11
11
  import net from 'node:net';
12
12
  import '../connection-8e19874c.js';
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.9",
4
+ "version": "0.10.10",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
@@ -57,7 +57,7 @@
57
57
  "nanoid": "^4.0.2"
58
58
  },
59
59
  "peerDependencies": {
60
- "@sinclair/typebox": "^0.31.28",
60
+ "@sinclair/typebox": "~0.32.8",
61
61
  "isomorphic-ws": "^5.0.0",
62
62
  "ws": "^8.13.0"
63
63
  },