@message-queue-toolkit/core 17.2.0 → 17.2.1

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.
@@ -30,20 +30,18 @@ export type DeletionConfig = {
30
30
  forceDeleteInProduction?: boolean;
31
31
  };
32
32
  type NewQueueOptions<CreationConfigType extends CommonCreationConfigType> = {
33
- locatorConfig?: never;
34
- creationConfig: CreationConfigType;
33
+ creationConfig?: CreationConfigType;
35
34
  };
36
35
  type ExistingQueueOptions<QueueLocatorType extends object> = {
37
- locatorConfig: QueueLocatorType;
38
- creationConfig?: never;
36
+ locatorConfig?: QueueLocatorType;
39
37
  };
40
- export type QueueOptions<CreationConfigType extends CommonCreationConfigType, QueueLocatorType extends object> = CommonQueueOptions & (NewQueueOptions<CreationConfigType> | ExistingQueueOptions<QueueLocatorType>);
38
+ export type QueueOptions<CreationConfigType extends CommonCreationConfigType, QueueLocatorType extends object> = CommonQueueOptions & (NewQueueOptions<CreationConfigType> & ExistingQueueOptions<QueueLocatorType>);
41
39
  export type QueuePublisherOptions<CreationConfigType extends CommonCreationConfigType, QueueLocatorType extends object, MessagePayloadSchemas extends object> = QueueOptions<CreationConfigType, QueueLocatorType> & {
42
40
  messageSchemas: readonly ZodSchema<MessagePayloadSchemas>[];
43
41
  };
44
42
  export type DeadLetterQueueOptions<CreationConfigType extends object, QueueLocatorType extends object, DeadLetterQueueIntegrationOptions extends object> = {
45
43
  deletionConfig?: DeletionConfig;
46
- } & DeadLetterQueueIntegrationOptions & (NewQueueOptions<CreationConfigType> | ExistingQueueOptions<QueueLocatorType>);
44
+ } & DeadLetterQueueIntegrationOptions & NewQueueOptions<CreationConfigType> & ExistingQueueOptions<QueueLocatorType>;
47
45
  export type QueueConsumerOptions<CreationConfigType extends object, QueueLocatorType extends object, DeadLetterQueueIntegrationOptions extends object, MessagePayloadSchemas extends object, ExecutionContext, PrehandlerOutput = undefined, DeadLetterQueueCreationConfigType extends object = CreationConfigType, DeadLetterQueueQueueLocatorType extends object = QueueLocatorType> = QueueOptions<CreationConfigType, QueueLocatorType> & {
48
46
  handlers: MessageHandlerConfig<MessagePayloadSchemas, ExecutionContext, PrehandlerOutput>[];
49
47
  deadLetterQueue?: DeadLetterQueueOptions<DeadLetterQueueCreationConfigType, DeadLetterQueueQueueLocatorType, DeadLetterQueueIntegrationOptions>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@message-queue-toolkit/core",
3
- "version": "17.2.0",
3
+ "version": "17.2.1",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "description": "Useful utilities, interfaces and base classes for message queue handling. Supports AMQP and SQS with a common abstraction on top currently",
@@ -25,25 +25,25 @@
25
25
  "prepublishOnly": "npm run build:release"
26
26
  },
27
27
  "dependencies": {
28
- "@lokalise/node-core": "^12.0.0",
28
+ "@lokalise/node-core": "^13.0.1",
29
29
  "@message-queue-toolkit/schemas": "^4.0.0",
30
30
  "fast-equals": "^5.0.1",
31
- "json-stream-stringify": "^3.1.4",
31
+ "json-stream-stringify": "^3.1.6",
32
32
  "tmp": "^0.2.3",
33
33
  "toad-cache": "^3.7.0",
34
34
  "zod": "^3.23.8"
35
35
  },
36
36
  "devDependencies": {
37
- "@biomejs/biome": "1.9.1",
37
+ "@biomejs/biome": "1.9.3",
38
38
  "@kibertoad/biome-config": "^1.2.1",
39
- "@types/node": "^22.0.0",
39
+ "@types/node": "^22.7.5",
40
40
  "@types/tmp": "^0.2.6",
41
- "@vitest/coverage-v8": "^2.0.4",
42
- "awilix": "^11.0.0",
41
+ "@vitest/coverage-v8": "^2.1.2",
42
+ "awilix": "^12.0.1",
43
43
  "awilix-manager": "^5.4.0",
44
- "del-cli": "^5.1.0",
45
- "typescript": "^5.5.4",
46
- "vitest": "^2.0.4"
44
+ "del-cli": "^6.0.0",
45
+ "typescript": "^5.6.3",
46
+ "vitest": "^2.1.2"
47
47
  },
48
48
  "homepage": "https://github.com/kibertoad/message-queue-toolkit",
49
49
  "repository": {