@replit/river 0.208.0 → 0.208.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 (53) hide show
  1. package/dist/{adapter-ChksXKVN.d.ts → adapter-f2b6e211.d.ts} +2 -2
  2. package/dist/{chunk-2JNVDUMN.js → chunk-2WFRHXDZ.js} +17 -12
  3. package/dist/chunk-2WFRHXDZ.js.map +1 -0
  4. package/dist/{chunk-DKW3GC3M.js → chunk-BXKBENJE.js} +2 -2
  5. package/dist/{chunk-ETZAHFGQ.js → chunk-EVAQ2QMB.js} +25 -21
  6. package/dist/{chunk-ETZAHFGQ.js.map → chunk-EVAQ2QMB.js.map} +1 -1
  7. package/dist/codec/index.cjs +1 -1
  8. package/dist/codec/index.cjs.map +1 -1
  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-Donr3JRB.d.ts → connection-098d4aad.d.ts} +4 -4
  13. package/dist/{index-D8IOd3LG.d.ts → index-02554794.d.ts} +2 -2
  14. package/dist/logging/index.d.cts +2 -2
  15. package/dist/logging/index.d.ts +2 -2
  16. package/dist/{message-Di94OL80.d.cts → message-01c3e85a.d.ts} +1 -1
  17. package/dist/router/index.cjs +9 -5
  18. package/dist/router/index.cjs.map +1 -1
  19. package/dist/router/index.d.cts +7 -7
  20. package/dist/router/index.d.ts +7 -7
  21. package/dist/router/index.js +1 -1
  22. package/dist/{transport-CZb3vdB4.d.ts → services-44be1b6b.d.ts} +275 -275
  23. package/dist/testUtil/index.cjs +14 -8
  24. package/dist/testUtil/index.cjs.map +1 -1
  25. package/dist/testUtil/index.d.cts +5 -5
  26. package/dist/testUtil/index.d.ts +5 -5
  27. package/dist/testUtil/index.js +5 -4
  28. package/dist/testUtil/index.js.map +1 -1
  29. package/dist/transport/impls/ws/client.cjs +10 -6
  30. package/dist/transport/impls/ws/client.cjs.map +1 -1
  31. package/dist/transport/impls/ws/client.d.cts +6 -6
  32. package/dist/transport/impls/ws/client.d.ts +6 -6
  33. package/dist/transport/impls/ws/client.js +3 -3
  34. package/dist/transport/impls/ws/server.cjs +12 -7
  35. package/dist/transport/impls/ws/server.cjs.map +1 -1
  36. package/dist/transport/impls/ws/server.d.cts +6 -6
  37. package/dist/transport/impls/ws/server.d.ts +6 -6
  38. package/dist/transport/impls/ws/server.js +3 -3
  39. package/dist/transport/index.cjs +12 -7
  40. package/dist/transport/index.cjs.map +1 -1
  41. package/dist/transport/index.d.cts +6 -6
  42. package/dist/transport/index.d.ts +6 -6
  43. package/dist/transport/index.js +3 -3
  44. package/dist/{wslike-Dng9H1C7.d.ts → wslike-e0b32dd5.d.ts} +1 -1
  45. package/package.json +1 -1
  46. package/dist/adapter-Cuc4JtfV.d.cts +0 -46
  47. package/dist/chunk-2JNVDUMN.js.map +0 -1
  48. package/dist/connection-BF4zg6Qv.d.cts +0 -35
  49. package/dist/index-C9tpZjBN.d.cts +0 -37
  50. package/dist/message-Di94OL80.d.ts +0 -108
  51. package/dist/transport-CCaWx1Rb.d.cts +0 -1566
  52. package/dist/wslike-Dng9H1C7.d.cts +0 -40
  53. /package/dist/{chunk-DKW3GC3M.js.map → chunk-BXKBENJE.js.map} +0 -0
@@ -1,11 +1,11 @@
1
- import { C as ClientTransport, P as ProvidedClientTransportOptions } from '../../../transport-CCaWx1Rb.cjs';
2
- import { T as TransportClientId } from '../../../message-Di94OL80.cjs';
3
- import { W as WebSocketConnection } from '../../../connection-BF4zg6Qv.cjs';
4
- import { W as WsLike } from '../../../wslike-Dng9H1C7.cjs';
1
+ import { C as ClientTransport, P as ProvidedClientTransportOptions } from '../../../services-44be1b6b.js';
2
+ import { T as TransportClientId } from '../../../message-01c3e85a.js';
3
+ import { W as WebSocketConnection } from '../../../connection-098d4aad.js';
4
+ import { W as WsLike } from '../../../wslike-e0b32dd5.js';
5
5
  import '@sinclair/typebox';
6
6
  import '@opentelemetry/api';
7
- import '../../../index-C9tpZjBN.cjs';
8
- import '../../../adapter-Cuc4JtfV.cjs';
7
+ import '../../../index-02554794.js';
8
+ import '../../../adapter-f2b6e211.js';
9
9
 
10
10
  /**
11
11
  * A transport implementation that uses a WebSocket connection with automatic reconnection.
@@ -1,11 +1,11 @@
1
- import { C as ClientTransport, P as ProvidedClientTransportOptions } from '../../../transport-CZb3vdB4.js';
2
- import { T as TransportClientId } from '../../../message-Di94OL80.js';
3
- import { W as WebSocketConnection } from '../../../connection-Donr3JRB.js';
4
- import { W as WsLike } from '../../../wslike-Dng9H1C7.js';
1
+ import { C as ClientTransport, P as ProvidedClientTransportOptions } from '../../../services-44be1b6b.js';
2
+ import { T as TransportClientId } from '../../../message-01c3e85a.js';
3
+ import { W as WebSocketConnection } from '../../../connection-098d4aad.js';
4
+ import { W as WsLike } from '../../../wslike-e0b32dd5.js';
5
5
  import '@sinclair/typebox';
6
6
  import '@opentelemetry/api';
7
- import '../../../index-D8IOd3LG.js';
8
- import '../../../adapter-ChksXKVN.js';
7
+ import '../../../index-02554794.js';
8
+ import '../../../adapter-f2b6e211.js';
9
9
 
10
10
  /**
11
11
  * A transport implementation that uses a WebSocket connection with automatic reconnection.
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  WebSocketConnection
3
- } from "../../../chunk-DKW3GC3M.js";
3
+ } from "../../../chunk-BXKBENJE.js";
4
4
  import {
5
5
  ClientTransport
6
- } from "../../../chunk-2JNVDUMN.js";
6
+ } from "../../../chunk-2WFRHXDZ.js";
7
+ import "../../../chunk-EVAQ2QMB.js";
7
8
  import "../../../chunk-CC7RN7GI.js";
8
- import "../../../chunk-ETZAHFGQ.js";
9
9
 
10
10
  // transport/impls/ws/client.ts
11
11
  var WebSocketClientTransport = class extends ClientTransport {
@@ -302,7 +302,7 @@ var NaiveJsonCodec = {
302
302
  const parsed = JSON.parse(
303
303
  decoder.decode(buff),
304
304
  function reviver(_key, val) {
305
- if (val?.$t) {
305
+ if (val?.$t !== void 0) {
306
306
  return base64ToUint8Array(val.$t);
307
307
  } else {
308
308
  return val;
@@ -654,11 +654,13 @@ var SessionConnecting = class extends IdentifiedSessionWithGracePeriod {
654
654
  this.listeners = props.listeners;
655
655
  this.connPromise.then(
656
656
  (conn) => {
657
- if (this._isConsumed) return;
657
+ if (this._isConsumed)
658
+ return;
658
659
  this.listeners.onConnectionEstablished(conn);
659
660
  },
660
661
  (err) => {
661
- if (this._isConsumed) return;
662
+ if (this._isConsumed)
663
+ return;
662
664
  this.listeners.onConnectionFailed(err);
663
665
  }
664
666
  );
@@ -719,7 +721,7 @@ function coerceErrorString(err) {
719
721
  }
720
722
 
721
723
  // package.json
722
- var version = "0.208.0";
724
+ var version = "0.208.1";
723
725
 
724
726
  // tracing/index.ts
725
727
  function createSessionTelemetryInfo(tracer, sessionId, to, from, propagationCtx) {
@@ -1463,7 +1465,8 @@ var Transport = class {
1463
1465
  * @param message The received message.
1464
1466
  */
1465
1467
  handleMsg(message) {
1466
- if (this.getStatus() !== "open") return;
1468
+ if (this.getStatus() !== "open")
1469
+ return;
1467
1470
  this.eventDispatcher.dispatchEvent("message", message);
1468
1471
  }
1469
1472
  /**
@@ -1551,7 +1554,8 @@ var Transport = class {
1551
1554
  });
1552
1555
  }
1553
1556
  deleteSession(session, options) {
1554
- if (session._isConsumed) return;
1557
+ if (session._isConsumed)
1558
+ return;
1555
1559
  const loggingMetadata = session.loggingMetadata;
1556
1560
  if (loggingMetadata.tags && options?.unhealthy) {
1557
1561
  loggingMetadata.tags.push("unhealthy-session");
@@ -1679,7 +1683,8 @@ var ServerTransport = class extends Transport {
1679
1683
  super.deleteSession(session, options);
1680
1684
  }
1681
1685
  handleConnection(conn) {
1682
- if (this.getStatus() !== "open") return;
1686
+ if (this.getStatus() !== "open")
1687
+ return;
1683
1688
  this.log?.info(`new incoming connection`, {
1684
1689
  ...conn.loggingMetadata,
1685
1690
  clientId: this.clientId