@sjawhar/pi-envoy 16.39.0 → 16.40.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.
package/dist/dispatch.js CHANGED
@@ -26250,7 +26250,8 @@ var DeliveryAnswerWireSchema = discriminatedUnion("mode", [
26250
26250
  mode: literal("consumer"),
26251
26251
  subject: string2().min(1),
26252
26252
  stream_id: string2(),
26253
- gap: boolean2()
26253
+ gap: boolean2(),
26254
+ consumer_start: number2().int().nonnegative().optional()
26254
26255
  }),
26255
26256
  object({ mode: literal("core"), reason: string2() })
26256
26257
  ]);
package/dist/envoy.js CHANGED
@@ -38020,7 +38020,8 @@ var DeliveryAnswerWireSchema = discriminatedUnion("mode", [
38020
38020
  mode: literal("consumer"),
38021
38021
  subject: string2().min(1),
38022
38022
  stream_id: string2(),
38023
- gap: boolean2()
38023
+ gap: boolean2(),
38024
+ consumer_start: number2().int().nonnegative().optional()
38024
38025
  }),
38025
38026
  object({ mode: literal("core"), reason: string2() })
38026
38027
  ]);
@@ -39670,6 +39671,9 @@ function createConsumerDelivery(options) {
39670
39671
  tellReplacedResume(answer.stream_id);
39671
39672
  switchStream(answer.stream_id);
39672
39673
  }
39674
+ const floor = (answer.consumer_start ?? 0) - 1;
39675
+ if (answer.stream_id === streamID && floor > (written ?? -1))
39676
+ written = floor;
39673
39677
  if (answer.gap) {
39674
39678
  tellGap("retention_gap");
39675
39679
  gapTold = true;
@@ -42693,7 +42697,7 @@ var import_nats2 = __toESM(require_mod4(), 1);
42693
42697
 
42694
42698
  // package.json
42695
42699
  var name = "@sjawhar/pi-envoy";
42696
- var version2 = "16.39.0";
42700
+ var version2 = "16.40.0";
42697
42701
  var package_default = {
42698
42702
  name,
42699
42703
  version: version2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sjawhar/pi-envoy",
3
- "version": "16.39.0",
3
+ "version": "16.40.0",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "omp": {