@replit/river 0.23.2 → 0.23.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 (55) hide show
  1. package/dist/{chunk-KPLLLP3F.js → chunk-3U43VMW2.js} +2 -2
  2. package/dist/{chunk-LHLQY5FR.js → chunk-IKT6A32W.js} +3 -3
  3. package/dist/chunk-IKT6A32W.js.map +1 -0
  4. package/dist/{chunk-ZPUDMABQ.js → chunk-JBRQNEBV.js} +2 -2
  5. package/dist/{chunk-ZPUDMABQ.js.map → chunk-JBRQNEBV.js.map} +1 -1
  6. package/dist/{chunk-6Z4YTBOM.js → chunk-R3EG3FOP.js} +2 -2
  7. package/dist/{chunk-3ZS3RHZF.js → chunk-XZV3HOQW.js} +2 -2
  8. package/dist/chunk-XZV3HOQW.js.map +1 -0
  9. package/dist/{connection-a25109b5.d.ts → connection-4abad643.d.ts} +1 -1
  10. package/dist/{connection-6eb86e22.d.ts → connection-89a66019.d.ts} +1 -1
  11. package/dist/{index-72b688b7.d.ts → index-a009d7f6.d.ts} +11 -3
  12. package/dist/logging/index.d.cts +1 -1
  13. package/dist/logging/index.d.ts +1 -1
  14. package/dist/router/index.cjs +1 -1
  15. package/dist/router/index.cjs.map +1 -1
  16. package/dist/router/index.d.cts +8 -8
  17. package/dist/router/index.d.ts +8 -8
  18. package/dist/router/index.js +2 -2
  19. package/dist/{services-eeb6e56f.d.ts → services-edc3b16d.d.ts} +4 -4
  20. package/dist/{services-0af830a4.d.ts → services-ef89f5b0.d.ts} +4 -4
  21. package/dist/transport/impls/uds/client.cjs +2 -2
  22. package/dist/transport/impls/uds/client.cjs.map +1 -1
  23. package/dist/transport/impls/uds/client.d.cts +3 -3
  24. package/dist/transport/impls/uds/client.d.ts +3 -3
  25. package/dist/transport/impls/uds/client.js +3 -3
  26. package/dist/transport/impls/uds/server.cjs +1 -1
  27. package/dist/transport/impls/uds/server.cjs.map +1 -1
  28. package/dist/transport/impls/uds/server.d.cts +3 -3
  29. package/dist/transport/impls/uds/server.d.ts +3 -3
  30. package/dist/transport/impls/uds/server.js +3 -3
  31. package/dist/transport/impls/ws/client.cjs +2 -2
  32. package/dist/transport/impls/ws/client.cjs.map +1 -1
  33. package/dist/transport/impls/ws/client.d.cts +3 -3
  34. package/dist/transport/impls/ws/client.d.ts +3 -3
  35. package/dist/transport/impls/ws/client.js +3 -3
  36. package/dist/transport/impls/ws/server.cjs +1 -1
  37. package/dist/transport/impls/ws/server.cjs.map +1 -1
  38. package/dist/transport/impls/ws/server.d.cts +2 -2
  39. package/dist/transport/impls/ws/server.d.ts +2 -2
  40. package/dist/transport/impls/ws/server.js +3 -3
  41. package/dist/transport/index.cjs +2 -2
  42. package/dist/transport/index.cjs.map +1 -1
  43. package/dist/transport/index.d.cts +9 -9
  44. package/dist/transport/index.d.ts +9 -9
  45. package/dist/transport/index.js +2 -2
  46. package/dist/util/testHelpers.cjs +1 -1
  47. package/dist/util/testHelpers.cjs.map +1 -1
  48. package/dist/util/testHelpers.d.cts +2 -2
  49. package/dist/util/testHelpers.d.ts +2 -2
  50. package/dist/util/testHelpers.js +3 -3
  51. package/package.json +1 -1
  52. package/dist/chunk-3ZS3RHZF.js.map +0 -1
  53. package/dist/chunk-LHLQY5FR.js.map +0 -1
  54. /package/dist/{chunk-KPLLLP3F.js.map → chunk-3U43VMW2.js.map} +0 -0
  55. /package/dist/{chunk-6Z4YTBOM.js.map → chunk-R3EG3FOP.js.map} +0 -0
@@ -1,10 +1,10 @@
1
- import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, P as PayloadType, b as Result, R as RiverError } from '../services-eeb6e56f.js';
2
- export { C as Client, E as Err, O as Ok, x as Output, j as ProcErrors, f as ProcHandler, g as ProcInit, h as ProcInput, i as ProcOutput, k as ProcType, a as Procedure, n as ProcedureMap, d as ProcedureResult, o as RPCProcedure, w as ResultUnwrapErr, v as ResultUnwrapOk, u as RiverErrorSchema, c as RiverUncaughtSchema, m as SerializedServerSchema, S as Service, e as ServiceConfiguration, l as ServiceSchema, q as StreamProcedure, p as SubscriptionProcedure, t as UNCAUGHT_ERROR, U as UploadProcedure, V as ValidProcType, r as createClient, s as serializeSchema } from '../services-eeb6e56f.js';
3
- import { Static, TSchema } from '@sinclair/typebox';
1
+ import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, P as PayloadType, b as Result, R as RiverError } from '../services-edc3b16d.js';
2
+ export { C as Client, E as Err, O as Ok, x as Output, j as ProcErrors, f as ProcHandler, g as ProcInit, h as ProcInput, i as ProcOutput, k as ProcType, a as Procedure, n as ProcedureMap, d as ProcedureResult, o as RPCProcedure, w as ResultUnwrapErr, v as ResultUnwrapOk, u as RiverErrorSchema, c as RiverUncaughtSchema, m as SerializedServerSchema, S as Service, e as ServiceConfiguration, l as ServiceSchema, q as StreamProcedure, p as SubscriptionProcedure, t as UNCAUGHT_ERROR, U as UploadProcedure, V as ValidProcType, r as createClient, s as serializeSchema } from '../services-edc3b16d.js';
3
+ import { Static } from '@sinclair/typebox';
4
4
  import { ServerTransport } from '../transport/index.cjs';
5
5
  import { Pushable } from 'it-pushable';
6
- import { C as Connection, c as ServerHandshakeOptions, a as ServiceContext } from '../index-72b688b7.js';
7
- export { d as ServiceContextWithState, e as ServiceContextWithTransportInfo } from '../index-72b688b7.js';
6
+ import { C as Connection, c as ServerHandshakeOptions, a as ServiceContext } from '../index-a009d7f6.js';
7
+ export { d as ParsedMetadata, e as ServiceContextWithState, f as ServiceContextWithTransportInfo } from '../index-a009d7f6.js';
8
8
  import '../types-3e5768ec.js';
9
9
  import '@sinclair/typebox/value';
10
10
  import '@opentelemetry/api';
@@ -38,11 +38,11 @@ interface ProcStream {
38
38
  * @param extendedContext - An optional object containing additional context to be passed to all services.
39
39
  * @returns A promise that resolves to a server instance with the registered services.
40
40
  */
41
- declare function createServer<Services extends AnyServiceSchemaMap, MetadataSchema extends TSchema = TSchema>(transport: ServerTransport<Connection, MetadataSchema>, services: Services, providedServerOptions?: Partial<{
42
- handshakeOptions?: ServerHandshakeOptions<MetadataSchema>;
41
+ declare function createServer<Services extends AnyServiceSchemaMap>(transport: ServerTransport<Connection>, services: Services, providedServerOptions?: Partial<{
42
+ handshakeOptions?: ServerHandshakeOptions;
43
43
  extendedContext?: Omit<ServiceContext, 'state'>;
44
44
  }>): Server<Services>;
45
45
 
46
- var version = "0.23.2";
46
+ var version = "0.23.3";
47
47
 
48
48
  export { PayloadType, version as RIVER_VERSION, Result, RiverError, Server, ServiceContext, createServer };
@@ -1,10 +1,10 @@
1
- import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, P as PayloadType, b as Result, R as RiverError } from '../services-0af830a4.js';
2
- export { C as Client, E as Err, O as Ok, x as Output, j as ProcErrors, f as ProcHandler, g as ProcInit, h as ProcInput, i as ProcOutput, k as ProcType, a as Procedure, n as ProcedureMap, d as ProcedureResult, o as RPCProcedure, w as ResultUnwrapErr, v as ResultUnwrapOk, u as RiverErrorSchema, c as RiverUncaughtSchema, m as SerializedServerSchema, S as Service, e as ServiceConfiguration, l as ServiceSchema, q as StreamProcedure, p as SubscriptionProcedure, t as UNCAUGHT_ERROR, U as UploadProcedure, V as ValidProcType, r as createClient, s as serializeSchema } from '../services-0af830a4.js';
3
- import { Static, TSchema } from '@sinclair/typebox';
1
+ import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, P as PayloadType, b as Result, R as RiverError } from '../services-ef89f5b0.js';
2
+ export { C as Client, E as Err, O as Ok, x as Output, j as ProcErrors, f as ProcHandler, g as ProcInit, h as ProcInput, i as ProcOutput, k as ProcType, a as Procedure, n as ProcedureMap, d as ProcedureResult, o as RPCProcedure, w as ResultUnwrapErr, v as ResultUnwrapOk, u as RiverErrorSchema, c as RiverUncaughtSchema, m as SerializedServerSchema, S as Service, e as ServiceConfiguration, l as ServiceSchema, q as StreamProcedure, p as SubscriptionProcedure, t as UNCAUGHT_ERROR, U as UploadProcedure, V as ValidProcType, r as createClient, s as serializeSchema } from '../services-ef89f5b0.js';
3
+ import { Static } from '@sinclair/typebox';
4
4
  import { ServerTransport } from '../transport/index.js';
5
5
  import { Pushable } from 'it-pushable';
6
- import { C as Connection, c as ServerHandshakeOptions, a as ServiceContext } from '../index-72b688b7.js';
7
- export { d as ServiceContextWithState, e as ServiceContextWithTransportInfo } from '../index-72b688b7.js';
6
+ import { C as Connection, c as ServerHandshakeOptions, a as ServiceContext } from '../index-a009d7f6.js';
7
+ export { d as ParsedMetadata, e as ServiceContextWithState, f as ServiceContextWithTransportInfo } from '../index-a009d7f6.js';
8
8
  import '../types-3e5768ec.js';
9
9
  import '@sinclair/typebox/value';
10
10
  import '@opentelemetry/api';
@@ -38,11 +38,11 @@ interface ProcStream {
38
38
  * @param extendedContext - An optional object containing additional context to be passed to all services.
39
39
  * @returns A promise that resolves to a server instance with the registered services.
40
40
  */
41
- declare function createServer<Services extends AnyServiceSchemaMap, MetadataSchema extends TSchema = TSchema>(transport: ServerTransport<Connection, MetadataSchema>, services: Services, providedServerOptions?: Partial<{
42
- handshakeOptions?: ServerHandshakeOptions<MetadataSchema>;
41
+ declare function createServer<Services extends AnyServiceSchemaMap>(transport: ServerTransport<Connection>, services: Services, providedServerOptions?: Partial<{
42
+ handshakeOptions?: ServerHandshakeOptions;
43
43
  extendedContext?: Omit<ServiceContext, 'state'>;
44
44
  }>): Server<Services>;
45
45
 
46
- var version = "0.23.2";
46
+ var version = "0.23.3";
47
47
 
48
48
  export { PayloadType, version as RIVER_VERSION, Result, RiverError, Server, ServiceContext, createServer };
@@ -8,10 +8,10 @@ import {
8
8
  createClient,
9
9
  createServer,
10
10
  serializeSchema
11
- } from "../chunk-ZPUDMABQ.js";
11
+ } from "../chunk-JBRQNEBV.js";
12
12
  import {
13
13
  version
14
- } from "../chunk-3ZS3RHZF.js";
14
+ } from "../chunk-XZV3HOQW.js";
15
15
  import "../chunk-SPP7ACQN.js";
16
16
  export {
17
17
  Err,
@@ -1,7 +1,7 @@
1
- import { TSchema, Static, TObject, TUnion, TString, TNever, TLiteral } from '@sinclair/typebox';
1
+ import { Static, TObject, TUnion, TString, TSchema, TNever, TLiteral } from '@sinclair/typebox';
2
2
  import { ClientTransport } from './transport/index.cjs';
3
3
  import { Pushable } from 'it-pushable';
4
- import { C as Connection, T as TransportClientId, f as ClientHandshakeOptions, e as ServiceContextWithTransportInfo } from './index-72b688b7.js';
4
+ import { C as Connection, T as TransportClientId, g as ClientHandshakeOptions, f as ServiceContextWithTransportInfo } from './index-a009d7f6.js';
5
5
 
6
6
  type AsyncIter<T> = AsyncGenerator<T, T>;
7
7
  /**
@@ -67,8 +67,8 @@ interface ClientOptions {
67
67
  * @param {Partial<ClientOptions>} providedClientOptions - The options for the client.
68
68
  * @returns The client for the server.
69
69
  */
70
- declare function createClient<ServiceSchemaMap extends AnyServiceSchemaMap, MetadataSchema extends TSchema = TSchema>(transport: ClientTransport<Connection, MetadataSchema>, serverId: TransportClientId, providedClientOptions?: Partial<ClientOptions & {
71
- handshakeOptions: ClientHandshakeOptions<MetadataSchema>;
70
+ declare function createClient<ServiceSchemaMap extends AnyServiceSchemaMap>(transport: ClientTransport<Connection>, serverId: TransportClientId, providedClientOptions?: Partial<ClientOptions & {
71
+ handshakeOptions: ClientHandshakeOptions;
72
72
  }>): Client<ServiceSchemaMap>;
73
73
 
74
74
  type TLiteralString = TLiteral<string>;
@@ -1,7 +1,7 @@
1
- import { TSchema, Static, TObject, TUnion, TString, TNever, TLiteral } from '@sinclair/typebox';
1
+ import { Static, TObject, TUnion, TString, TSchema, TNever, TLiteral } from '@sinclair/typebox';
2
2
  import { ClientTransport } from './transport/index.js';
3
3
  import { Pushable } from 'it-pushable';
4
- import { C as Connection, T as TransportClientId, f as ClientHandshakeOptions, e as ServiceContextWithTransportInfo } from './index-72b688b7.js';
4
+ import { C as Connection, T as TransportClientId, g as ClientHandshakeOptions, f as ServiceContextWithTransportInfo } from './index-a009d7f6.js';
5
5
 
6
6
  type AsyncIter<T> = AsyncGenerator<T, T>;
7
7
  /**
@@ -67,8 +67,8 @@ interface ClientOptions {
67
67
  * @param {Partial<ClientOptions>} providedClientOptions - The options for the client.
68
68
  * @returns The client for the server.
69
69
  */
70
- declare function createClient<ServiceSchemaMap extends AnyServiceSchemaMap, MetadataSchema extends TSchema = TSchema>(transport: ClientTransport<Connection, MetadataSchema>, serverId: TransportClientId, providedClientOptions?: Partial<ClientOptions & {
71
- handshakeOptions: ClientHandshakeOptions<MetadataSchema>;
70
+ declare function createClient<ServiceSchemaMap extends AnyServiceSchemaMap>(transport: ClientTransport<Connection>, serverId: TransportClientId, providedClientOptions?: Partial<ClientOptions & {
71
+ handshakeOptions: ClientHandshakeOptions;
72
72
  }>): Client<ServiceSchemaMap>;
73
73
 
74
74
  type TLiteralString = TLiteral<string>;
@@ -113,7 +113,7 @@ function isAck(controlFlag) {
113
113
  var import_api = require("@opentelemetry/api");
114
114
 
115
115
  // package.json
116
- var version = "0.23.2";
116
+ var version = "0.23.3";
117
117
 
118
118
  // tracing/index.ts
119
119
  function getPropagationContext(ctx) {
@@ -1243,7 +1243,7 @@ var ClientTransport = class extends Transport {
1243
1243
  super.deleteSession(session);
1244
1244
  }
1245
1245
  async sendHandshake(to, conn) {
1246
- let metadata;
1246
+ let metadata = void 0;
1247
1247
  if (this.handshakeExtensions) {
1248
1248
  metadata = await this.handshakeExtensions.construct();
1249
1249
  if (!import_value.Value.Check(this.handshakeExtensions.schema, metadata)) {