@replit/river 0.200.2 → 0.200.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.
Files changed (36) hide show
  1. package/dist/{chunk-HRKM7BIE.js → chunk-FX5DKRIK.js} +2 -2
  2. package/dist/{chunk-QIDEN5PP.js → chunk-HFW27CAC.js} +3 -3
  3. package/dist/{chunk-6BH2CXVE.js → chunk-HYPTZTEZ.js} +2 -2
  4. package/dist/{chunk-PJB2Y2AV.js → chunk-O2VICK2U.js} +4 -4
  5. package/dist/{chunk-GJUUVID2.js → chunk-QHMZKXXG.js} +2 -2
  6. package/dist/{chunk-GJUUVID2.js.map → chunk-QHMZKXXG.js.map} +1 -1
  7. package/dist/{chunk-A4JKES5A.js → chunk-YOC4BXQ5.js} +4 -4
  8. package/dist/{chunk-Z4PX66JO.js → chunk-ZVWJN6V2.js} +1 -1
  9. package/dist/chunk-ZVWJN6V2.js.map +1 -0
  10. package/dist/router/index.cjs +1 -1
  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 +2 -2
  15. package/dist/{services-259f39a3.d.ts → services-c8fe49bf.d.ts} +4 -1
  16. package/dist/transport/impls/ws/client.cjs +1 -1
  17. package/dist/transport/impls/ws/client.cjs.map +1 -1
  18. package/dist/transport/impls/ws/client.js +5 -5
  19. package/dist/transport/impls/ws/server.cjs +1 -1
  20. package/dist/transport/impls/ws/server.cjs.map +1 -1
  21. package/dist/transport/impls/ws/server.js +5 -5
  22. package/dist/transport/index.cjs +1 -1
  23. package/dist/transport/index.cjs.map +1 -1
  24. package/dist/transport/index.js +5 -5
  25. package/dist/util/testHelpers.cjs +1 -1
  26. package/dist/util/testHelpers.cjs.map +1 -1
  27. package/dist/util/testHelpers.d.cts +1 -1
  28. package/dist/util/testHelpers.d.ts +1 -1
  29. package/dist/util/testHelpers.js +3 -3
  30. package/package.json +1 -1
  31. package/dist/chunk-Z4PX66JO.js.map +0 -1
  32. /package/dist/{chunk-HRKM7BIE.js.map → chunk-FX5DKRIK.js.map} +0 -0
  33. /package/dist/{chunk-QIDEN5PP.js.map → chunk-HFW27CAC.js.map} +0 -0
  34. /package/dist/{chunk-6BH2CXVE.js.map → chunk-HYPTZTEZ.js.map} +0 -0
  35. /package/dist/{chunk-PJB2Y2AV.js.map → chunk-O2VICK2U.js.map} +0 -0
  36. /package/dist/{chunk-A4JKES5A.js.map → chunk-YOC4BXQ5.js.map} +0 -0
@@ -1,5 +1,5 @@
1
- import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, g as AnyProcedure } from '../services-259f39a3.js';
2
- export { B as BaseErrorSchemaType, H as CANCEL_CODE, K as Client, L as Err, N as ErrResult, G as INVALID_REQUEST_CODE, O as Ok, Q as OkResult, P as PayloadType, m as ProcErrors, i as ProcHandler, j as ProcInit, k as ProcRequest, l as ProcResponse, n as ProcType, d as Procedure, c as ProcedureErrorSchemaType, x as ProcedureMap, y as RPCProcedure, R as Readable, f as ReaderErrorSchema, Y as ResponseData, e as Result, X as ResultUnwrapErr, T as ResultUnwrapOk, r as SerializedProcedureSchema, w as SerializedProcedureSchemaProtocolv1, p as SerializedServerSchema, u as SerializedServerSchemaProtocolv1, q as SerializedServiceSchema, v as SerializedServiceSchemaProtocolv1, S as Service, h as ServiceConfiguration, o as ServiceSchema, C as StreamProcedure, z as SubscriptionProcedure, E as UNCAUGHT_ERROR_CODE, F as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, J as createClient, D as flattenErrorType, s as serializeSchema, t as serializeSchemaV1Compat, M as unwrapOrThrow } from '../services-259f39a3.js';
1
+ import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, g as AnyProcedure } from '../services-c8fe49bf.js';
2
+ export { B as BaseErrorSchemaType, H as CANCEL_CODE, K as Client, L as Err, N as ErrResult, G as INVALID_REQUEST_CODE, O as Ok, Q as OkResult, P as PayloadType, m as ProcErrors, i as ProcHandler, j as ProcInit, k as ProcRequest, l as ProcResponse, n as ProcType, d as Procedure, c as ProcedureErrorSchemaType, x as ProcedureMap, y as RPCProcedure, R as Readable, f as ReaderErrorSchema, Y as ResponseData, e as Result, X as ResultUnwrapErr, T as ResultUnwrapOk, r as SerializedProcedureSchema, w as SerializedProcedureSchemaProtocolv1, p as SerializedServerSchema, u as SerializedServerSchemaProtocolv1, q as SerializedServiceSchema, v as SerializedServiceSchemaProtocolv1, S as Service, h as ServiceConfiguration, o as ServiceSchema, C as StreamProcedure, z as SubscriptionProcedure, E as UNCAUGHT_ERROR_CODE, F as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, J as createClient, D as flattenErrorType, s as serializeSchema, t as serializeSchemaV1Compat, M as unwrapOrThrow } from '../services-c8fe49bf.js';
3
3
  import { c as TransportClientId, b as OpaqueTransportMessage } from '../message-57bb8187.js';
4
4
  import { t as ParsedMetadata, C as Connection, u as ServerHandshakeOptions, p as ServiceContext } from '../context-69f37ac1.js';
5
5
  export { v as ProcedureHandlerContext, w as createClientHandshakeOptions, x as createServerHandshakeOptions } from '../context-69f37ac1.js';
@@ -55,6 +55,6 @@ declare function createServer<Services extends AnyServiceSchemaMap>(transport: S
55
55
  maxCancelledStreamTombstonesPerSession?: number;
56
56
  }>): Server<Services>;
57
57
 
58
- var version = "0.200.2";
58
+ var version = "0.200.3";
59
59
 
60
60
  export { ParsedMetadata, version as RIVER_VERSION, Server, ServiceContext, createServer };
@@ -1,5 +1,5 @@
1
- import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, g as AnyProcedure } from '../services-259f39a3.js';
2
- export { B as BaseErrorSchemaType, H as CANCEL_CODE, K as Client, L as Err, N as ErrResult, G as INVALID_REQUEST_CODE, O as Ok, Q as OkResult, P as PayloadType, m as ProcErrors, i as ProcHandler, j as ProcInit, k as ProcRequest, l as ProcResponse, n as ProcType, d as Procedure, c as ProcedureErrorSchemaType, x as ProcedureMap, y as RPCProcedure, R as Readable, f as ReaderErrorSchema, Y as ResponseData, e as Result, X as ResultUnwrapErr, T as ResultUnwrapOk, r as SerializedProcedureSchema, w as SerializedProcedureSchemaProtocolv1, p as SerializedServerSchema, u as SerializedServerSchemaProtocolv1, q as SerializedServiceSchema, v as SerializedServiceSchemaProtocolv1, S as Service, h as ServiceConfiguration, o as ServiceSchema, C as StreamProcedure, z as SubscriptionProcedure, E as UNCAUGHT_ERROR_CODE, F as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, J as createClient, D as flattenErrorType, s as serializeSchema, t as serializeSchemaV1Compat, M as unwrapOrThrow } from '../services-259f39a3.js';
1
+ import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, g as AnyProcedure } from '../services-c8fe49bf.js';
2
+ export { B as BaseErrorSchemaType, H as CANCEL_CODE, K as Client, L as Err, N as ErrResult, G as INVALID_REQUEST_CODE, O as Ok, Q as OkResult, P as PayloadType, m as ProcErrors, i as ProcHandler, j as ProcInit, k as ProcRequest, l as ProcResponse, n as ProcType, d as Procedure, c as ProcedureErrorSchemaType, x as ProcedureMap, y as RPCProcedure, R as Readable, f as ReaderErrorSchema, Y as ResponseData, e as Result, X as ResultUnwrapErr, T as ResultUnwrapOk, r as SerializedProcedureSchema, w as SerializedProcedureSchemaProtocolv1, p as SerializedServerSchema, u as SerializedServerSchemaProtocolv1, q as SerializedServiceSchema, v as SerializedServiceSchemaProtocolv1, S as Service, h as ServiceConfiguration, o as ServiceSchema, C as StreamProcedure, z as SubscriptionProcedure, E as UNCAUGHT_ERROR_CODE, F as UNEXPECTED_DISCONNECT_CODE, U as UploadProcedure, V as ValidProcType, W as Writable, J as createClient, D as flattenErrorType, s as serializeSchema, t as serializeSchemaV1Compat, M as unwrapOrThrow } from '../services-c8fe49bf.js';
3
3
  import { c as TransportClientId, b as OpaqueTransportMessage } from '../message-57bb8187.js';
4
4
  import { t as ParsedMetadata, C as Connection, u as ServerHandshakeOptions, p as ServiceContext } from '../context-69f37ac1.js';
5
5
  export { v as ProcedureHandlerContext, w as createClientHandshakeOptions, x as createServerHandshakeOptions } from '../context-69f37ac1.js';
@@ -55,6 +55,6 @@ declare function createServer<Services extends AnyServiceSchemaMap>(transport: S
55
55
  maxCancelledStreamTombstonesPerSession?: number;
56
56
  }>): Server<Services>;
57
57
 
58
- var version = "0.200.2";
58
+ var version = "0.200.3";
59
59
 
60
60
  export { ParsedMetadata, version as RIVER_VERSION, Server, ServiceContext, createServer };
@@ -12,7 +12,7 @@ import {
12
12
  WritableImpl,
13
13
  flattenErrorType,
14
14
  unwrapOrThrow
15
- } from "../chunk-Z4PX66JO.js";
15
+ } from "../chunk-ZVWJN6V2.js";
16
16
  import {
17
17
  ControlMessageCloseSchema,
18
18
  ControlMessagePayloadSchema,
@@ -27,7 +27,7 @@ import {
27
27
  isStreamClose,
28
28
  isStreamOpen,
29
29
  version
30
- } from "../chunk-GJUUVID2.js";
30
+ } from "../chunk-QHMZKXXG.js";
31
31
 
32
32
  // router/services.ts
33
33
  import { Type, Kind } from "@sinclair/typebox";
@@ -70,7 +70,10 @@ type Flatten<T> = T extends BaseErrorSchemaType ? T : T extends TUnion<Array<inf
70
70
  */
71
71
  declare function flattenErrorType<T extends NestableProcedureErrorSchemaType>(errType: T): Flatten<T>;
72
72
 
73
- declare const ReadableBrokenError: Static<BaseErrorSchemaType>;
73
+ declare const ReadableBrokenError: {
74
+ readonly code: "READABLE_BROKEN";
75
+ readonly message: "Readable was broken before it is fully consumed";
76
+ };
74
77
  /**
75
78
  * Similar to {@link Result} but with an extra error to handle cases where {@link Readable.break} is called
76
79
  */
@@ -634,7 +634,7 @@ var SessionNoConnection = class extends IdentifiedSessionWithGracePeriod {
634
634
  var import_api = require("@opentelemetry/api");
635
635
 
636
636
  // package.json
637
- var version = "0.200.2";
637
+ var version = "0.200.3";
638
638
 
639
639
  // tracing/index.ts
640
640
  function getPropagationContext(ctx) {