@replit/river 0.17.0 → 0.17.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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Connection
3
- } from "./chunk-LQMPJI3S.js";
3
+ } from "./chunk-F6KWMEPR.js";
4
4
 
5
5
  // transport/transforms/messageFraming.ts
6
6
  import { Transform } from "node:stream";
@@ -188,7 +188,7 @@ var Session = class {
188
188
  log?.error(`${this.from} -- received stale seq ${seq} + 1 < ${this.ack}`);
189
189
  return;
190
190
  }
191
- this.sendBuffer = this.sendBuffer.filter((unacked) => unacked.seq > ack);
191
+ this.sendBuffer = this.sendBuffer.filter((unacked) => unacked.seq >= ack);
192
192
  this.ack = seq + 1;
193
193
  }
194
194
  closeStaleConnection(conn) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Connection
3
- } from "./chunk-LQMPJI3S.js";
3
+ } from "./chunk-F6KWMEPR.js";
4
4
 
5
5
  // transport/impls/ws/connection.ts
6
6
  var WebSocketConnection = class extends Connection {
@@ -238,7 +238,7 @@ var Session = class {
238
238
  log?.error(`${this.from} -- received stale seq ${seq} + 1 < ${this.ack}`);
239
239
  return;
240
240
  }
241
- this.sendBuffer = this.sendBuffer.filter((unacked) => unacked.seq > ack);
241
+ this.sendBuffer = this.sendBuffer.filter((unacked) => unacked.seq >= ack);
242
242
  this.ack = seq + 1;
243
243
  }
244
244
  closeStaleConnection(conn) {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  UdsConnection
3
- } from "../../../chunk-VJRLJ3JU.js";
3
+ } from "../../../chunk-4A7FDC2C.js";
4
4
  import {
5
5
  ClientTransport
6
- } from "../../../chunk-LQMPJI3S.js";
6
+ } from "../../../chunk-F6KWMEPR.js";
7
7
  import "../../../chunk-VH3NGOXQ.js";
8
8
  import {
9
9
  log
@@ -271,7 +271,7 @@ var Session = class {
271
271
  log?.error(`${this.from} -- received stale seq ${seq} + 1 < ${this.ack}`);
272
272
  return;
273
273
  }
274
- this.sendBuffer = this.sendBuffer.filter((unacked) => unacked.seq > ack);
274
+ this.sendBuffer = this.sendBuffer.filter((unacked) => unacked.seq >= ack);
275
275
  this.ack = seq + 1;
276
276
  }
277
277
  closeStaleConnection(conn) {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  UdsConnection
3
- } from "../../../chunk-VJRLJ3JU.js";
3
+ } from "../../../chunk-4A7FDC2C.js";
4
4
  import {
5
5
  ServerTransport
6
- } from "../../../chunk-LQMPJI3S.js";
6
+ } from "../../../chunk-F6KWMEPR.js";
7
7
  import "../../../chunk-VH3NGOXQ.js";
8
8
  import {
9
9
  log
@@ -272,7 +272,7 @@ var Session = class {
272
272
  log?.error(`${this.from} -- received stale seq ${seq} + 1 < ${this.ack}`);
273
273
  return;
274
274
  }
275
- this.sendBuffer = this.sendBuffer.filter((unacked) => unacked.seq > ack);
275
+ this.sendBuffer = this.sendBuffer.filter((unacked) => unacked.seq >= ack);
276
276
  this.ack = seq + 1;
277
277
  }
278
278
  closeStaleConnection(conn) {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  WebSocketConnection
3
- } from "../../../chunk-Y6DLSCKU.js";
3
+ } from "../../../chunk-MSAS5CVJ.js";
4
4
  import {
5
5
  ClientTransport
6
- } from "../../../chunk-LQMPJI3S.js";
6
+ } from "../../../chunk-F6KWMEPR.js";
7
7
  import "../../../chunk-VH3NGOXQ.js";
8
8
  import {
9
9
  log
@@ -271,7 +271,7 @@ var Session = class {
271
271
  log?.error(`${this.from} -- received stale seq ${seq} + 1 < ${this.ack}`);
272
272
  return;
273
273
  }
274
- this.sendBuffer = this.sendBuffer.filter((unacked) => unacked.seq > ack);
274
+ this.sendBuffer = this.sendBuffer.filter((unacked) => unacked.seq >= ack);
275
275
  this.ack = seq + 1;
276
276
  }
277
277
  closeStaleConnection(conn) {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  WebSocketConnection
3
- } from "../../../chunk-Y6DLSCKU.js";
3
+ } from "../../../chunk-MSAS5CVJ.js";
4
4
  import {
5
5
  ServerTransport
6
- } from "../../../chunk-LQMPJI3S.js";
6
+ } from "../../../chunk-F6KWMEPR.js";
7
7
  import "../../../chunk-VH3NGOXQ.js";
8
8
  import "../../../chunk-H4BYJELI.js";
9
9
  import "../../../chunk-GZ7HCLLM.js";
@@ -294,7 +294,7 @@ var Session = class {
294
294
  log?.error(`${this.from} -- received stale seq ${seq} + 1 < ${this.ack}`);
295
295
  return;
296
296
  }
297
- this.sendBuffer = this.sendBuffer.filter((unacked) => unacked.seq > ack);
297
+ this.sendBuffer = this.sendBuffer.filter((unacked) => unacked.seq >= ack);
298
298
  this.ack = seq + 1;
299
299
  }
300
300
  closeStaleConnection(conn) {
@@ -6,7 +6,7 @@ import {
6
6
  ServerTransport,
7
7
  Session,
8
8
  Transport
9
- } from "../chunk-LQMPJI3S.js";
9
+ } from "../chunk-F6KWMEPR.js";
10
10
  import {
11
11
  OpaqueTransportMessageSchema,
12
12
  TransportMessageSchema
@@ -188,7 +188,7 @@ var Session = class {
188
188
  log?.error(`${this.from} -- received stale seq ${seq} + 1 < ${this.ack}`);
189
189
  return;
190
190
  }
191
- this.sendBuffer = this.sendBuffer.filter((unacked) => unacked.seq > ack);
191
+ this.sendBuffer = this.sendBuffer.filter((unacked) => unacked.seq >= ack);
192
192
  this.ack = seq + 1;
193
193
  }
194
194
  closeStaleConnection(conn) {
@@ -6,7 +6,7 @@ import "../chunk-RPIDSIQG.js";
6
6
  import {
7
7
  Session,
8
8
  defaultTransportOptions
9
- } from "../chunk-LQMPJI3S.js";
9
+ } from "../chunk-F6KWMEPR.js";
10
10
  import {
11
11
  coerceErrorString
12
12
  } from "../chunk-VH3NGOXQ.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.17.0",
4
+ "version": "0.17.1",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {