arvo-event-handler 2.2.8 → 2.2.12

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/CHANGELOG.md CHANGED
@@ -43,3 +43,7 @@
43
43
  ## [2.2.5] - 2024-12-25
44
44
 
45
45
  - Added better error boundaries for the handlers
46
+ ## [2.2.10] - 2025-01-29
47
+
48
+ - Updated dependency versions and added more tests
49
+
@@ -58,6 +58,10 @@ export declare class ArvoEventRouter extends AbstractArvoEventHandler {
58
58
  * @param event The event to be routed and processed
59
59
  * @param opentelemetry Configuration for telemetry context inheritance
60
60
  * @returns Promise resolving to resulting events or error events
61
+ *
62
+ * @throws {ConfigViolation} When event destination does not match router's source
63
+ * @throws {ConfigViolation} When no registered handler exists for the event type
64
+ * @throws Other Violation error which are thrown by the registered event handlers
61
65
  */
62
66
  execute(event: ArvoEvent, opentelemetry?: ArvoEventHandlerOpenTelemetryOptions): Promise<ArvoEvent[]>;
63
67
  /**
@@ -136,6 +136,10 @@ var ArvoEventRouter = /** @class */ (function (_super) {
136
136
  * @param event The event to be routed and processed
137
137
  * @param opentelemetry Configuration for telemetry context inheritance
138
138
  * @returns Promise resolving to resulting events or error events
139
+ *
140
+ * @throws {ConfigViolation} When event destination does not match router's source
141
+ * @throws {ConfigViolation} When no registered handler exists for the event type
142
+ * @throws Other Violation error which are thrown by the registered event handlers
139
143
  */
140
144
  ArvoEventRouter.prototype.execute = function (event_1) {
141
145
  return __awaiter(this, arguments, void 0, function (event, opentelemetry) {
@@ -38,6 +38,9 @@ export default class MultiArvoEventHandler extends AbstractArvoEventHandler {
38
38
  * @param event Event to process
39
39
  * @param opentelemetry Telemetry context configuration
40
40
  * @returns Resulting events or error events
41
+ *
42
+ * @throws {ConfigViolation} When event destination does not match handler source
43
+ * @throws Other Violation error which are thrown by the event handler function
41
44
  */
42
45
  execute(event: ArvoEvent, opentelemetry?: ArvoEventHandlerOpenTelemetryOptions): Promise<ArvoEvent[]>;
43
46
  /**
@@ -110,6 +110,9 @@ var MultiArvoEventHandler = /** @class */ (function (_super) {
110
110
  * @param event Event to process
111
111
  * @param opentelemetry Telemetry context configuration
112
112
  * @returns Resulting events or error events
113
+ *
114
+ * @throws {ConfigViolation} When event destination does not match handler source
115
+ * @throws Other Violation error which are thrown by the event handler function
113
116
  */
114
117
  MultiArvoEventHandler.prototype.execute = function (event_1) {
115
118
  return __awaiter(this, arguments, void 0, function (event, opentelemetry) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arvo-event-handler",
3
- "version": "2.2.8",
3
+ "version": "2.2.12",
4
4
  "description": "Type-safe event handler system with versioning, telemetry, and contract validation for distributed Arvo event-driven architectures, featuring routing and multi-handler support.",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -52,9 +52,12 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "@opentelemetry/api": "^1.9.0",
55
- "@opentelemetry/core": "^1.28.0",
56
- "arvo-core": "^2.2.8",
57
- "uuid": "^10.0.0",
58
- "zod": "^3.23.8"
55
+ "@opentelemetry/core": "^1.30.1",
56
+ "arvo-core": "^2.2.12",
57
+ "uuid": "^11.1.0",
58
+ "zod": "^3.25.67"
59
+ },
60
+ "engines": {
61
+ "node": ">=18.0.0"
59
62
  }
60
63
  }