@voltro/plugin-queue 0.69.1 → 0.71.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 (3) hide show
  1. package/CHANGELOG.md +1369 -111
  2. package/dist/index.js +4 -2
  3. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -25,7 +25,7 @@ var f = Symbol.for("@voltro/plugin-queue:consumers"), p = () => {
25
25
  };
26
26
  }, y = (e, t, n = 1) => {
27
27
  e[t] = (e[t] ?? 0) + n;
28
- }, b = a.counter("voltro_queue_consumed_total", { description: "Messages a consumer finished with, by topic and outcome (ok | dead-lettered)." }), x = a.counter("voltro_queue_retries_total", { description: "In-process handler retries, by topic. A retry BLOCKS its partition." }), S = a.counter("voltro_queue_produced_total", { description: "Messages produced through the outbox bridge, by topic." }), C = a.gauge("voltro_queue_lag_messages", { description: "Messages between the offset just picked up and the partition high watermark, by topic and partition. Sampled at pickup; holds its last value for an idle or revoked partition." }), w = [], T = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map(), k = (e, t, n) => {
28
+ }, b = a.counter("voltro_queue_consumed_total", { description: "Messages a consumer finished with, by topic and outcome (ok | dead-lettered)." }), x = a.counter("voltro_queue_retries_total", { description: "In-process handler retries, by topic. A retry BLOCKS its partition." }), S = a.counter("voltro_queue_produced_total", { description: "Messages produced through the outbox bridge and QueueService, by topic." }), C = a.gauge("voltro_queue_lag_messages", { description: "Messages between the offset just picked up and the partition high watermark, by topic and partition. Sampled at pickup; holds its last value for an idle or revoked partition." }), w = [], T = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map(), D = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map(), k = (e, t, n) => {
29
29
  let r = e.get(t);
30
30
  if (r !== void 0) return r;
31
31
  let i = n();
@@ -293,7 +293,9 @@ var f = Symbol.for("@voltro/plugin-queue:consumers"), p = () => {
293
293
  baseName: "queue",
294
294
  description: "Queue interop — consume and produce against an existing Kafka: Schema-decoded consumers (at-least-once, serial per partition, retry + dead-letter), batched producing via a handler service or transactionally through the outbox, and a kafkaSink for plugin-cdc-out.",
295
295
  permissions: a,
296
- services: i.succeed(U, { produce: (e, t) => r.produce(e, t) }),
296
+ services: i.succeed(U, { produce: async (e, t) => {
297
+ await r.produce(e, t), N(e, t.length);
298
+ } }),
297
299
  bindDataStore: (e) => {
298
300
  c.current = e;
299
301
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voltro/plugin-queue",
3
- "version": "0.69.1",
3
+ "version": "0.71.0",
4
4
  "description": "Queue interop — consume and produce against an existing Kafka: Schema-decoded consumers via defineQueueConsumer (*.consumer.ts; at-least-once, serial per partition, retry + dead-letter), batched producing via QueueService or transactionally through the outbox (queueOutboxHandler), and a kafkaSink for plugin-cdc-out.",
5
5
  "keywords": [
6
6
  "voltro",
@@ -33,9 +33,9 @@
33
33
  "node": ">=24.0.0"
34
34
  },
35
35
  "dependencies": {
36
- "@voltro/database": "0.69.1",
37
- "@voltro/protocol": "0.69.1",
38
- "@voltro/runtime": "0.69.1",
36
+ "@voltro/database": "0.71.0",
37
+ "@voltro/protocol": "0.71.0",
38
+ "@voltro/runtime": "0.71.0",
39
39
  "kafkajs": "^2.2.4"
40
40
  },
41
41
  "peerDependencies": {