Skip to content

Commit

Permalink
fix(deps): update nestjs packages (fastify) to v11 (major) (#2029)
Browse files Browse the repository at this point in the history
  • Loading branch information
anchan828 authored Jan 28, 2025
2 parents 47cffd9 + 58766ce commit 6dd45f3
Show file tree
Hide file tree
Showing 8 changed files with 301 additions and 307 deletions.
557 changes: 274 additions & 283 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
"@eslint/js": "^9.12.0",
"@lerna-lite/cli": "3.11.0",
"@lerna-lite/publish": "3.11.0",
"@nestjs/common": "10.4.15",
"@nestjs/core": "10.4.15",
"@nestjs/platform-express": "10.4.15",
"@nestjs/testing": "10.4.15",
"@nestjs/common": "11.0.5",
"@nestjs/core": "11.0.5",
"@nestjs/platform-express": "11.0.5",
"@nestjs/testing": "11.0.5",
"@types/glob": "8.1.0",
"@types/jest": "29.5.14",
"@types/node": "22.10.10",
Expand Down
4 changes: 2 additions & 2 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
"watch": "tsc -w"
},
"devDependencies": {
"@nestjs/common": "10.4.15",
"@nestjs/common": "11.0.5",
"rxjs": "7.8.1"
},
"peerDependencies": {
"@nestjs/common": "^8.0.0 || ^9.0.0 || ^10.0.0"
"@nestjs/common": "^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 3 additions & 3 deletions packages/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"@anchan828/nest-cloud-run-queue-pubsub-publisher": "^3.2.12",
"@anchan828/nest-cloud-run-queue-tasks-publisher": "^3.2.12",
"@anchan828/nest-cloud-run-queue-worker": "^3.2.12",
"@nestjs/common": "^10.4.4",
"@nestjs/core": "^10.4.4",
"@nestjs/platform-express": "^10.4.4"
"@nestjs/common": "^11.0.0",
"@nestjs/core": "^11.0.0",
"@nestjs/platform-express": "^11.0.0"
},
"devDependencies": {
"ts-node-dev": "2.0.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/pubsub-publisher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
"@google-cloud/pubsub": "^4.7.2"
},
"devDependencies": {
"@nestjs/common": "10.4.15",
"@nestjs/common": "11.0.5",
"rxjs": "7.8.1"
},
"peerDependencies": {
"@nestjs/common": "^8.0.0 || ^9.0.0 || ^10.0.0"
"@nestjs/common": "^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/tasks-publisher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
"@google-cloud/tasks": "^5.5.1"
},
"devDependencies": {
"@nestjs/common": "10.4.15",
"@nestjs/common": "11.0.5",
"rxjs": "7.8.1"
},
"peerDependencies": {
"@nestjs/common": "^8.0.0 || ^9.0.0 || ^10.0.0"
"@nestjs/common": "^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
"@anchan828/nest-cloud-run-queue-common": "^3.2.12"
},
"devDependencies": {
"@nestjs/common": "10.4.15",
"@nestjs/common": "11.0.5",
"rxjs": "7.8.1"
},
"peerDependencies": {
"@nestjs/common": "^8.0.0 || ^9.0.0 || ^10.0.0"
"@nestjs/common": "^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0"
},
"publishConfig": {
"access": "public"
Expand Down
21 changes: 12 additions & 9 deletions packages/worker/src/explorer.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,25 @@ export class QueueWorkerExplorerService {

private getWorkers(): QueueWorkerMetadata[] {
const metadata: QueueWorkerMetadata[] = [];
for (const classInstanceWrapper of this.discoveryService
.getProviders()
.filter((instanceWrapper) => instanceWrapper.instance?.constructor)) {
const args = Reflect.getMetadata(
QUEUE_WORKER_DECORATOR,
classInstanceWrapper.instance.constructor,
) as QueueWorkerDecoratorArgs;
for (const classInstanceWrapper of this.discoveryService.getProviders()) {
const instance = classInstanceWrapper.instance;
const metatype = classInstanceWrapper.metatype;

if (!instance || !metatype) {
continue;
}

const args = Reflect.getMetadata(QUEUE_WORKER_DECORATOR, instance.constructor) as QueueWorkerDecoratorArgs;

if (args && Array.isArray(args.names)) {
if (args.enabled === false) {
continue;
}

for (const name of args.names) {
metadata.push({
className: classInstanceWrapper.metatype.name,
instance: classInstanceWrapper.instance,
className: metatype.name,
instance: instance,
name,
priority: args.priority || 0,
processors: [],
Expand Down

0 comments on commit 6dd45f3

Please sign in to comment.