@replit/river 0.209.3 → 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-EHTVQM2C.js → chunk-MIO5URHT.js} +2 -2
  2. package/dist/chunk-MIO5URHT.js.map +1 -0
  3. package/dist/{chunk-JRBDMLR3.js → chunk-SWRTP3YW.js} +12 -5
  4. package/dist/chunk-SWRTP3YW.js.map +1 -0
  5. package/dist/{chunk-I24PIZXW.js → chunk-VQAPXMIR.js} +16 -7
  6. package/dist/chunk-VQAPXMIR.js.map +1 -0
  7. package/dist/{client-aETS93z1.d.cts → client-DXJRow2s.d.cts} +1 -1
  8. package/dist/{client-BzJwq-hg.d.ts → client-Dw0JBBs3.d.ts} +1 -1
  9. package/dist/codec/index.js +2 -2
  10. package/dist/{connection-hUWlS-hg.d.cts → connection-BWkuQM31.d.cts} +1 -1
  11. package/dist/{connection-b1wd5XrC.d.ts → connection-T0wHyOsa.d.ts} +1 -1
  12. package/dist/router/index.cjs +1 -1
  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-BBgDVOzk.d.cts → server-BDSYa-CO.d.cts} +1 -1
  18. package/dist/{server-DZ0Yzmpf.d.ts → server-DFOzjvLh.d.ts} +1 -1
  19. package/dist/{services-DYik59tk.d.ts → services-DEubFUIR.d.ts} +4 -4
  20. package/dist/{services-C53K219K.d.cts → services-GJyw0jKV.d.cts} +4 -4
  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 +2 -2
  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 +3 -3
  39. package/dist/transport/index.d.ts +3 -3
  40. package/dist/transport/index.js +2 -2
  41. package/dist/{transport-CxjUaGhi.d.cts → transport-CxT7y8Qk.d.cts} +5 -0
  42. package/dist/{transport-DwEB67zY.d.ts → transport-pdbkDzmJ.d.ts} +5 -0
  43. package/package.json +1 -1
  44. package/dist/chunk-EHTVQM2C.js.map +0 -1
  45. package/dist/chunk-I24PIZXW.js.map +0 -1
  46. package/dist/chunk-JRBDMLR3.js.map +0 -1
@@ -1,9 +1,9 @@
1
1
  import { c as TransportClientId } from '../../../message-Dlsh5WDF.cjs';
2
2
  import { WebSocketServer } from 'ws';
3
- import { W as WebSocketConnection } from '../../../connection-hUWlS-hg.cjs';
3
+ import { W as WebSocketConnection } from '../../../connection-BWkuQM31.cjs';
4
4
  import { W as WsLike } from '../../../wslike-Dng9H1C7.cjs';
5
- import { S as ServerTransport } from '../../../server-BBgDVOzk.cjs';
6
- import { c as ProvidedServerTransportOptions } from '../../../transport-CxjUaGhi.cjs';
5
+ import { S as ServerTransport } from '../../../server-BDSYa-CO.cjs';
6
+ import { c as ProvidedServerTransportOptions } from '../../../transport-CxT7y8Qk.cjs';
7
7
  import { IncomingMessage } from 'http';
8
8
  import { TSchema } from '@sinclair/typebox';
9
9
  import '@opentelemetry/api';
@@ -1,9 +1,9 @@
1
1
  import { c as TransportClientId } from '../../../message-Dlsh5WDF.js';
2
2
  import { WebSocketServer } from 'ws';
3
- import { W as WebSocketConnection } from '../../../connection-b1wd5XrC.js';
3
+ import { W as WebSocketConnection } from '../../../connection-T0wHyOsa.js';
4
4
  import { W as WsLike } from '../../../wslike-Dng9H1C7.js';
5
- import { S as ServerTransport } from '../../../server-DZ0Yzmpf.js';
6
- import { c as ProvidedServerTransportOptions } from '../../../transport-DwEB67zY.js';
5
+ import { S as ServerTransport } from '../../../server-DFOzjvLh.js';
6
+ import { c as ProvidedServerTransportOptions } from '../../../transport-pdbkDzmJ.js';
7
7
  import { IncomingMessage } from 'http';
8
8
  import { TSchema } from '@sinclair/typebox';
9
9
  import '@opentelemetry/api';
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  WebSocketConnection
3
- } from "../../../chunk-JRBDMLR3.js";
3
+ } from "../../../chunk-SWRTP3YW.js";
4
4
  import {
5
5
  ServerTransport
6
- } from "../../../chunk-I24PIZXW.js";
6
+ } from "../../../chunk-VQAPXMIR.js";
7
7
  import "../../../chunk-CC7RN7GI.js";
8
- import "../../../chunk-EHTVQM2C.js";
8
+ import "../../../chunk-MIO5URHT.js";
9
9
 
10
10
  // transport/impls/ws/server.ts
11
11
  function cleanHeaders(headers) {
@@ -197,7 +197,8 @@ var defaultConnectionRetryOptions = {
197
197
  maxJitterMs: 200,
198
198
  maxBackoffMs: 32e3,
199
199
  attemptBudgetCapacity: 5,
200
- budgetRestoreIntervalMs: 200
200
+ budgetRestoreIntervalMs: 200,
201
+ isFatalConnectionError: () => false
201
202
  };
202
203
  var defaultClientTransportOptions = {
203
204
  ...defaultTransportOptions,
@@ -640,7 +641,7 @@ function coerceErrorString(err) {
640
641
  }
641
642
 
642
643
  // package.json
643
- var version = "0.209.3";
644
+ var version = "0.209.4";
644
645
 
645
646
  // tracing/index.ts
646
647
  function getPropagationContext(ctx) {
@@ -1817,10 +1818,18 @@ var ClientTransport = class extends Transport {
1817
1818
  const connectedSession = ClientSessionStateGraph.transition.HandshakingToConnected(session, {
1818
1819
  onConnectionErrored: (err) => {
1819
1820
  const errStr = coerceErrorString(err);
1820
- this.log?.warn(
1821
- `connection to ${connectedSession.to} errored: ${errStr}`,
1822
- connectedSession.loggingMetadata
1823
- );
1821
+ if (err instanceof Error && this.options.isFatalConnectionError(err)) {
1822
+ this.log?.warn(
1823
+ `connection to ${connectedSession.to} fatally errored: ${errStr}`,
1824
+ connectedSession.loggingMetadata
1825
+ );
1826
+ this.reconnectOnConnectionDrop = false;
1827
+ } else {
1828
+ this.log?.warn(
1829
+ `connection to ${connectedSession.to} errored: ${errStr}`,
1830
+ connectedSession.loggingMetadata
1831
+ );
1832
+ }
1824
1833
  },
1825
1834
  onConnectionClosed: () => {
1826
1835
  this.log?.info(