@replit/river 0.209.2 → 0.209.4

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 (46) hide show
  1. package/dist/{chunk-L3KNTJU3.js → chunk-MIO5URHT.js} +25 -21
  2. package/dist/chunk-MIO5URHT.js.map +1 -0
  3. package/dist/{chunk-OTL2R22H.js → chunk-SWRTP3YW.js} +12 -5
  4. package/dist/chunk-SWRTP3YW.js.map +1 -0
  5. package/dist/{chunk-DVAIJ57I.js → chunk-VQAPXMIR.js} +24 -15
  6. package/dist/chunk-VQAPXMIR.js.map +1 -0
  7. package/dist/{client-BX3IXUA2.d.cts → client-DXJRow2s.d.cts} +1 -1
  8. package/dist/{client-CBak1h8Q.d.ts → client-Dw0JBBs3.d.ts} +1 -1
  9. package/dist/codec/index.js +2 -2
  10. package/dist/{connection-_eetKnva.d.cts → connection-BWkuQM31.d.cts} +1 -1
  11. package/dist/{connection-zMlysQKs.d.ts → connection-T0wHyOsa.d.ts} +1 -1
  12. package/dist/router/index.cjs +6 -2
  13. package/dist/router/index.cjs.map +1 -1
  14. package/dist/router/index.d.cts +7 -7
  15. package/dist/router/index.d.ts +7 -7
  16. package/dist/router/index.js +1 -1
  17. package/dist/{server-BV7GXuhz.d.cts → server-BDSYa-CO.d.cts} +1 -1
  18. package/dist/{server-B_H1zn-R.d.ts → server-DFOzjvLh.d.ts} +1 -1
  19. package/dist/{services-DtsSIaec.d.ts → services-DEubFUIR.d.ts} +12 -20
  20. package/dist/{services-BIMmk-v4.d.cts → services-GJyw0jKV.d.cts} +12 -20
  21. package/dist/testUtil/index.cjs +15 -6
  22. package/dist/testUtil/index.cjs.map +1 -1
  23. package/dist/testUtil/index.d.cts +4 -4
  24. package/dist/testUtil/index.d.ts +4 -4
  25. package/dist/testUtil/index.js +3 -3
  26. package/dist/transport/impls/ws/client.cjs +25 -9
  27. package/dist/transport/impls/ws/client.cjs.map +1 -1
  28. package/dist/transport/impls/ws/client.d.cts +3 -3
  29. package/dist/transport/impls/ws/client.d.ts +3 -3
  30. package/dist/transport/impls/ws/client.js +3 -3
  31. package/dist/transport/impls/ws/server.cjs +13 -5
  32. package/dist/transport/impls/ws/server.cjs.map +1 -1
  33. package/dist/transport/impls/ws/server.d.cts +3 -3
  34. package/dist/transport/impls/ws/server.d.ts +3 -3
  35. package/dist/transport/impls/ws/server.js +3 -3
  36. package/dist/transport/index.cjs +15 -6
  37. package/dist/transport/index.cjs.map +1 -1
  38. package/dist/transport/index.d.cts +4 -4
  39. package/dist/transport/index.d.ts +4 -4
  40. package/dist/transport/index.js +3 -3
  41. package/dist/{handshake-B3iu79B0.d.cts → transport-CxT7y8Qk.d.cts} +107 -102
  42. package/dist/{handshake-DNinPBA3.d.ts → transport-pdbkDzmJ.d.ts} +107 -102
  43. package/package.json +1 -1
  44. package/dist/chunk-DVAIJ57I.js.map +0 -1
  45. package/dist/chunk-L3KNTJU3.js.map +0 -1
  46. package/dist/chunk-OTL2R22H.js.map +0 -1
@@ -1,7 +1,7 @@
1
- import { C as ClientTransport } from '../../../client-BX3IXUA2.cjs';
1
+ import { C as ClientTransport } from '../../../client-DXJRow2s.cjs';
2
2
  import { c as TransportClientId } from '../../../message-Dlsh5WDF.cjs';
3
- import { b as ProvidedClientTransportOptions } from '../../../handshake-B3iu79B0.cjs';
4
- import { W as WebSocketConnection } from '../../../connection-_eetKnva.cjs';
3
+ import { b as ProvidedClientTransportOptions } from '../../../transport-CxT7y8Qk.cjs';
4
+ import { W as WebSocketConnection } from '../../../connection-BWkuQM31.cjs';
5
5
  import { W as WsLike } from '../../../wslike-Dng9H1C7.cjs';
6
6
  import '@sinclair/typebox';
7
7
  import '@opentelemetry/api';
@@ -1,7 +1,7 @@
1
- import { C as ClientTransport } from '../../../client-CBak1h8Q.js';
1
+ import { C as ClientTransport } from '../../../client-Dw0JBBs3.js';
2
2
  import { c as TransportClientId } from '../../../message-Dlsh5WDF.js';
3
- import { b as ProvidedClientTransportOptions } from '../../../handshake-DNinPBA3.js';
4
- import { W as WebSocketConnection } from '../../../connection-zMlysQKs.js';
3
+ import { b as ProvidedClientTransportOptions } from '../../../transport-pdbkDzmJ.js';
4
+ import { W as WebSocketConnection } from '../../../connection-T0wHyOsa.js';
5
5
  import { W as WsLike } from '../../../wslike-Dng9H1C7.js';
6
6
  import '@sinclair/typebox';
7
7
  import '@opentelemetry/api';
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  WebSocketConnection
3
- } from "../../../chunk-OTL2R22H.js";
3
+ } from "../../../chunk-SWRTP3YW.js";
4
4
  import {
5
5
  ClientTransport
6
- } from "../../../chunk-DVAIJ57I.js";
7
- import "../../../chunk-L3KNTJU3.js";
6
+ } from "../../../chunk-VQAPXMIR.js";
8
7
  import "../../../chunk-CC7RN7GI.js";
8
+ import "../../../chunk-MIO5URHT.js";
9
9
 
10
10
  // transport/impls/ws/client.ts
11
11
  var WebSocketClientTransport = class extends ClientTransport {
@@ -104,6 +104,15 @@ var Connection = class {
104
104
 
105
105
  // transport/impls/ws/connection.ts
106
106
  var WS_HEALTHY_CLOSE_CODE = 1e3;
107
+ var WebSocketCloseError = class extends Error {
108
+ code;
109
+ reason;
110
+ constructor(code, reason) {
111
+ super(`websocket closed with code and reason: ${code} - ${reason}`);
112
+ this.code = code;
113
+ this.reason = reason;
114
+ }
115
+ };
107
116
  var WebSocketConnection = class extends Connection {
108
117
  ws;
109
118
  extras;
@@ -125,9 +134,7 @@ var WebSocketConnection = class extends Connection {
125
134
  };
126
135
  this.ws.onclose = ({ code, reason }) => {
127
136
  if (didError) {
128
- const err = new Error(
129
- `websocket closed with code and reason: ${code} - ${reason}`
130
- );
137
+ const err = new WebSocketCloseError(code, reason);
131
138
  this.onError(err);
132
139
  }
133
140
  this.onClose();
@@ -331,7 +338,8 @@ var defaultConnectionRetryOptions = {
331
338
  maxJitterMs: 200,
332
339
  maxBackoffMs: 32e3,
333
340
  attemptBudgetCapacity: 5,
334
- budgetRestoreIntervalMs: 200
341
+ budgetRestoreIntervalMs: 200,
342
+ isFatalConnectionError: () => false
335
343
  };
336
344
  var defaultClientTransportOptions = {
337
345
  ...defaultTransportOptions,
@@ -719,7 +727,7 @@ function coerceErrorString(err) {
719
727
  }
720
728
 
721
729
  // package.json
722
- var version = "0.209.2";
730
+ var version = "0.209.4";
723
731
 
724
732
  // tracing/index.ts
725
733
  function createSessionTelemetryInfo(tracer, sessionId, to, from, propagationCtx) {