Skip to content

Commit

Permalink
feat: support nestjs 10
Browse files Browse the repository at this point in the history
BREAKING CHANGES:
* incompatible with previous versions of nestjs
* support node v20, drop support node v14
  • Loading branch information
ruscon authored and mciuchitu committed Jan 23, 2024
1 parent 52082b7 commit faec7f0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [14, 16, 18]
node-version: [16, 18, 20]

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@
"github-release": "conventional-github-releaser -p angular"
},
"peerDependencies": {
"@nestjs/common": "^7.0.0 || ^8.0.0 || ^9.0.0",
"@nestjs/core": "^7.0.0 || ^8.0.0 || ^9.0.0",
"@nestjs/cqrs": "^7.0.0 || ^8.0.0 || ^9.0.0",
"@nestjs/common": "^10.0.0",
"@nestjs/core": "^10.0.0",
"@nestjs/cqrs": "^10.0.0",
"amqp-connection-manager": "^4.0.0",
"amqplib": ">=0.5",
"reflect-metadata": ">=0.1.13"
Expand All @@ -85,10 +85,10 @@
"@commitlint/config-conventional": "^17.6.3",
"@faker-js/faker": "^8.0.1",
"@goparrot/eslint-config": "^1.1.1",
"@nestjs/common": "^9.4.1",
"@nestjs/core": "^9.4.1",
"@nestjs/cqrs": "^9.0.4",
"@nestjs/testing": "^9.4.1",
"@nestjs/common": "^10.2.10",
"@nestjs/core": "^10.2.10",
"@nestjs/cqrs": "^10.2.6",
"@nestjs/testing": "^10.2.10",
"@release-it/conventional-changelog": "^5.1.1",
"@types/amqplib": "^0.10.1",
"@types/jest": "^29.5.1",
Expand Down
6 changes: 3 additions & 3 deletions src/service/EventBus.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Injectable } from '@nestjs/common';
import { ModuleRef } from '@nestjs/core';
import type { IEvent } from '@nestjs/cqrs';
import { EventBus as NestEventBus } from '@nestjs/cqrs';
import { EventBus as NestEventBus, UnhandledExceptionBus } from '@nestjs/cqrs';
import { CommandBus } from './CommandBus';
import { Producer } from './Producer';
import { Publisher } from './Publisher';
Expand All @@ -19,8 +19,8 @@ export class EventBus extends NestEventBus<IEvent> {
this._pubSubPublisher = pubSubPublisher;
}

constructor(commandBus: CommandBus, moduleRefs: ModuleRef, private readonly producer: Producer) {
super(commandBus, moduleRefs);
constructor(commandBus: CommandBus, moduleRefs: ModuleRef, unhandledExceptionBus: UnhandledExceptionBus, private readonly producer: Producer) {
super(commandBus, moduleRefs, unhandledExceptionBus);
this.usePubSubPublisher();
}

Expand Down

0 comments on commit faec7f0

Please sign in to comment.