@replit/river 0.201.0 → 0.203.0

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 (44) hide show
  1. package/dist/{chunk-UBUD2LMZ.js → chunk-D5EIDBUT.js} +3 -3
  2. package/dist/{chunk-OZ3ITXW5.js → chunk-DGT3MPD4.js} +13 -3
  3. package/dist/chunk-DGT3MPD4.js.map +1 -0
  4. package/dist/{chunk-PJ4GJ5CU.js → chunk-FG22HHCY.js} +11 -4
  5. package/dist/chunk-FG22HHCY.js.map +1 -0
  6. package/dist/{chunk-7IUEEQP7.js → chunk-SZHNMLKC.js} +2 -2
  7. package/dist/{chunk-7IUEEQP7.js.map → chunk-SZHNMLKC.js.map} +1 -1
  8. package/dist/{chunk-52DVJUVZ.js → chunk-XBPEUVWN.js} +2 -2
  9. package/dist/{client-a32692b0.d.ts → client-5d2e41a3.d.ts} +7 -1
  10. package/dist/{connection-48d021ca.d.ts → connection-11a4af0f.d.ts} +1 -1
  11. package/dist/{context-8d263a7f.d.ts → context-d6dd8a1a.d.ts} +14 -0
  12. package/dist/router/index.cjs +27 -9
  13. package/dist/router/index.cjs.map +1 -1
  14. package/dist/router/index.d.cts +9 -8
  15. package/dist/router/index.d.ts +9 -8
  16. package/dist/router/index.js +27 -9
  17. package/dist/router/index.js.map +1 -1
  18. package/dist/{server-48d90a77.d.ts → server-e46399f9.d.ts} +1 -1
  19. package/dist/{services-e71ea921.d.ts → services-56cbea0d.d.ts} +9 -4
  20. package/dist/testUtil/index.cjs +20 -3
  21. package/dist/testUtil/index.cjs.map +1 -1
  22. package/dist/testUtil/index.d.cts +5 -5
  23. package/dist/testUtil/index.d.ts +5 -5
  24. package/dist/testUtil/index.js +4 -4
  25. package/dist/transport/impls/ws/client.cjs +20 -3
  26. package/dist/transport/impls/ws/client.cjs.map +1 -1
  27. package/dist/transport/impls/ws/client.d.cts +3 -3
  28. package/dist/transport/impls/ws/client.d.ts +3 -3
  29. package/dist/transport/impls/ws/client.js +4 -4
  30. package/dist/transport/impls/ws/server.cjs +10 -3
  31. package/dist/transport/impls/ws/server.cjs.map +1 -1
  32. package/dist/transport/impls/ws/server.d.cts +3 -3
  33. package/dist/transport/impls/ws/server.d.ts +3 -3
  34. package/dist/transport/impls/ws/server.js +4 -4
  35. package/dist/transport/index.cjs +20 -3
  36. package/dist/transport/index.cjs.map +1 -1
  37. package/dist/transport/index.d.cts +4 -4
  38. package/dist/transport/index.d.ts +4 -4
  39. package/dist/transport/index.js +4 -4
  40. package/package.json +1 -1
  41. package/dist/chunk-OZ3ITXW5.js.map +0 -1
  42. package/dist/chunk-PJ4GJ5CU.js.map +0 -1
  43. /package/dist/{chunk-UBUD2LMZ.js.map → chunk-D5EIDBUT.js.map} +0 -0
  44. /package/dist/{chunk-52DVJUVZ.js.map → chunk-XBPEUVWN.js.map} +0 -0
@@ -1,7 +1,7 @@
1
- import { C as ClientTransport } from '../../../client-a32692b0.js';
1
+ import { C as ClientTransport } from '../../../client-5d2e41a3.js';
2
2
  import { c as TransportClientId } from '../../../message-3def9ded.js';
3
- import { b as ProvidedClientTransportOptions } from '../../../context-8d263a7f.js';
4
- import { W as WebSocketConnection } from '../../../connection-48d021ca.js';
3
+ import { b as ProvidedClientTransportOptions } from '../../../context-d6dd8a1a.js';
4
+ import { W as WebSocketConnection } from '../../../connection-11a4af0f.js';
5
5
  import { W as WsLike } from '../../../wslike-e0b32dd5.js';
6
6
  import '@sinclair/typebox/value';
7
7
  import '@sinclair/typebox';
@@ -1,7 +1,7 @@
1
- import { C as ClientTransport } from '../../../client-a32692b0.js';
1
+ import { C as ClientTransport } from '../../../client-5d2e41a3.js';
2
2
  import { c as TransportClientId } from '../../../message-3def9ded.js';
3
- import { b as ProvidedClientTransportOptions } from '../../../context-8d263a7f.js';
4
- import { W as WebSocketConnection } from '../../../connection-48d021ca.js';
3
+ import { b as ProvidedClientTransportOptions } from '../../../context-d6dd8a1a.js';
4
+ import { W as WebSocketConnection } from '../../../connection-11a4af0f.js';
5
5
  import { W as WsLike } from '../../../wslike-e0b32dd5.js';
6
6
  import '@sinclair/typebox/value';
7
7
  import '@sinclair/typebox';
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  ClientTransport
3
- } from "../../../chunk-OZ3ITXW5.js";
3
+ } from "../../../chunk-DGT3MPD4.js";
4
4
  import {
5
5
  WebSocketConnection
6
- } from "../../../chunk-52DVJUVZ.js";
7
- import "../../../chunk-PJ4GJ5CU.js";
8
- import "../../../chunk-7IUEEQP7.js";
6
+ } from "../../../chunk-XBPEUVWN.js";
7
+ import "../../../chunk-FG22HHCY.js";
8
+ import "../../../chunk-SZHNMLKC.js";
9
9
  import "../../../chunk-LHH5LQ7C.js";
10
10
  import "../../../chunk-AJGIY2UB.js";
11
11
 
@@ -449,6 +449,14 @@ var StateMachineState = class {
449
449
  * and we've moved on to another state
450
450
  */
451
451
  _isConsumed;
452
+ /**
453
+ * Cleanup this state machine state and mark it as consumed.
454
+ * After calling close, it is an error to access any properties on the state.
455
+ * You should never need to call this as a consumer.
456
+ *
457
+ * If you're looking to close the session from the client,
458
+ * use `.hardDisconnect` on the client transport.
459
+ */
452
460
  close() {
453
461
  this._handleClose();
454
462
  }
@@ -503,9 +511,8 @@ var CommonSession = class extends StateMachineState {
503
511
  parseMsg(msg) {
504
512
  const parsedMsg = this.options.codec.fromBuffer(msg);
505
513
  if (parsedMsg === null) {
506
- const decodedBuffer = new TextDecoder().decode(Buffer.from(msg));
507
514
  this.log?.error(
508
- `received malformed msg: ${decodedBuffer}`,
515
+ `received malformed msg: ${Buffer.from(msg).toString("base64")}`,
509
516
  this.loggingMetadata
510
517
  );
511
518
  return null;
@@ -685,7 +692,7 @@ var SessionNoConnection = class extends IdentifiedSessionWithGracePeriod {
685
692
  var import_api = require("@opentelemetry/api");
686
693
 
687
694
  // package.json
688
- var version = "0.201.0";
695
+ var version = "0.203.0";
689
696
 
690
697
  // tracing/index.ts
691
698
  function createSessionTelemetryInfo(sessionId, to, from, propagationCtx) {