@replit/river 0.205.2 → 0.207.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 (46) hide show
  1. package/dist/{chunk-FCN2JPOE.js → chunk-7LMZNSVC.js} +2 -2
  2. package/dist/{chunk-BYA34LH3.js → chunk-BCCZA7SX.js} +14 -27
  3. package/dist/chunk-BCCZA7SX.js.map +1 -0
  4. package/dist/{chunk-W337YQLT.js → chunk-CRD3HDVN.js} +3 -3
  5. package/dist/{chunk-TP4OJAKI.js → chunk-I27WBSMZ.js} +3 -3
  6. package/dist/{chunk-FTOB2HQN.js → chunk-QMAVXV4Z.js} +8 -3
  7. package/dist/chunk-QMAVXV4Z.js.map +1 -0
  8. package/dist/{connection-8ed39cb5.d.ts → connection-933c87b2.d.ts} +2 -2
  9. package/dist/logging/index.d.cts +1 -1
  10. package/dist/logging/index.d.ts +1 -1
  11. package/dist/{message-865bba35.d.ts → message-ffacb98a.d.ts} +1 -1
  12. package/dist/router/index.cjs +15 -29
  13. package/dist/router/index.cjs.map +1 -1
  14. package/dist/router/index.d.cts +5 -8
  15. package/dist/router/index.d.ts +5 -8
  16. package/dist/router/index.js +2 -4
  17. package/dist/{services-036dcc97.d.ts → services-4cd29829.d.ts} +731 -16
  18. package/dist/testUtil/index.cjs +7 -2
  19. package/dist/testUtil/index.cjs.map +1 -1
  20. package/dist/testUtil/index.d.cts +3 -5
  21. package/dist/testUtil/index.d.ts +3 -5
  22. package/dist/testUtil/index.js +4 -4
  23. package/dist/transport/impls/ws/client.cjs +7 -2
  24. package/dist/transport/impls/ws/client.cjs.map +1 -1
  25. package/dist/transport/impls/ws/client.d.cts +3 -4
  26. package/dist/transport/impls/ws/client.d.ts +3 -4
  27. package/dist/transport/impls/ws/client.js +4 -4
  28. package/dist/transport/impls/ws/server.cjs +7 -2
  29. package/dist/transport/impls/ws/server.cjs.map +1 -1
  30. package/dist/transport/impls/ws/server.d.cts +4 -4
  31. package/dist/transport/impls/ws/server.d.ts +4 -4
  32. package/dist/transport/impls/ws/server.js +4 -4
  33. package/dist/transport/index.cjs +7 -2
  34. package/dist/transport/index.cjs.map +1 -1
  35. package/dist/transport/index.d.cts +72 -5
  36. package/dist/transport/index.d.ts +72 -5
  37. package/dist/transport/index.js +4 -4
  38. package/package.json +1 -1
  39. package/dist/chunk-BYA34LH3.js.map +0 -1
  40. package/dist/chunk-FTOB2HQN.js.map +0 -1
  41. package/dist/client-8ab60722.d.ts +0 -54
  42. package/dist/context-2c4bb66b.d.ts +0 -670
  43. package/dist/server-dc261419.d.ts +0 -70
  44. /package/dist/{chunk-FCN2JPOE.js.map → chunk-7LMZNSVC.js.map} +0 -0
  45. /package/dist/{chunk-W337YQLT.js.map → chunk-CRD3HDVN.js.map} +0 -0
  46. /package/dist/{chunk-TP4OJAKI.js.map → chunk-I27WBSMZ.js.map} +0 -0
@@ -1,7 +1,6 @@
1
- import { C as ClientTransport } from '../../../client-8ab60722.js';
2
- import { c as TransportClientId } from '../../../message-865bba35.js';
3
- import { b as ProvidedClientTransportOptions } from '../../../context-2c4bb66b.js';
4
- import { W as WebSocketConnection } from '../../../connection-8ed39cb5.js';
1
+ import { C as ClientTransport, P as ProvidedClientTransportOptions } from '../../../services-4cd29829.js';
2
+ import { T as TransportClientId } from '../../../message-ffacb98a.js';
3
+ import { W as WebSocketConnection } from '../../../connection-933c87b2.js';
5
4
  import { W as WsLike } from '../../../wslike-e0b32dd5.js';
6
5
  import '@sinclair/typebox';
7
6
  import '@opentelemetry/api';
@@ -1,7 +1,6 @@
1
- import { C as ClientTransport } from '../../../client-8ab60722.js';
2
- import { c as TransportClientId } from '../../../message-865bba35.js';
3
- import { b as ProvidedClientTransportOptions } from '../../../context-2c4bb66b.js';
4
- import { W as WebSocketConnection } from '../../../connection-8ed39cb5.js';
1
+ import { C as ClientTransport, P as ProvidedClientTransportOptions } from '../../../services-4cd29829.js';
2
+ import { T as TransportClientId } from '../../../message-ffacb98a.js';
3
+ import { W as WebSocketConnection } from '../../../connection-933c87b2.js';
5
4
  import { W as WsLike } from '../../../wslike-e0b32dd5.js';
6
5
  import '@sinclair/typebox';
7
6
  import '@opentelemetry/api';
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ClientTransport
3
- } from "../../../chunk-W337YQLT.js";
3
+ } from "../../../chunk-CRD3HDVN.js";
4
4
  import {
5
5
  WebSocketConnection
6
- } from "../../../chunk-FCN2JPOE.js";
7
- import "../../../chunk-FTOB2HQN.js";
8
- import "../../../chunk-BYA34LH3.js";
6
+ } from "../../../chunk-7LMZNSVC.js";
7
+ import "../../../chunk-QMAVXV4Z.js";
8
+ import "../../../chunk-BCCZA7SX.js";
9
9
  import "../../../chunk-CC7RN7GI.js";
10
10
  import "../../../chunk-AJGIY2UB.js";
11
11
 
@@ -608,6 +608,9 @@ var IdentifiedSession = class extends CommonSession {
608
608
  return metadata;
609
609
  }
610
610
  constructMsg(partialMsg) {
611
+ if (this._isConsumed) {
612
+ throw new Error(ERR_CONSUMED);
613
+ }
611
614
  const msg = {
612
615
  ...partialMsg,
613
616
  id: generateId(),
@@ -737,7 +740,7 @@ function coerceErrorString(err) {
737
740
  }
738
741
 
739
742
  // package.json
740
- var version = "0.205.2";
743
+ var version = "0.207.1";
741
744
 
742
745
  // tracing/index.ts
743
746
  function createSessionTelemetryInfo(tracer, sessionId, to, from, propagationCtx) {
@@ -1020,7 +1023,9 @@ var SessionConnected = class extends IdentifiedSession {
1020
1023
  transportMessage: parsedMsg
1021
1024
  });
1022
1025
  if (!this.isActivelyHeartbeating) {
1023
- this.sendHeartbeat();
1026
+ void Promise.resolve().then(() => {
1027
+ this.sendHeartbeat();
1028
+ });
1024
1029
  }
1025
1030
  };
1026
1031
  _handleStateExit() {