diff --git a/packages/amqp/package.json b/packages/amqp/package.json index ef453eca..29c85c75 100644 --- a/packages/amqp/package.json +++ b/packages/amqp/package.json @@ -18,7 +18,7 @@ "test": "vitest", "test:coverage": "npm test -- --coverage", "test:ci": "npm run docker:start:dev && npm run test:coverage && npm run docker:stop:dev", - "lint": "eslint . --ext .ts", + "lint": "eslint . --ext .ts && tsc --noEmit", "lint:fix": "prettier --write . && eslint . --ext .ts --fix", "docker:start:dev": "docker compose up -d", "docker:stop:dev": "docker compose down", diff --git a/packages/amqp/test/utils/testContext.ts b/packages/amqp/test/utils/testContext.ts index 4c09b8e3..25aa0765 100644 --- a/packages/amqp/test/utils/testContext.ts +++ b/packages/amqp/test/utils/testContext.ts @@ -114,7 +114,6 @@ export async function registerDependencies( return new AmqpQueuePublisherManager(dependencies, { metadataFiller: new CommonMetadataFiller({ serviceId: 'service', - schemaVersion: '1.0.0', }), publisherFactory: new CommonAmqpQueuePublisherFactory(), newPublisherOptions: { diff --git a/packages/core/lib/messages/MetadataFiller.ts b/packages/core/lib/messages/MetadataFiller.ts index 5b1f8727..d3b1bc16 100644 --- a/packages/core/lib/messages/MetadataFiller.ts +++ b/packages/core/lib/messages/MetadataFiller.ts @@ -10,7 +10,6 @@ export type TimestampGenerator = () => string export type MetadataFillerOptions = { serviceId: string - schemaVersion: string idGenerator?: IdGenerator timestampGenerator?: TimestampGenerator defaultVersion?: string @@ -49,7 +48,7 @@ export class CommonMetadataFiller implements MetadataFiller { produceMetadata( _currentMessage: PublisherBaseEventType, - eventDefinition: CommonEventDefinition, + eventDefinition: Pick, precedingMessageMetadata?: MessageMetadataType, ): MessageMetadataType { return { diff --git a/packages/core/package.json b/packages/core/package.json index 27d9b4b7..d35b5803 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@message-queue-toolkit/core", - "version": "13.3.1", + "version": "13.3.2", "private": false, "license": "MIT", "description": "Useful utilities, interfaces and base classes for message queue handling. Supports AMQP and SQS with a common abstraction on top currently", @@ -15,7 +15,7 @@ "scripts": { "build": "del-cli dist && del-cli coverage && tsc", "build:release": "del-cli dist && del-cli coverage && npm run lint && tsc --project tsconfig.release.json", - "lint": "eslint . --ext .ts", + "lint": "eslint . --ext .ts && tsc --noEmit", "lint:fix": "prettier --write . && eslint . --ext .ts --fix", "test": "vitest", "test:coverage": "npm test -- --coverage", diff --git a/packages/sns/test/utils/testContext.ts b/packages/sns/test/utils/testContext.ts index 15e2eb76..bb29e33e 100644 --- a/packages/sns/test/utils/testContext.ts +++ b/packages/sns/test/utils/testContext.ts @@ -121,7 +121,6 @@ export async function registerDependencies( return new SnsPublisherManager(dependencies, { metadataFiller: new CommonMetadataFiller({ serviceId: 'service', - schemaVersion: '1.0.0', }), publisherFactory: new CommonSnsPublisherFactory(), newPublisherOptions: { diff --git a/packages/sqs/package.json b/packages/sqs/package.json index 5f5a068d..d5d3b1f8 100644 --- a/packages/sqs/package.json +++ b/packages/sqs/package.json @@ -18,7 +18,7 @@ "test": "vitest", "test:coverage": "npm test -- --coverage", "test:ci": "npm run docker:start:dev && npm run test:coverage && npm run docker:stop:dev", - "lint": "eslint . --ext .ts", + "lint": "eslint . --ext .ts && tsc --noEmit", "lint:fix": "prettier --write . && eslint . --ext .ts --fix", "docker:start:dev": "docker compose up -d", "docker:stop:dev": "docker compose down",