@replit/river 0.215.0 → 0.215.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 (51) hide show
  1. package/dist/{adapter-IGrG4KLL.d.cts → adapter-CjgmjtUJ.d.cts} +1 -1
  2. package/dist/{adapter-CgF7vQPu.d.ts → adapter-Dtt4bYL-.d.ts} +1 -1
  3. package/dist/{chunk-VXRAFUA3.js → chunk-3DDZCLJM.js} +6 -2
  4. package/dist/{chunk-VXRAFUA3.js.map → chunk-3DDZCLJM.js.map} +1 -1
  5. package/dist/{chunk-RDTQZ7HO.js → chunk-NUGV5QWU.js} +2 -2
  6. package/dist/{chunk-RDTQZ7HO.js.map → chunk-NUGV5QWU.js.map} +1 -1
  7. package/dist/{client-Dk4H7qeg.d.cts → client-B9aKi9Li.d.cts} +2 -2
  8. package/dist/{client-BhwlY0-L.d.ts → client-BOc8blGj.d.ts} +2 -2
  9. package/dist/codec/index.d.cts +3 -3
  10. package/dist/codec/index.d.ts +3 -3
  11. package/dist/codec/index.js +2 -2
  12. package/dist/{connection-CS00EWuS.d.cts → connection-1hFoyxuX.d.cts} +3 -3
  13. package/dist/{connection-DU9v3y8a.d.ts → connection-DnMYvolf.d.ts} +3 -3
  14. package/dist/{index-CHCzvZ9D.d.cts → index-Bf9PGbS4.d.cts} +1 -1
  15. package/dist/{index-uF0cBM7z.d.ts → index-DiAq34gk.d.ts} +1 -1
  16. package/dist/logging/index.d.cts +2 -2
  17. package/dist/logging/index.d.ts +2 -2
  18. package/dist/{message-aABg0s5M.d.cts → message-DL74OqsX.d.cts} +1 -1
  19. package/dist/{message-aABg0s5M.d.ts → message-DL74OqsX.d.ts} +1 -1
  20. package/dist/router/index.cjs +1 -1
  21. package/dist/router/index.cjs.map +1 -1
  22. package/dist/router/index.d.cts +11 -11
  23. package/dist/router/index.d.ts +11 -11
  24. package/dist/router/index.js +1 -1
  25. package/dist/{server-BR0DZaWi.d.cts → server-BkEzDYIv.d.cts} +4 -4
  26. package/dist/{server-uNzkzIRh.d.ts → server-_bfE7LYc.d.ts} +4 -4
  27. package/dist/{services-B5SY771g.d.ts → services-KdKBWdJr.d.ts} +4 -4
  28. package/dist/{services-DBv2nmly.d.cts → services-zaansuuR.d.cts} +4 -4
  29. package/dist/testUtil/index.cjs +5 -1
  30. package/dist/testUtil/index.cjs.map +1 -1
  31. package/dist/testUtil/index.d.cts +7 -7
  32. package/dist/testUtil/index.d.ts +7 -7
  33. package/dist/testUtil/index.js +2 -2
  34. package/dist/transport/impls/ws/client.cjs +5 -1
  35. package/dist/transport/impls/ws/client.cjs.map +1 -1
  36. package/dist/transport/impls/ws/client.d.cts +6 -6
  37. package/dist/transport/impls/ws/client.d.ts +6 -6
  38. package/dist/transport/impls/ws/client.js +2 -2
  39. package/dist/transport/impls/ws/server.cjs +1 -1
  40. package/dist/transport/impls/ws/server.cjs.map +1 -1
  41. package/dist/transport/impls/ws/server.d.cts +6 -6
  42. package/dist/transport/impls/ws/server.d.ts +6 -6
  43. package/dist/transport/impls/ws/server.js +2 -2
  44. package/dist/transport/index.cjs +5 -1
  45. package/dist/transport/index.cjs.map +1 -1
  46. package/dist/transport/index.d.cts +7 -7
  47. package/dist/transport/index.d.ts +7 -7
  48. package/dist/transport/index.js +2 -2
  49. package/dist/{transport-D3jzhFSi.d.cts → transport-CCBNESLA.d.cts} +5 -4
  50. package/dist/{transport-BOL2p5s-.d.ts → transport-kW92H6x-.d.ts} +5 -4
  51. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
- export { b as ClientTransportOptions, C as Connection, j as EventHandler, E as EventMap, i as EventTypes, k as ProtocolError, l as ProtocolErrorType, c as ServerTransportOptions, S as Session, h as SessionConnected, f as SessionConnecting, g as SessionHandshaking, e as SessionNoConnection, d as SessionState, T as Transport, P as TransportOptions, a as TransportStatus } from '../transport-D3jzhFSi.cjs';
2
- export { C as ClientTransport } from '../client-Dk4H7qeg.cjs';
3
- export { S as ServerTransport, a as SessionWaitingForHandshake } from '../server-BR0DZaWi.cjs';
4
- export { W as WebSocketCloseError, a as WebSocketConnection } from '../connection-CS00EWuS.cjs';
5
- export { b as OpaqueTransportMessage, O as OpaqueTransportMessageSchema, c as TransportClientId, a as TransportMessage, T as TransportMessageSchema, d as isStreamClose, i as isStreamOpen } from '../message-aABg0s5M.cjs';
1
+ export { P as ClientTransportOptions, C as Connection, E as EventHandler, a as EventMap, b as EventTypes, c as ProtocolError, d as ProtocolErrorType, e as ServerTransportOptions, S as Session, f as SessionConnected, g as SessionConnecting, h as SessionHandshaking, i as SessionNoConnection, j as SessionState, T as Transport, k as TransportOptions, l as TransportStatus } from '../transport-CCBNESLA.cjs';
2
+ export { C as ClientTransport } from '../client-B9aKi9Li.cjs';
3
+ export { S as ServerTransport, a as SessionWaitingForHandshake } from '../server-BkEzDYIv.cjs';
4
+ export { W as WebSocketCloseError, a as WebSocketConnection } from '../connection-1hFoyxuX.cjs';
5
+ export { O as OpaqueTransportMessage, a as OpaqueTransportMessageSchema, T as TransportClientId, b as TransportMessage, c as TransportMessageSchema, i as isStreamClose, d as isStreamOpen } from '../message-DL74OqsX.cjs';
6
6
  import '@sinclair/typebox';
7
- import '../index-CHCzvZ9D.cjs';
8
- import '../adapter-IGrG4KLL.cjs';
7
+ import '../index-Bf9PGbS4.cjs';
8
+ import '../adapter-CjgmjtUJ.cjs';
9
9
  import '@opentelemetry/api';
10
10
  import '../wslike-Dng9H1C7.cjs';
@@ -1,10 +1,10 @@
1
- export { b as ClientTransportOptions, C as Connection, j as EventHandler, E as EventMap, i as EventTypes, k as ProtocolError, l as ProtocolErrorType, c as ServerTransportOptions, S as Session, h as SessionConnected, f as SessionConnecting, g as SessionHandshaking, e as SessionNoConnection, d as SessionState, T as Transport, P as TransportOptions, a as TransportStatus } from '../transport-BOL2p5s-.js';
2
- export { C as ClientTransport } from '../client-BhwlY0-L.js';
3
- export { S as ServerTransport, a as SessionWaitingForHandshake } from '../server-uNzkzIRh.js';
4
- export { W as WebSocketCloseError, a as WebSocketConnection } from '../connection-DU9v3y8a.js';
5
- export { b as OpaqueTransportMessage, O as OpaqueTransportMessageSchema, c as TransportClientId, a as TransportMessage, T as TransportMessageSchema, d as isStreamClose, i as isStreamOpen } from '../message-aABg0s5M.js';
1
+ export { P as ClientTransportOptions, C as Connection, E as EventHandler, a as EventMap, b as EventTypes, c as ProtocolError, d as ProtocolErrorType, e as ServerTransportOptions, S as Session, f as SessionConnected, g as SessionConnecting, h as SessionHandshaking, i as SessionNoConnection, j as SessionState, T as Transport, k as TransportOptions, l as TransportStatus } from '../transport-kW92H6x-.js';
2
+ export { C as ClientTransport } from '../client-BOc8blGj.js';
3
+ export { S as ServerTransport, a as SessionWaitingForHandshake } from '../server-_bfE7LYc.js';
4
+ export { W as WebSocketCloseError, a as WebSocketConnection } from '../connection-DnMYvolf.js';
5
+ export { O as OpaqueTransportMessage, a as OpaqueTransportMessageSchema, T as TransportClientId, b as TransportMessage, c as TransportMessageSchema, i as isStreamClose, d as isStreamOpen } from '../message-DL74OqsX.js';
6
6
  import '@sinclair/typebox';
7
- import '../index-uF0cBM7z.js';
8
- import '../adapter-CgF7vQPu.js';
7
+ import '../index-DiAq34gk.js';
8
+ import '../adapter-Dtt4bYL-.js';
9
9
  import '@opentelemetry/api';
10
10
  import '../wslike-Dng9H1C7.js';
@@ -7,12 +7,12 @@ import {
7
7
  Transport,
8
8
  WebSocketCloseError,
9
9
  WebSocketConnection
10
- } from "../chunk-VXRAFUA3.js";
10
+ } from "../chunk-3DDZCLJM.js";
11
11
  import "../chunk-CC7RN7GI.js";
12
12
  import {
13
13
  OpaqueTransportMessageSchema,
14
14
  TransportMessageSchema
15
- } from "../chunk-RDTQZ7HO.js";
15
+ } from "../chunk-NUGV5QWU.js";
16
16
  export {
17
17
  ClientTransport,
18
18
  Connection,
@@ -1,7 +1,7 @@
1
1
  import { TSchema, Static } from '@sinclair/typebox';
2
- import { c as TransportClientId, f as TelemetryInfo, P as ProtocolVersion, e as PartialTransportMessage, E as EncodedTransportMessage, g as HandshakeErrorCustomHandlerFatalResponseCodes, b as OpaqueTransportMessage, H as HandshakeErrorResponseCodes, a as TransportMessage } from './message-aABg0s5M.cjs';
3
- import { L as Logger, M as MessageMetadata, T as Tags, a as LogFn, b as LoggingLevel } from './index-CHCzvZ9D.cjs';
4
- import { C as Codec, a as CodecMessageAdapter, E as EncodeResult, S as SendResult, b as SendBufferResult } from './adapter-IGrG4KLL.cjs';
2
+ import { T as TransportClientId, f as TelemetryInfo, P as ProtocolVersion, e as PartialTransportMessage, E as EncodedTransportMessage, g as HandshakeErrorCustomHandlerFatalResponseCodes, O as OpaqueTransportMessage, H as HandshakeErrorResponseCodes, b as TransportMessage } from './message-DL74OqsX.cjs';
3
+ import { L as Logger, M as MessageMetadata, T as Tags, a as LogFn, b as LoggingLevel } from './index-Bf9PGbS4.cjs';
4
+ import { C as Codec, a as CodecMessageAdapter, E as EncodeResult, S as SendResult, b as SendBufferResult } from './adapter-CjgmjtUJ.cjs';
5
5
  import { Tracer } from '@opentelemetry/api';
6
6
 
7
7
  declare const enum SessionState {
@@ -283,6 +283,7 @@ declare class LeakyBucketRateLimit {
283
283
  hasBudget(): boolean;
284
284
  startRestoringBudget(): void;
285
285
  private stopLeak;
286
+ resetBudget(): void;
286
287
  close(): void;
287
288
  }
288
289
 
@@ -585,4 +586,4 @@ declare abstract class Transport<ConnType extends Connection> {
585
586
  getSessionBoundSendFn(to: TransportClientId, sessionId: SessionId): SessionBoundSendFn;
586
587
  }
587
588
 
588
- export { Connection as C, type DeleteSessionOptions as D, type EventMap as E, LeakyBucketRateLimit as L, type ProvidedTransportOptions as P, type Session as S, Transport as T, type TransportStatus as a, type ProvidedClientTransportOptions as b, type ProvidedServerTransportOptions as c, SessionState as d, SessionNoConnection as e, SessionConnecting as f, SessionHandshaking as g, SessionConnected as h, type EventTypes as i, type EventHandler as j, ProtocolError as k, type ProtocolErrorType as l, type ClientTransportOptions as m, type ClientHandshakeOptions as n, type ClientSession as o, SessionBackingOff as p, type ServerHandshakeOptions as q, createClientHandshakeOptions as r, createServerHandshakeOptions as s, CommonSession as t, type CommonSessionProps as u, type ServerTransportOptions as v, type ServerSession as w, type SessionOptions as x, type SessionBoundSendFn as y, type SessionId as z };
589
+ export { Connection as C, type DeleteSessionOptions as D, type EventHandler as E, LeakyBucketRateLimit as L, type ProvidedClientTransportOptions as P, type Session as S, Transport as T, type EventMap as a, type EventTypes as b, ProtocolError as c, type ProtocolErrorType as d, type ProvidedServerTransportOptions as e, SessionConnected as f, SessionConnecting as g, SessionHandshaking as h, SessionNoConnection as i, SessionState as j, type ProvidedTransportOptions as k, type TransportStatus as l, type ClientTransportOptions as m, type ClientHandshakeOptions as n, type ClientSession as o, SessionBackingOff as p, type ServerHandshakeOptions as q, createClientHandshakeOptions as r, createServerHandshakeOptions as s, CommonSession as t, type CommonSessionProps as u, type ServerTransportOptions as v, type ServerSession as w, type SessionBoundSendFn as x, type SessionOptions as y, type SessionId as z };
@@ -1,7 +1,7 @@
1
1
  import { TSchema, Static } from '@sinclair/typebox';
2
- import { c as TransportClientId, f as TelemetryInfo, P as ProtocolVersion, e as PartialTransportMessage, E as EncodedTransportMessage, g as HandshakeErrorCustomHandlerFatalResponseCodes, b as OpaqueTransportMessage, H as HandshakeErrorResponseCodes, a as TransportMessage } from './message-aABg0s5M.js';
3
- import { L as Logger, M as MessageMetadata, T as Tags, a as LogFn, b as LoggingLevel } from './index-uF0cBM7z.js';
4
- import { C as Codec, a as CodecMessageAdapter, E as EncodeResult, S as SendResult, b as SendBufferResult } from './adapter-CgF7vQPu.js';
2
+ import { T as TransportClientId, f as TelemetryInfo, P as ProtocolVersion, e as PartialTransportMessage, E as EncodedTransportMessage, g as HandshakeErrorCustomHandlerFatalResponseCodes, O as OpaqueTransportMessage, H as HandshakeErrorResponseCodes, b as TransportMessage } from './message-DL74OqsX.js';
3
+ import { L as Logger, M as MessageMetadata, T as Tags, a as LogFn, b as LoggingLevel } from './index-DiAq34gk.js';
4
+ import { C as Codec, a as CodecMessageAdapter, E as EncodeResult, S as SendResult, b as SendBufferResult } from './adapter-Dtt4bYL-.js';
5
5
  import { Tracer } from '@opentelemetry/api';
6
6
 
7
7
  declare const enum SessionState {
@@ -283,6 +283,7 @@ declare class LeakyBucketRateLimit {
283
283
  hasBudget(): boolean;
284
284
  startRestoringBudget(): void;
285
285
  private stopLeak;
286
+ resetBudget(): void;
286
287
  close(): void;
287
288
  }
288
289
 
@@ -585,4 +586,4 @@ declare abstract class Transport<ConnType extends Connection> {
585
586
  getSessionBoundSendFn(to: TransportClientId, sessionId: SessionId): SessionBoundSendFn;
586
587
  }
587
588
 
588
- export { Connection as C, type DeleteSessionOptions as D, type EventMap as E, LeakyBucketRateLimit as L, type ProvidedTransportOptions as P, type Session as S, Transport as T, type TransportStatus as a, type ProvidedClientTransportOptions as b, type ProvidedServerTransportOptions as c, SessionState as d, SessionNoConnection as e, SessionConnecting as f, SessionHandshaking as g, SessionConnected as h, type EventTypes as i, type EventHandler as j, ProtocolError as k, type ProtocolErrorType as l, type ClientTransportOptions as m, type ClientHandshakeOptions as n, type ClientSession as o, SessionBackingOff as p, type ServerHandshakeOptions as q, createClientHandshakeOptions as r, createServerHandshakeOptions as s, CommonSession as t, type CommonSessionProps as u, type ServerTransportOptions as v, type ServerSession as w, type SessionOptions as x, type SessionBoundSendFn as y, type SessionId as z };
589
+ export { Connection as C, type DeleteSessionOptions as D, type EventHandler as E, LeakyBucketRateLimit as L, type ProvidedClientTransportOptions as P, type Session as S, Transport as T, type EventMap as a, type EventTypes as b, ProtocolError as c, type ProtocolErrorType as d, type ProvidedServerTransportOptions as e, SessionConnected as f, SessionConnecting as g, SessionHandshaking as h, SessionNoConnection as i, SessionState as j, type ProvidedTransportOptions as k, type TransportStatus as l, type ClientTransportOptions as m, type ClientHandshakeOptions as n, type ClientSession as o, SessionBackingOff as p, type ServerHandshakeOptions as q, createClientHandshakeOptions as r, createServerHandshakeOptions as s, CommonSession as t, type CommonSessionProps as u, type ServerTransportOptions as v, type ServerSession as w, type SessionBoundSendFn as x, type SessionOptions as y, type SessionId as z };
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.215.0",
4
+ "version": "0.215.1",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {