@crossdelta/cloudevents 0.6.2 → 0.6.3

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 CHANGED
@@ -1139,11 +1139,7 @@ function createBaseMessageProcessor(deps) {
1139
1139
  const findHandler = (event) => processedHandlers.find(
1140
1140
  (handler) => handler.type === event.eventType && (!handler.match || handler.match(event))
1141
1141
  );
1142
- const handleMissingHandler = async (context, eventType) => {
1143
- logger2.warn(`[${name}] no handler for event type: ${eventType}`);
1144
- if (dlqEnabled) {
1145
- await quarantineMessage(context, "no_handler", options, new Error(`No handler for event type ${eventType}`));
1146
- }
1142
+ const handleMissingHandler = async (_context, _eventType) => {
1147
1143
  return { handled: true, shouldAck: true };
1148
1144
  };
1149
1145
  const handleValidationFailure = async (validationResult, handler, context) => {
package/dist/index.js CHANGED
@@ -1136,11 +1136,7 @@ function createBaseMessageProcessor(deps) {
1136
1136
  const findHandler = (event) => processedHandlers.find(
1137
1137
  (handler) => handler.type === event.eventType && (!handler.match || handler.match(event))
1138
1138
  );
1139
- const handleMissingHandler = async (context, eventType) => {
1140
- logger2.warn(`[${name}] no handler for event type: ${eventType}`);
1141
- if (dlqEnabled) {
1142
- await quarantineMessage(context, "no_handler", options, new Error(`No handler for event type ${eventType}`));
1143
- }
1139
+ const handleMissingHandler = async (_context, _eventType) => {
1144
1140
  return { handled: true, shouldAck: true };
1145
1141
  };
1146
1142
  const handleValidationFailure = async (validationResult, handler, context) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crossdelta/cloudevents",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "CloudEvents toolkit for TypeScript - Zod validation, handler discovery, NATS JetStream",
5
5
  "author": "crossdelta",
6
6
  "license": "MIT",