@replit/river 0.26.4 → 0.26.5

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 (36) hide show
  1. package/dist/{chunk-65EMTMCV.js → chunk-7KB7DHFZ.js} +4 -9
  2. package/dist/chunk-7KB7DHFZ.js.map +1 -0
  3. package/dist/{chunk-DS5LF6PS.js → chunk-AZ3ILPXP.js} +5 -5
  4. package/dist/chunk-AZ3ILPXP.js.map +1 -0
  5. package/dist/{chunk-PXRKBNWN.js → chunk-FA2IRWCM.js} +2 -2
  6. package/dist/{chunk-RSCUADHY.js → chunk-IPOUVVKT.js} +3 -3
  7. package/dist/{chunk-HPOR6FST.js → chunk-PZEYFHAB.js} +6 -6
  8. package/dist/chunk-PZEYFHAB.js.map +1 -0
  9. package/dist/{chunk-CYD6GTCU.js → chunk-QEWSUVWV.js} +2 -2
  10. package/dist/{chunk-CYD6GTCU.js.map → chunk-QEWSUVWV.js.map} +1 -1
  11. package/dist/{chunk-42SXIIHP.js → chunk-XRZ52TYH.js} +7 -7
  12. package/dist/chunk-XRZ52TYH.js.map +1 -0
  13. package/dist/router/index.cjs +3 -8
  14. package/dist/router/index.cjs.map +1 -1
  15. package/dist/router/index.d.cts +1 -1
  16. package/dist/router/index.d.ts +1 -1
  17. package/dist/router/index.js +2 -2
  18. package/dist/transport/impls/ws/client.cjs +10 -15
  19. package/dist/transport/impls/ws/client.cjs.map +1 -1
  20. package/dist/transport/impls/ws/client.js +5 -5
  21. package/dist/transport/impls/ws/server.cjs +9 -14
  22. package/dist/transport/impls/ws/server.cjs.map +1 -1
  23. package/dist/transport/impls/ws/server.js +5 -5
  24. package/dist/transport/index.cjs +11 -16
  25. package/dist/transport/index.cjs.map +1 -1
  26. package/dist/transport/index.js +5 -5
  27. package/dist/util/testHelpers.cjs +8 -13
  28. package/dist/util/testHelpers.cjs.map +1 -1
  29. package/dist/util/testHelpers.js +3 -3
  30. package/package.json +1 -1
  31. package/dist/chunk-42SXIIHP.js.map +0 -1
  32. package/dist/chunk-65EMTMCV.js.map +0 -1
  33. package/dist/chunk-DS5LF6PS.js.map +0 -1
  34. package/dist/chunk-HPOR6FST.js.map +0 -1
  35. /package/dist/{chunk-PXRKBNWN.js.map → chunk-FA2IRWCM.js.map} +0 -0
  36. /package/dist/{chunk-RSCUADHY.js.map → chunk-IPOUVVKT.js.map} +0 -0
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  ClientTransport
3
- } from "../chunk-HPOR6FST.js";
3
+ } from "../chunk-PZEYFHAB.js";
4
4
  import {
5
5
  ServerTransport
6
- } from "../chunk-DS5LF6PS.js";
6
+ } from "../chunk-AZ3ILPXP.js";
7
7
  import {
8
8
  Connection,
9
9
  ProtocolError,
10
10
  Transport
11
- } from "../chunk-RSCUADHY.js";
11
+ } from "../chunk-IPOUVVKT.js";
12
12
  import "../chunk-TAH2GVTJ.js";
13
13
  import {
14
14
  SessionState
15
- } from "../chunk-42SXIIHP.js";
15
+ } from "../chunk-XRZ52TYH.js";
16
16
  import {
17
17
  OpaqueTransportMessageSchema,
18
18
  TransportMessageSchema
19
- } from "../chunk-65EMTMCV.js";
19
+ } from "../chunk-7KB7DHFZ.js";
20
20
  import "../chunk-4PVU7J25.js";
21
21
  export {
22
22
  ClientTransport,
@@ -380,10 +380,7 @@ var ControlMessageHandshakeRequestSchema = import_typebox.Type.Object({
380
380
  expectedSessionState: import_typebox.Type.Object({
381
381
  // what the client expects the server to send next
382
382
  nextExpectedSeq: import_typebox.Type.Integer(),
383
- // TODO: remove optional once we know all servers
384
- // are nextSentSeq here
385
- // what the server expects the client to send next
386
- nextSentSeq: import_typebox.Type.Optional(import_typebox.Type.Integer())
383
+ nextSentSeq: import_typebox.Type.Integer()
387
384
  }),
388
385
  metadata: import_typebox.Type.Optional(import_typebox.Type.Unknown())
389
386
  });
@@ -419,9 +416,7 @@ var ControlMessageHandshakeResponseSchema = import_typebox.Type.Object({
419
416
  import_typebox.Type.Object({
420
417
  ok: import_typebox.Type.Literal(false),
421
418
  reason: import_typebox.Type.String(),
422
- // TODO: remove optional once we know all servers
423
- // are sending code here
424
- code: import_typebox.Type.Optional(HandshakeErrorResponseCodes)
419
+ code: HandshakeErrorResponseCodes
425
420
  })
426
421
  ])
427
422
  });
@@ -460,7 +455,7 @@ function Err(error) {
460
455
  var import_api = require("@opentelemetry/api");
461
456
 
462
457
  // package.json
463
- var version = "0.26.4";
458
+ var version = "0.26.5";
464
459
 
465
460
  // tracing/index.ts
466
461
  function createSessionTelemetryInfo(sessionId, to, from, propagationCtx) {
@@ -937,13 +932,13 @@ var SessionConnected = class extends IdentifiedSession {
937
932
  this.conn.addCloseListener(this.listeners.onConnectionClosed);
938
933
  this.conn.addErrorListener(this.listeners.onConnectionErrored);
939
934
  if (this.sendBuffer.length > 0) {
940
- this.log?.debug(
941
- `sending ${this.sendBuffer.length} buffered messages`,
935
+ this.log?.info(
936
+ `sending ${this.sendBuffer.length} buffered messages, starting at seq ${this.nextSeq()}`,
942
937
  this.loggingMetadata
943
938
  );
944
- }
945
- for (const msg of this.sendBuffer) {
946
- this.conn.send(this.options.codec.toBuffer(msg));
939
+ for (const msg of this.sendBuffer) {
940
+ this.conn.send(this.options.codec.toBuffer(msg));
941
+ }
947
942
  }
948
943
  this.isActivelyHeartbeating = false;
949
944
  this.heartbeatHandle = setInterval(() => {