@crossdelta/cloudevents 0.7.5 → 0.7.7
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/index.cjs +3 -3
- package/dist/index.js +3 -3
- package/package.json +6 -5
package/dist/index.cjs
CHANGED
|
@@ -2193,7 +2193,7 @@ function cloudEvents(options = {}) {
|
|
|
2193
2193
|
// package.json
|
|
2194
2194
|
var package_default = {
|
|
2195
2195
|
name: "@crossdelta/cloudevents",
|
|
2196
|
-
version: "0.7.
|
|
2196
|
+
version: "0.7.7",
|
|
2197
2197
|
description: "CloudEvents toolkit for TypeScript - Zod validation, handler discovery, NATS JetStream & Core"};
|
|
2198
2198
|
|
|
2199
2199
|
// src/plugin.ts
|
|
@@ -2789,8 +2789,8 @@ async function consumeNatsEvents(options) {
|
|
|
2789
2789
|
...user && pass ? { user, pass } : {}
|
|
2790
2790
|
});
|
|
2791
2791
|
logger.info(`[${name}] connected to NATS: ${servers}${user ? " (authenticated)" : ""}`);
|
|
2792
|
-
const sub = nc.subscribe(subject);
|
|
2793
|
-
logger.info(`[${name}] subscribed to subject: ${subject}`);
|
|
2792
|
+
const sub = nc.subscribe(subject, { queue: name });
|
|
2793
|
+
logger.info(`[${name}] subscribed to subject: ${subject} (queue: ${name})`);
|
|
2794
2794
|
getConsumerRegistry().set(name, { subscription: sub, connection: nc });
|
|
2795
2795
|
const dlqEnabled = Boolean(options.quarantineTopic || options.errorTopic);
|
|
2796
2796
|
const { handleMessage, handleUnhandledProcessingError } = createNatsMessageProcessor({
|
package/dist/index.js
CHANGED
|
@@ -2168,7 +2168,7 @@ function cloudEvents(options = {}) {
|
|
|
2168
2168
|
// package.json
|
|
2169
2169
|
var package_default = {
|
|
2170
2170
|
name: "@crossdelta/cloudevents",
|
|
2171
|
-
version: "0.7.
|
|
2171
|
+
version: "0.7.7",
|
|
2172
2172
|
description: "CloudEvents toolkit for TypeScript - Zod validation, handler discovery, NATS JetStream & Core"};
|
|
2173
2173
|
|
|
2174
2174
|
// src/plugin.ts
|
|
@@ -2764,8 +2764,8 @@ async function consumeNatsEvents(options) {
|
|
|
2764
2764
|
...user && pass ? { user, pass } : {}
|
|
2765
2765
|
});
|
|
2766
2766
|
logger.info(`[${name}] connected to NATS: ${servers}${user ? " (authenticated)" : ""}`);
|
|
2767
|
-
const sub = nc.subscribe(subject);
|
|
2768
|
-
logger.info(`[${name}] subscribed to subject: ${subject}`);
|
|
2767
|
+
const sub = nc.subscribe(subject, { queue: name });
|
|
2768
|
+
logger.info(`[${name}] subscribed to subject: ${subject} (queue: ${name})`);
|
|
2769
2769
|
getConsumerRegistry().set(name, { subscription: sub, connection: nc });
|
|
2770
2770
|
const dlqEnabled = Boolean(options.quarantineTopic || options.errorTopic);
|
|
2771
2771
|
const { handleMessage, handleUnhandledProcessingError } = createNatsMessageProcessor({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crossdelta/cloudevents",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.7",
|
|
4
4
|
"description": "CloudEvents toolkit for TypeScript - Zod validation, handler discovery, NATS JetStream & Core",
|
|
5
5
|
"author": "crossdelta",
|
|
6
6
|
"license": "MIT",
|
|
@@ -51,12 +51,13 @@
|
|
|
51
51
|
"cloudevents": "^10.0.0",
|
|
52
52
|
"glob": "^11.1.0",
|
|
53
53
|
"nats": "^2.29.3",
|
|
54
|
-
"pluralize": "^8.0.0"
|
|
54
|
+
"pluralize": "^8.0.0",
|
|
55
|
+
"hono": "^4.12.7"
|
|
55
56
|
},
|
|
56
57
|
"peerDependencies": {
|
|
57
58
|
"@faker-js/faker": ">=9.0.0",
|
|
58
59
|
"@google-cloud/pubsub": ">=4.0.0",
|
|
59
|
-
"hono": "^4.12.
|
|
60
|
+
"hono": "^4.12.7",
|
|
60
61
|
"zod": "^4.0.0"
|
|
61
62
|
},
|
|
62
63
|
"peerDependenciesMeta": {
|
|
@@ -73,10 +74,10 @@
|
|
|
73
74
|
"devDependencies": {
|
|
74
75
|
"@faker-js/faker": "^9.7.0",
|
|
75
76
|
"@google-cloud/pubsub": "^4.9.0",
|
|
76
|
-
"@stryker-mutator/core": "^9.
|
|
77
|
+
"@stryker-mutator/core": "^9.6.0",
|
|
77
78
|
"@types/bun": "^1.3.3",
|
|
78
79
|
"@types/pluralize": "^0.0.33",
|
|
79
|
-
"hono": "^4.12.
|
|
80
|
+
"hono": "^4.12.7",
|
|
80
81
|
"stryker-mutator-bun-runner": "^0.4.0",
|
|
81
82
|
"tsup": "^8.3.5",
|
|
82
83
|
"typescript": "^5.9.2"
|