@replit/river 0.13.5 → 0.13.6

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Connection
3
- } from "./chunk-WYHD3FN7.js";
3
+ } from "./chunk-YXVFITRS.js";
4
4
 
5
5
  // transport/impls/ws/connection.ts
6
6
  var WebSocketConnection = class extends Connection {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Connection
3
- } from "./chunk-WYHD3FN7.js";
3
+ } from "./chunk-YXVFITRS.js";
4
4
 
5
5
  // transport/transforms/messageFraming.ts
6
6
  import { Transform } from "node:stream";
@@ -129,11 +129,11 @@ var Session = class {
129
129
  if (ok)
130
130
  return fullMsg.id;
131
131
  log?.info(
132
- `${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
132
+ `${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
133
133
  );
134
134
  } else {
135
135
  log?.info(
136
- `${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection not ready yet`
136
+ `${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection not ready yet`
137
137
  );
138
138
  }
139
139
  return fullMsg.id;
@@ -175,7 +175,7 @@ var Session = class {
175
175
  `${this.from} -- resending ${this.sendBuffer.length} buffered messages`
176
176
  );
177
177
  for (const msg of this.sendBuffer) {
178
- log?.debug(`${this.from} -- resending ${JSON.stringify(msg)}`);
178
+ log?.debug(`${this.from} -- resending ${msg.id} (seq: ${msg.seq})`);
179
179
  const ok = this.connection.send(this.codec.toBuffer(msg));
180
180
  if (!ok) {
181
181
  const msg2 = `${this.from} -- failed to send buffered message to ${this.to} in session (id: ${this.debugId}) (if you hit this code path something is seriously wrong)`;
@@ -237,11 +237,11 @@ var Session = class {
237
237
  if (ok)
238
238
  return fullMsg.id;
239
239
  log?.info(
240
- `${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
240
+ `${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
241
241
  );
242
242
  } else {
243
243
  log?.info(
244
- `${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection not ready yet`
244
+ `${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection not ready yet`
245
245
  );
246
246
  }
247
247
  return fullMsg.id;
@@ -283,7 +283,7 @@ var Session = class {
283
283
  `${this.from} -- resending ${this.sendBuffer.length} buffered messages`
284
284
  );
285
285
  for (const msg of this.sendBuffer) {
286
- log?.debug(`${this.from} -- resending ${JSON.stringify(msg)}`);
286
+ log?.debug(`${this.from} -- resending ${msg.id} (seq: ${msg.seq})`);
287
287
  const ok = this.connection.send(this.codec.toBuffer(msg));
288
288
  if (!ok) {
289
289
  const msg2 = `${this.from} -- failed to send buffered message to ${this.to} in session (id: ${this.debugId}) (if you hit this code path something is seriously wrong)`;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  UdsConnection
3
- } from "../../../chunk-4JFIL3FG.js";
3
+ } from "../../../chunk-WCSTFZOJ.js";
4
4
  import {
5
5
  ClientTransport
6
- } from "../../../chunk-WYHD3FN7.js";
6
+ } from "../../../chunk-YXVFITRS.js";
7
7
  import "../../../chunk-GFRAOY75.js";
8
8
  import {
9
9
  log
@@ -275,11 +275,11 @@ var Session = class {
275
275
  if (ok)
276
276
  return fullMsg.id;
277
277
  log?.info(
278
- `${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
278
+ `${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
279
279
  );
280
280
  } else {
281
281
  log?.info(
282
- `${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection not ready yet`
282
+ `${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection not ready yet`
283
283
  );
284
284
  }
285
285
  return fullMsg.id;
@@ -321,7 +321,7 @@ var Session = class {
321
321
  `${this.from} -- resending ${this.sendBuffer.length} buffered messages`
322
322
  );
323
323
  for (const msg of this.sendBuffer) {
324
- log?.debug(`${this.from} -- resending ${JSON.stringify(msg)}`);
324
+ log?.debug(`${this.from} -- resending ${msg.id} (seq: ${msg.seq})`);
325
325
  const ok = this.connection.send(this.codec.toBuffer(msg));
326
326
  if (!ok) {
327
327
  const msg2 = `${this.from} -- failed to send buffered message to ${this.to} in session (id: ${this.debugId}) (if you hit this code path something is seriously wrong)`;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  UdsConnection
3
- } from "../../../chunk-4JFIL3FG.js";
3
+ } from "../../../chunk-WCSTFZOJ.js";
4
4
  import {
5
5
  ServerTransport
6
- } from "../../../chunk-WYHD3FN7.js";
6
+ } from "../../../chunk-YXVFITRS.js";
7
7
  import "../../../chunk-GFRAOY75.js";
8
8
  import {
9
9
  log
@@ -267,11 +267,11 @@ var Session = class {
267
267
  if (ok)
268
268
  return fullMsg.id;
269
269
  log?.info(
270
- `${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
270
+ `${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
271
271
  );
272
272
  } else {
273
273
  log?.info(
274
- `${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection not ready yet`
274
+ `${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection not ready yet`
275
275
  );
276
276
  }
277
277
  return fullMsg.id;
@@ -313,7 +313,7 @@ var Session = class {
313
313
  `${this.from} -- resending ${this.sendBuffer.length} buffered messages`
314
314
  );
315
315
  for (const msg of this.sendBuffer) {
316
- log?.debug(`${this.from} -- resending ${JSON.stringify(msg)}`);
316
+ log?.debug(`${this.from} -- resending ${msg.id} (seq: ${msg.seq})`);
317
317
  const ok = this.connection.send(this.codec.toBuffer(msg));
318
318
  if (!ok) {
319
319
  const msg2 = `${this.from} -- failed to send buffered message to ${this.to} in session (id: ${this.debugId}) (if you hit this code path something is seriously wrong)`;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  WebSocketConnection
3
- } from "../../../chunk-MSJNWNYI.js";
3
+ } from "../../../chunk-3LGEBL5F.js";
4
4
  import {
5
5
  ClientTransport
6
- } from "../../../chunk-WYHD3FN7.js";
6
+ } from "../../../chunk-YXVFITRS.js";
7
7
  import "../../../chunk-GFRAOY75.js";
8
8
  import {
9
9
  log
@@ -275,11 +275,11 @@ var Session = class {
275
275
  if (ok)
276
276
  return fullMsg.id;
277
277
  log?.info(
278
- `${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
278
+ `${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
279
279
  );
280
280
  } else {
281
281
  log?.info(
282
- `${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection not ready yet`
282
+ `${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection not ready yet`
283
283
  );
284
284
  }
285
285
  return fullMsg.id;
@@ -321,7 +321,7 @@ var Session = class {
321
321
  `${this.from} -- resending ${this.sendBuffer.length} buffered messages`
322
322
  );
323
323
  for (const msg of this.sendBuffer) {
324
- log?.debug(`${this.from} -- resending ${JSON.stringify(msg)}`);
324
+ log?.debug(`${this.from} -- resending ${msg.id} (seq: ${msg.seq})`);
325
325
  const ok = this.connection.send(this.codec.toBuffer(msg));
326
326
  if (!ok) {
327
327
  const msg2 = `${this.from} -- failed to send buffered message to ${this.to} in session (id: ${this.debugId}) (if you hit this code path something is seriously wrong)`;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  WebSocketConnection
3
- } from "../../../chunk-MSJNWNYI.js";
3
+ } from "../../../chunk-3LGEBL5F.js";
4
4
  import {
5
5
  ServerTransport
6
- } from "../../../chunk-WYHD3FN7.js";
6
+ } from "../../../chunk-YXVFITRS.js";
7
7
  import "../../../chunk-GFRAOY75.js";
8
8
  import "../../../chunk-H4BYJELI.js";
9
9
  import "../../../chunk-GZ7HCLLM.js";
@@ -297,11 +297,11 @@ var Session = class {
297
297
  if (ok)
298
298
  return fullMsg.id;
299
299
  log?.info(
300
- `${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
300
+ `${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
301
301
  );
302
302
  } else {
303
303
  log?.info(
304
- `${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection not ready yet`
304
+ `${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection not ready yet`
305
305
  );
306
306
  }
307
307
  return fullMsg.id;
@@ -343,7 +343,7 @@ var Session = class {
343
343
  `${this.from} -- resending ${this.sendBuffer.length} buffered messages`
344
344
  );
345
345
  for (const msg of this.sendBuffer) {
346
- log?.debug(`${this.from} -- resending ${JSON.stringify(msg)}`);
346
+ log?.debug(`${this.from} -- resending ${msg.id} (seq: ${msg.seq})`);
347
347
  const ok = this.connection.send(this.codec.toBuffer(msg));
348
348
  if (!ok) {
349
349
  const msg2 = `${this.from} -- failed to send buffered message to ${this.to} in session (id: ${this.debugId}) (if you hit this code path something is seriously wrong)`;
@@ -5,7 +5,7 @@ import {
5
5
  ServerTransport,
6
6
  Session,
7
7
  Transport
8
- } from "../chunk-WYHD3FN7.js";
8
+ } from "../chunk-YXVFITRS.js";
9
9
  import {
10
10
  OpaqueTransportMessageSchema,
11
11
  TransportMessageSchema
@@ -185,11 +185,11 @@ var Session = class {
185
185
  if (ok)
186
186
  return fullMsg.id;
187
187
  log?.info(
188
- `${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
188
+ `${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
189
189
  );
190
190
  } else {
191
191
  log?.info(
192
- `${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection not ready yet`
192
+ `${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection not ready yet`
193
193
  );
194
194
  }
195
195
  return fullMsg.id;
@@ -231,7 +231,7 @@ var Session = class {
231
231
  `${this.from} -- resending ${this.sendBuffer.length} buffered messages`
232
232
  );
233
233
  for (const msg of this.sendBuffer) {
234
- log?.debug(`${this.from} -- resending ${JSON.stringify(msg)}`);
234
+ log?.debug(`${this.from} -- resending ${msg.id} (seq: ${msg.seq})`);
235
235
  const ok = this.connection.send(this.codec.toBuffer(msg));
236
236
  if (!ok) {
237
237
  const msg2 = `${this.from} -- failed to send buffered message to ${this.to} in session (id: ${this.debugId}) (if you hit this code path something is seriously wrong)`;
@@ -6,7 +6,7 @@ import "../chunk-5IZ2UHWV.js";
6
6
  import {
7
7
  Session,
8
8
  defaultSessionOptions
9
- } from "../chunk-WYHD3FN7.js";
9
+ } from "../chunk-YXVFITRS.js";
10
10
  import {
11
11
  coerceErrorString
12
12
  } from "../chunk-GFRAOY75.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@replit/river",
3
3
  "description": "It's like tRPC but... with JSON Schema Support, duplex streaming and support for service multiplexing. Transport agnostic!",
4
- "version": "0.13.5",
4
+ "version": "0.13.6",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {