@replit/river 0.208.1 → 0.208.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 (50) hide show
  1. package/dist/{adapter-f2b6e211.d.ts → adapter-ChksXKVN.d.ts} +2 -2
  2. package/dist/adapter-Cuc4JtfV.d.cts +46 -0
  3. package/dist/{chunk-2WFRHXDZ.js → chunk-2OE32RBD.js} +11 -16
  4. package/dist/{chunk-2WFRHXDZ.js.map → chunk-2OE32RBD.js.map} +1 -1
  5. package/dist/{chunk-BXKBENJE.js → chunk-XB663LV7.js} +2 -2
  6. package/dist/{chunk-EVAQ2QMB.js → chunk-XS6CNYUH.js} +21 -25
  7. package/dist/{chunk-EVAQ2QMB.js.map → chunk-XS6CNYUH.js.map} +1 -1
  8. package/dist/codec/index.d.cts +3 -3
  9. package/dist/codec/index.d.ts +3 -3
  10. package/dist/codec/index.js +2 -2
  11. package/dist/connection-BF4zg6Qv.d.cts +35 -0
  12. package/dist/{connection-098d4aad.d.ts → connection-Donr3JRB.d.ts} +4 -4
  13. package/dist/index-C9tpZjBN.d.cts +37 -0
  14. package/dist/{index-02554794.d.ts → index-D8IOd3LG.d.ts} +2 -2
  15. package/dist/logging/index.d.cts +2 -2
  16. package/dist/logging/index.d.ts +2 -2
  17. package/dist/{message-01c3e85a.d.ts → message-Di94OL80.d.cts} +1 -1
  18. package/dist/message-Di94OL80.d.ts +108 -0
  19. package/dist/router/index.cjs +5 -9
  20. package/dist/router/index.cjs.map +1 -1
  21. package/dist/router/index.d.cts +7 -7
  22. package/dist/router/index.d.ts +7 -7
  23. package/dist/router/index.js +1 -1
  24. package/dist/testUtil/index.cjs +7 -13
  25. package/dist/testUtil/index.cjs.map +1 -1
  26. package/dist/testUtil/index.d.cts +5 -5
  27. package/dist/testUtil/index.d.ts +5 -5
  28. package/dist/testUtil/index.js +4 -5
  29. package/dist/testUtil/index.js.map +1 -1
  30. package/dist/transport/impls/ws/client.cjs +5 -9
  31. package/dist/transport/impls/ws/client.cjs.map +1 -1
  32. package/dist/transport/impls/ws/client.d.cts +6 -6
  33. package/dist/transport/impls/ws/client.d.ts +6 -6
  34. package/dist/transport/impls/ws/client.js +3 -3
  35. package/dist/transport/impls/ws/server.cjs +6 -11
  36. package/dist/transport/impls/ws/server.cjs.map +1 -1
  37. package/dist/transport/impls/ws/server.d.cts +6 -6
  38. package/dist/transport/impls/ws/server.d.ts +6 -6
  39. package/dist/transport/impls/ws/server.js +3 -3
  40. package/dist/transport/index.cjs +6 -11
  41. package/dist/transport/index.cjs.map +1 -1
  42. package/dist/transport/index.d.cts +6 -6
  43. package/dist/transport/index.d.ts +6 -6
  44. package/dist/transport/index.js +3 -3
  45. package/dist/transport-CCaWx1Rb.d.cts +1566 -0
  46. package/dist/{services-44be1b6b.d.ts → transport-CZb3vdB4.d.ts} +323 -323
  47. package/dist/{wslike-e0b32dd5.d.ts → wslike-Dng9H1C7.d.cts} +1 -1
  48. package/dist/wslike-Dng9H1C7.d.ts +40 -0
  49. package/package.json +2 -2
  50. /package/dist/{chunk-BXKBENJE.js.map → chunk-XB663LV7.js.map} +0 -0
@@ -1,14 +1,14 @@
1
- import { T as TransportClientId } from '../../../message-01c3e85a.js';
1
+ import { T as TransportClientId } from '../../../message-Di94OL80.cjs';
2
2
  import { WebSocketServer } from 'ws';
3
- import { W as WebSocketConnection } from '../../../connection-098d4aad.js';
4
- import { W as WsLike } from '../../../wslike-e0b32dd5.js';
3
+ import { W as WebSocketConnection } from '../../../connection-BF4zg6Qv.cjs';
4
+ import { W as WsLike } from '../../../wslike-Dng9H1C7.cjs';
5
5
  import { ServerTransport } from '../../index.cjs';
6
- import { a as ProvidedServerTransportOptions } from '../../../services-44be1b6b.js';
6
+ import { a as ProvidedServerTransportOptions } from '../../../transport-CCaWx1Rb.cjs';
7
7
  import { IncomingMessage } from 'http';
8
8
  import '@sinclair/typebox';
9
9
  import '@opentelemetry/api';
10
- import '../../../index-02554794.js';
11
- import '../../../adapter-f2b6e211.js';
10
+ import '../../../index-C9tpZjBN.cjs';
11
+ import '../../../adapter-Cuc4JtfV.cjs';
12
12
 
13
13
  declare class WebSocketServerTransport extends ServerTransport<WebSocketConnection> {
14
14
  wss: WebSocketServer;
@@ -1,14 +1,14 @@
1
- import { T as TransportClientId } from '../../../message-01c3e85a.js';
1
+ import { T as TransportClientId } from '../../../message-Di94OL80.js';
2
2
  import { WebSocketServer } from 'ws';
3
- import { W as WebSocketConnection } from '../../../connection-098d4aad.js';
4
- import { W as WsLike } from '../../../wslike-e0b32dd5.js';
3
+ import { W as WebSocketConnection } from '../../../connection-Donr3JRB.js';
4
+ import { W as WsLike } from '../../../wslike-Dng9H1C7.js';
5
5
  import { ServerTransport } from '../../index.js';
6
- import { a as ProvidedServerTransportOptions } from '../../../services-44be1b6b.js';
6
+ import { a as ProvidedServerTransportOptions } from '../../../transport-CZb3vdB4.js';
7
7
  import { IncomingMessage } from 'http';
8
8
  import '@sinclair/typebox';
9
9
  import '@opentelemetry/api';
10
- import '../../../index-02554794.js';
11
- import '../../../adapter-f2b6e211.js';
10
+ import '../../../index-D8IOd3LG.js';
11
+ import '../../../adapter-ChksXKVN.js';
12
12
 
13
13
  declare class WebSocketServerTransport extends ServerTransport<WebSocketConnection> {
14
14
  wss: WebSocketServer;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  WebSocketConnection
3
- } from "../../../chunk-BXKBENJE.js";
3
+ } from "../../../chunk-XB663LV7.js";
4
4
  import {
5
5
  ServerTransport
6
- } from "../../../chunk-2WFRHXDZ.js";
7
- import "../../../chunk-EVAQ2QMB.js";
6
+ } from "../../../chunk-2OE32RBD.js";
8
7
  import "../../../chunk-CC7RN7GI.js";
8
+ import "../../../chunk-XS6CNYUH.js";
9
9
 
10
10
  // transport/impls/ws/server.ts
11
11
  function cleanHeaders(headers) {
@@ -434,13 +434,11 @@ var SessionConnecting = class extends IdentifiedSessionWithGracePeriod {
434
434
  this.listeners = props.listeners;
435
435
  this.connPromise.then(
436
436
  (conn) => {
437
- if (this._isConsumed)
438
- return;
437
+ if (this._isConsumed) return;
439
438
  this.listeners.onConnectionEstablished(conn);
440
439
  },
441
440
  (err) => {
442
- if (this._isConsumed)
443
- return;
441
+ if (this._isConsumed) return;
444
442
  this.listeners.onConnectionFailed(err);
445
443
  }
446
444
  );
@@ -642,7 +640,7 @@ function coerceErrorString(err) {
642
640
  }
643
641
 
644
642
  // package.json
645
- var version = "0.208.1";
643
+ var version = "0.208.2";
646
644
 
647
645
  // tracing/index.ts
648
646
  function getPropagationContext(ctx) {
@@ -1394,8 +1392,7 @@ var Transport = class {
1394
1392
  * @param message The received message.
1395
1393
  */
1396
1394
  handleMsg(message) {
1397
- if (this.getStatus() !== "open")
1398
- return;
1395
+ if (this.getStatus() !== "open") return;
1399
1396
  this.eventDispatcher.dispatchEvent("message", message);
1400
1397
  }
1401
1398
  /**
@@ -1483,8 +1480,7 @@ var Transport = class {
1483
1480
  });
1484
1481
  }
1485
1482
  deleteSession(session, options) {
1486
- if (session._isConsumed)
1487
- return;
1483
+ if (session._isConsumed) return;
1488
1484
  const loggingMetadata = session.loggingMetadata;
1489
1485
  if (loggingMetadata.tags && options?.unhealthy) {
1490
1486
  loggingMetadata.tags.push("unhealthy-session");
@@ -2062,8 +2058,7 @@ var ServerTransport = class extends Transport {
2062
2058
  super.deleteSession(session, options);
2063
2059
  }
2064
2060
  handleConnection(conn) {
2065
- if (this.getStatus() !== "open")
2066
- return;
2061
+ if (this.getStatus() !== "open") return;
2067
2062
  this.log?.info(`new incoming connection`, {
2068
2063
  ...conn.loggingMetadata,
2069
2064
  clientId: this.clientId