@message-queue-toolkit/core 21.2.0-pre → 21.2.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.
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v3';
2
2
  /**
3
3
  * When the payload is too large to be sent in a single message, it is offloaded to a storage service and a pointer to the offloaded payload is sent instead.
4
4
  * This schema represents the payload that is sent in place of the original payload.
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from 'zod/v3';
2
2
  /**
3
3
  * When the payload is too large to be sent in a single message, it is offloaded to a storage service and a pointer to the offloaded payload is sent instead.
4
4
  * This schema represents the payload that is sent in place of the original payload.
@@ -1 +1 @@
1
- {"version":3,"file":"offloadedPayloadMessageSchemas.js","sourceRoot":"","sources":["../../lib/payload-store/offloadedPayloadMessageSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB;;;GAGG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAG,CAAC;KACtD,MAAM,CAAC;IACN,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1C,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAClD,CAAC;IACF,gIAAgI;KAC/H,WAAW,EAAE,CAAA;AAMhB,MAAM,UAAU,gCAAgC,CAC9C,KAAc;IAEd,OAAQ,KAAwC,CAAC,uBAAuB,KAAK,SAAS,CAAA;AACxF,CAAC"}
1
+ {"version":3,"file":"offloadedPayloadMessageSchemas.js","sourceRoot":"","sources":["../../lib/payload-store/offloadedPayloadMessageSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAA;AAE1B;;;GAGG;AACH,MAAM,CAAC,MAAM,wCAAwC,GAAG,CAAC;KACtD,MAAM,CAAC;IACN,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1C,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CAClD,CAAC;IACF,gIAAgI;KAC/H,WAAW,EAAE,CAAA;AAMhB,MAAM,UAAU,gCAAgC,CAC9C,KAAc;IAEd,OAAQ,KAAwC,CAAC,uBAAuB,KAAK,SAAS,CAAA;AACxF,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { TypeOf, z } from 'zod';
1
+ import type { TypeOf, z } from 'zod/v3';
2
2
  import type { EventRegistry } from '../events/EventRegistry.ts';
3
3
  import type { PublisherBaseEventType } from '../events/baseEventSchemas.ts';
4
4
  import type { CommonEventDefinition } from '../events/eventTypes.ts';
@@ -1,5 +1,5 @@
1
1
  import { type CommonLogger, type Either, type ErrorReporter, type ErrorResolver } from '@lokalise/node-core';
2
- import type { ZodSchema, ZodType } from 'zod';
2
+ import type { ZodSchema, ZodType } from 'zod/v3';
3
3
  import type { MessageInvalidFormatError, MessageValidationError } from '../errors/Errors.ts';
4
4
  import { AcquireLockTimeoutError, type DeduplicationRequester, type MessageDeduplicationConfig, type ReleasableLock } from '../message-deduplication/messageDeduplicationTypes.ts';
5
5
  import { type OffloadedPayloadPointerPayload } from '../payload-store/offloadedPayloadMessageSchemas.ts';
@@ -1,6 +1,6 @@
1
1
  import type { Either } from '@lokalise/node-core';
2
2
  import type { CommonEventDefinition } from '@message-queue-toolkit/schemas';
3
- import type { ZodSchema } from 'zod';
3
+ import type { ZodSchema } from 'zod/v3';
4
4
  import type { DoNotProcessMessageError } from '../errors/DoNotProcessError.ts';
5
5
  import type { RetryMessageLaterError } from '../errors/RetryMessageLaterError.ts';
6
6
  export type PreHandlingOutputs<PrehandlerOutput = undefined, BarrierOutput = undefined> = {
@@ -1,6 +1,6 @@
1
1
  import type { Either } from '@lokalise/node-core';
2
2
  import type { CommonEventDefinition } from '@message-queue-toolkit/schemas';
3
- import type { ZodSchema } from 'zod';
3
+ import type { ZodSchema } from 'zod/v3';
4
4
  export type MessageSchemaContainerOptions<MessagePayloadSchemas extends object> = {
5
5
  messageDefinitions: readonly CommonEventDefinition[];
6
6
  messageSchemas: readonly ZodSchema<MessagePayloadSchemas>[];
@@ -1,5 +1,5 @@
1
1
  import type { CommonLogger, TransactionObservabilityManager } from '@lokalise/node-core';
2
- import type { ZodSchema } from 'zod';
2
+ import type { ZodSchema } from 'zod/v3';
3
3
  import type { PublicHandlerSpy } from '../queues/HandlerSpy.ts';
4
4
  export interface QueueConsumer {
5
5
  start(): Promise<unknown>;
@@ -1,5 +1,5 @@
1
1
  import type { CommonLogger, ErrorReporter, ErrorResolver } from '@lokalise/node-core';
2
- import type { ZodSchema } from 'zod';
2
+ import type { ZodSchema } from 'zod/v3';
3
3
  import type { PayloadStoreConfig } from '../payload-store/payloadStoreTypes.ts';
4
4
  import type { MessageHandlerConfig } from '../queues/HandlerContainer.ts';
5
5
  import type { HandlerSpy, HandlerSpyParams } from '../queues/HandlerSpy.ts';
@@ -1,5 +1,5 @@
1
1
  import type { Either, ErrorResolver } from '@lokalise/node-core';
2
- import type { ZodSchema } from 'zod';
2
+ import type { ZodSchema } from 'zod/v3';
3
3
  import type { MessageInvalidFormatError, MessageValidationError } from '../errors/Errors.ts';
4
4
  export type ParseMessageResult<T> = {
5
5
  originalMessage: T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@message-queue-toolkit/core",
3
- "version": "21.2.0-pre",
3
+ "version": "21.2.0",
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",
@@ -26,26 +26,26 @@
26
26
  "prepublishOnly": "npm run lint && npm run build"
27
27
  },
28
28
  "dependencies": {
29
- "@lokalise/node-core": "^14.0.0",
30
- "@message-queue-toolkit/schemas": "^6.2.0-pre2",
31
- "fast-equals": "^5.0.1",
29
+ "@lokalise/node-core": "^14.0.1",
30
+ "@message-queue-toolkit/schemas": "^6.2.0",
31
+ "fast-equals": "^5.2.2",
32
32
  "json-stream-stringify": "^3.1.6",
33
33
  "tmp": "^0.2.3",
34
34
  "toad-cache": "^3.7.0",
35
- "zod": "^3.23.8"
35
+ "zod": "^3.25.3"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@biomejs/biome": "1.9.4",
39
39
  "@lokalise/biome-config": "^2.0.0",
40
40
  "@lokalise/tsconfig": "^1.3.0",
41
- "@types/node": "^22.7.5",
41
+ "@types/node": "^22.15.19",
42
42
  "@types/tmp": "^0.2.6",
43
- "@vitest/coverage-v8": "^3.0.7",
43
+ "@vitest/coverage-v8": "^3.1.4",
44
44
  "awilix": "^12.0.1",
45
- "awilix-manager": "^6.0.0",
45
+ "awilix-manager": "^6.1.0",
46
46
  "rimraf": "^6.0.1",
47
- "typescript": "^5.7.2",
48
- "vitest": "^3.0.7"
47
+ "typescript": "^5.8.3",
48
+ "vitest": "^3.1.4"
49
49
  },
50
50
  "homepage": "https://github.com/kibertoad/message-queue-toolkit",
51
51
  "repository": {