@replit/river 0.24.0 → 0.24.2

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 (60) hide show
  1. package/dist/{chunk-AASMR3CQ.js → chunk-25IYT6G3.js} +4 -10
  2. package/dist/chunk-25IYT6G3.js.map +1 -0
  3. package/dist/{chunk-KX5PQRVN.js → chunk-AEQFIGBA.js} +4 -4
  4. package/dist/{chunk-RXJLI2OP.js → chunk-PP4OAZJY.js} +2 -2
  5. package/dist/{chunk-PJGGC3LV.js → chunk-STDBD66K.js} +2 -2
  6. package/dist/{chunk-PJGGC3LV.js.map → chunk-STDBD66K.js.map} +1 -1
  7. package/dist/{chunk-KYYB4DUR.js → chunk-TQ44W7PR.js} +3 -2
  8. package/dist/{chunk-KYYB4DUR.js.map → chunk-TQ44W7PR.js.map} +1 -1
  9. package/dist/{chunk-JA57I7MG.js → chunk-U4UKZXWA.js} +2 -2
  10. package/dist/{chunk-NLQPPDOT.js → chunk-URKXJ2WE.js} +4 -4
  11. package/dist/{chunk-ZAT3R4CU.js → chunk-XSYDUFV4.js} +3 -3
  12. package/dist/{client-ba0d3315.d.ts → client-2ba72e89.d.ts} +1 -1
  13. package/dist/{connection-d33e3246.d.ts → connection-55cba970.d.ts} +1 -1
  14. package/dist/{connection-c3a96d09.d.ts → connection-c6db05d9.d.ts} +1 -1
  15. package/dist/{handshake-cdead82a.d.ts → handshake-0b88e8fc.d.ts} +2 -1
  16. package/dist/router/index.cjs +2 -1
  17. package/dist/router/index.cjs.map +1 -1
  18. package/dist/router/index.d.cts +7 -7
  19. package/dist/router/index.d.ts +7 -7
  20. package/dist/router/index.js +2 -2
  21. package/dist/{server-2ef5e6ec.d.ts → server-732e7014.d.ts} +1 -1
  22. package/dist/{services-e1417b33.d.ts → services-adfd0bc3.d.ts} +2 -2
  23. package/dist/transport/impls/uds/client.cjs +3 -9
  24. package/dist/transport/impls/uds/client.cjs.map +1 -1
  25. package/dist/transport/impls/uds/client.d.cts +3 -3
  26. package/dist/transport/impls/uds/client.d.ts +3 -3
  27. package/dist/transport/impls/uds/client.js +5 -5
  28. package/dist/transport/impls/uds/server.cjs +3 -9
  29. package/dist/transport/impls/uds/server.cjs.map +1 -1
  30. package/dist/transport/impls/uds/server.d.cts +3 -3
  31. package/dist/transport/impls/uds/server.d.ts +3 -3
  32. package/dist/transport/impls/uds/server.js +5 -5
  33. package/dist/transport/impls/ws/client.cjs +1 -1
  34. package/dist/transport/impls/ws/client.cjs.map +1 -1
  35. package/dist/transport/impls/ws/client.d.cts +3 -3
  36. package/dist/transport/impls/ws/client.d.ts +3 -3
  37. package/dist/transport/impls/ws/client.js +5 -5
  38. package/dist/transport/impls/ws/server.cjs +1 -1
  39. package/dist/transport/impls/ws/server.cjs.map +1 -1
  40. package/dist/transport/impls/ws/server.d.cts +3 -3
  41. package/dist/transport/impls/ws/server.d.ts +3 -3
  42. package/dist/transport/impls/ws/server.js +5 -5
  43. package/dist/transport/index.cjs +1 -1
  44. package/dist/transport/index.cjs.map +1 -1
  45. package/dist/transport/index.d.cts +4 -4
  46. package/dist/transport/index.d.ts +4 -4
  47. package/dist/transport/index.js +5 -5
  48. package/dist/util/testHelpers.cjs +2 -1
  49. package/dist/util/testHelpers.cjs.map +1 -1
  50. package/dist/util/testHelpers.d.cts +3 -3
  51. package/dist/util/testHelpers.d.ts +3 -3
  52. package/dist/util/testHelpers.js +4 -3
  53. package/dist/util/testHelpers.js.map +1 -1
  54. package/package.json +1 -1
  55. package/dist/chunk-AASMR3CQ.js.map +0 -1
  56. /package/dist/{chunk-KX5PQRVN.js.map → chunk-AEQFIGBA.js.map} +0 -0
  57. /package/dist/{chunk-RXJLI2OP.js.map → chunk-PP4OAZJY.js.map} +0 -0
  58. /package/dist/{chunk-JA57I7MG.js.map → chunk-U4UKZXWA.js.map} +0 -0
  59. /package/dist/{chunk-NLQPPDOT.js.map → chunk-URKXJ2WE.js.map} +0 -0
  60. /package/dist/{chunk-ZAT3R4CU.js.map → chunk-XSYDUFV4.js.map} +0 -0
@@ -1,14 +1,14 @@
1
- import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, P as PayloadType, b as Result, R as RiverError } from '../services-e1417b33.js';
2
- export { C as Client, E as Err, O as Ok, z as Output, j as ProcErrors, f as ProcHandler, g as ProcInit, h as ProcInput, i as ProcOutput, k as ProcType, a as Procedure, p as ProcedureMap, d as ProcedureResult, q as RPCProcedure, y as ResultUnwrapErr, x as ResultUnwrapOk, w as RiverErrorSchema, c as RiverUncaughtSchema, o as SerializedProcedureSchema, m as SerializedServerSchema, n as SerializedServiceSchema, S as Service, e as ServiceConfiguration, l as ServiceSchema, t as StreamProcedure, r as SubscriptionProcedure, v as UNCAUGHT_ERROR, U as UploadProcedure, V as ValidProcType, u as createClient, s as serializeSchema } from '../services-e1417b33.js';
1
+ import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, P as PayloadType, b as Result, R as RiverError } from '../services-adfd0bc3.js';
2
+ export { C as Client, E as Err, O as Ok, z as Output, j as ProcErrors, f as ProcHandler, g as ProcInit, h as ProcInput, i as ProcOutput, k as ProcType, a as Procedure, p as ProcedureMap, d as ProcedureResult, q as RPCProcedure, y as ResultUnwrapErr, x as ResultUnwrapOk, w as RiverErrorSchema, c as RiverUncaughtSchema, o as SerializedProcedureSchema, m as SerializedServerSchema, n as SerializedServiceSchema, S as Service, e as ServiceConfiguration, l as ServiceSchema, t as StreamProcedure, r as SubscriptionProcedure, v as UNCAUGHT_ERROR, U as UploadProcedure, V as ValidProcType, u as createClient, s as serializeSchema } from '../services-adfd0bc3.js';
3
3
  import { Static } from '@sinclair/typebox';
4
4
  import { Pushable } from 'it-pushable';
5
- import { C as Connection, q as ServerHandshakeOptions, n as ServiceContext } from '../handshake-cdead82a.js';
6
- export { r as ParsedMetadata, s as ServiceContextWithState, t as ServiceContextWithTransportInfo, u as createClientHandshakeOptions, v as createServerHandshakeOptions } from '../handshake-cdead82a.js';
7
- import { S as ServerTransport } from '../server-2ef5e6ec.js';
5
+ import { C as Connection, q as ServerHandshakeOptions, n as ServiceContext } from '../handshake-0b88e8fc.js';
6
+ export { r as ParsedMetadata, s as ServiceContextWithState, t as ServiceContextWithTransportInfo, u as createClientHandshakeOptions, v as createServerHandshakeOptions } from '../handshake-0b88e8fc.js';
7
+ import { S as ServerTransport } from '../server-732e7014.js';
8
8
  import '../message-e6c560fd.js';
9
9
  import '@sinclair/typebox/value';
10
10
  import '@opentelemetry/api';
11
- import '../client-ba0d3315.js';
11
+ import '../client-2ba72e89.js';
12
12
  import '../types-3e5768ec.js';
13
13
 
14
14
  /**
@@ -45,6 +45,6 @@ declare function createServer<Services extends AnyServiceSchemaMap>(transport: S
45
45
  extendedContext?: Omit<ServiceContext, 'state'>;
46
46
  }>): Server<Services>;
47
47
 
48
- var version = "0.24.0";
48
+ var version = "0.24.2";
49
49
 
50
50
  export { PayloadType, version as RIVER_VERSION, Result, RiverError, Server, ServiceContext, createServer };
@@ -1,14 +1,14 @@
1
- import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, P as PayloadType, b as Result, R as RiverError } from '../services-e1417b33.js';
2
- export { C as Client, E as Err, O as Ok, z as Output, j as ProcErrors, f as ProcHandler, g as ProcInit, h as ProcInput, i as ProcOutput, k as ProcType, a as Procedure, p as ProcedureMap, d as ProcedureResult, q as RPCProcedure, y as ResultUnwrapErr, x as ResultUnwrapOk, w as RiverErrorSchema, c as RiverUncaughtSchema, o as SerializedProcedureSchema, m as SerializedServerSchema, n as SerializedServiceSchema, S as Service, e as ServiceConfiguration, l as ServiceSchema, t as StreamProcedure, r as SubscriptionProcedure, v as UNCAUGHT_ERROR, U as UploadProcedure, V as ValidProcType, u as createClient, s as serializeSchema } from '../services-e1417b33.js';
1
+ import { A as AnyServiceSchemaMap, I as InstantiatedServiceSchemaMap, P as PayloadType, b as Result, R as RiverError } from '../services-adfd0bc3.js';
2
+ export { C as Client, E as Err, O as Ok, z as Output, j as ProcErrors, f as ProcHandler, g as ProcInit, h as ProcInput, i as ProcOutput, k as ProcType, a as Procedure, p as ProcedureMap, d as ProcedureResult, q as RPCProcedure, y as ResultUnwrapErr, x as ResultUnwrapOk, w as RiverErrorSchema, c as RiverUncaughtSchema, o as SerializedProcedureSchema, m as SerializedServerSchema, n as SerializedServiceSchema, S as Service, e as ServiceConfiguration, l as ServiceSchema, t as StreamProcedure, r as SubscriptionProcedure, v as UNCAUGHT_ERROR, U as UploadProcedure, V as ValidProcType, u as createClient, s as serializeSchema } from '../services-adfd0bc3.js';
3
3
  import { Static } from '@sinclair/typebox';
4
4
  import { Pushable } from 'it-pushable';
5
- import { C as Connection, q as ServerHandshakeOptions, n as ServiceContext } from '../handshake-cdead82a.js';
6
- export { r as ParsedMetadata, s as ServiceContextWithState, t as ServiceContextWithTransportInfo, u as createClientHandshakeOptions, v as createServerHandshakeOptions } from '../handshake-cdead82a.js';
7
- import { S as ServerTransport } from '../server-2ef5e6ec.js';
5
+ import { C as Connection, q as ServerHandshakeOptions, n as ServiceContext } from '../handshake-0b88e8fc.js';
6
+ export { r as ParsedMetadata, s as ServiceContextWithState, t as ServiceContextWithTransportInfo, u as createClientHandshakeOptions, v as createServerHandshakeOptions } from '../handshake-0b88e8fc.js';
7
+ import { S as ServerTransport } from '../server-732e7014.js';
8
8
  import '../message-e6c560fd.js';
9
9
  import '@sinclair/typebox/value';
10
10
  import '@opentelemetry/api';
11
- import '../client-ba0d3315.js';
11
+ import '../client-2ba72e89.js';
12
12
  import '../types-3e5768ec.js';
13
13
 
14
14
  /**
@@ -45,6 +45,6 @@ declare function createServer<Services extends AnyServiceSchemaMap>(transport: S
45
45
  extendedContext?: Omit<ServiceContext, 'state'>;
46
46
  }>): Server<Services>;
47
47
 
48
- var version = "0.24.0";
48
+ var version = "0.24.2";
49
49
 
50
50
  export { PayloadType, version as RIVER_VERSION, Result, RiverError, Server, ServiceContext, createServer };
@@ -10,10 +10,10 @@ import {
10
10
  createServer,
11
11
  createServerHandshakeOptions,
12
12
  serializeSchema
13
- } from "../chunk-KYYB4DUR.js";
13
+ } from "../chunk-TQ44W7PR.js";
14
14
  import {
15
15
  version
16
- } from "../chunk-PJGGC3LV.js";
16
+ } from "../chunk-STDBD66K.js";
17
17
  export {
18
18
  Err,
19
19
  Ok,
@@ -1,4 +1,4 @@
1
- import { C as Connection, w as CommonSession, d as SessionState, x as SessionHandshakingListeners, T as Transport, y as ServerTransportOptions, q as ServerHandshakeOptions, r as ParsedMetadata, c as ProvidedServerTransportOptions, S as Session } from './handshake-cdead82a.js';
1
+ import { C as Connection, w as CommonSession, d as SessionState, x as SessionHandshakingListeners, T as Transport, y as ServerTransportOptions, q as ServerHandshakeOptions, r as ParsedMetadata, c as ProvidedServerTransportOptions, S as Session } from './handshake-0b88e8fc.js';
2
2
  import { M as MessageMetadata, a as TransportMessage, c as TransportClientId, P as PartialTransportMessage, b as OpaqueTransportMessage } from './message-e6c560fd.js';
3
3
 
4
4
  declare class SessionWaitingForHandshake<ConnType extends Connection> extends CommonSession {
@@ -1,8 +1,8 @@
1
1
  import { Static, TObject, TUnion, TString, TSchema, TNever, TLiteral } from '@sinclair/typebox';
2
2
  import { Pushable } from 'it-pushable';
3
- import { C as Connection, p as ClientHandshakeOptions, t as ServiceContextWithTransportInfo, n as ServiceContext } from './handshake-cdead82a.js';
3
+ import { C as Connection, p as ClientHandshakeOptions, t as ServiceContextWithTransportInfo, n as ServiceContext } from './handshake-0b88e8fc.js';
4
4
  import { c as TransportClientId } from './message-e6c560fd.js';
5
- import { C as ClientTransport } from './client-ba0d3315.js';
5
+ import { C as ClientTransport } from './client-2ba72e89.js';
6
6
 
7
7
  type AsyncIter<T> = AsyncGenerator<T, T>;
8
8
  /**
@@ -58,9 +58,6 @@ var Uint32LengthPrefixFraming = class extends import_node_stream.Transform {
58
58
  cb();
59
59
  }
60
60
  _flush(cb) {
61
- if (this.receivedBuffer.length) {
62
- this.emit("error", new Error("got incomplete message while flushing"));
63
- }
64
61
  this.receivedBuffer = Buffer.alloc(0);
65
62
  cb();
66
63
  }
@@ -190,9 +187,6 @@ var UdsConnection = class extends Connection {
190
187
  cb(msg);
191
188
  }
192
189
  });
193
- this.sock.on("end", () => {
194
- this.sock.destroy();
195
- });
196
190
  }
197
191
  send(payload) {
198
192
  if (this.framer.destroyed || !this.sock.writable || this.sock.closed) {
@@ -202,8 +196,8 @@ var UdsConnection = class extends Connection {
202
196
  return true;
203
197
  }
204
198
  close() {
205
- this.sock.end();
206
- this.framer.end();
199
+ this.sock.destroy();
200
+ this.framer.destroy();
207
201
  }
208
202
  };
209
203
 
@@ -776,7 +770,7 @@ var SessionNoConnection = class extends IdentifiedSession {
776
770
  var import_api = require("@opentelemetry/api");
777
771
 
778
772
  // package.json
779
- var version = "0.24.0";
773
+ var version = "0.24.2";
780
774
 
781
775
  // tracing/index.ts
782
776
  function getPropagationContext(ctx) {