Skip to content

Commit

Permalink
chore: update nest deps to v11 (#1837)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcdo29 authored Jan 31, 2025
2 parents 3a8c735 + 9d848fd commit 2fc0c67
Show file tree
Hide file tree
Showing 18 changed files with 6,215 additions and 4,959 deletions.
18 changes: 18 additions & 0 deletions .changeset/two-mayflies-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
'@ogma/nestjs-module': minor
'@ogma/platform-express': minor
'@ogma/platform-fastify': minor
'@ogma/platform-graphql': minor
'@ogma/platform-graphql-fastify': minor
'@ogma/platform-grpc': minor
'@ogma/platform-kafka': minor
'@ogma/platform-mqtt': minor
'@ogma/platform-nats': minor
'@ogma/platform-rabbitmq': minor
'@ogma/platform-redis': minor
'@ogma/platform-socket.io': minor
'@ogma/platform-tcp': minor
'@ogma/platform-ws': minor
---

Allow for Nest v11 dependencies
27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,18 @@
"@grpc/proto-loader": "0.7.10",
"@mdx-js/react": "2.3.0",
"@mercuriusjs/gateway": "^2.0.0",
"@nestjs/apollo": "^12.1.0",
"@nestjs/common": "^10.3.2",
"@nestjs/core": "^10.3.2",
"@nestjs/graphql": "^12.1.0",
"@nestjs/mercurius": "^12.1.0",
"@nestjs/microservices": "^10.3.2",
"@nestjs/platform-express": "^10.3.2",
"@nestjs/platform-fastify": "^10.3.2",
"@nestjs/platform-socket.io": "^10.3.2",
"@nestjs/platform-ws": "^10.3.2",
"@nestjs/testing": "^10.3.2",
"@nestjs/websockets": "^10.3.2",
"@nestjs/apollo": "^13.0.2",
"@nestjs/common": "^11.0.7",
"@nestjs/core": "^11.0.7",
"@nestjs/graphql": "^13.0.2",
"@nestjs/mercurius": "^12.2.2",
"@nestjs/microservices": "^11.0.7",
"@nestjs/platform-express": "^11.0.7",
"@nestjs/platform-fastify": "^11.0.7",
"@nestjs/platform-socket.io": "^11.0.7",
"@nestjs/platform-ws": "^11.0.7",
"@nestjs/testing": "^11.0.7",
"@nestjs/websockets": "^11.0.7",
"@nrwl/devkit": "19.2.0",
"@nrwl/eslint-plugin-nx": "19.2.0",
"@nrwl/js": "19.2.0",
Expand Down Expand Up @@ -133,6 +133,7 @@
"lcov-result-merger": "^4.1.0",
"lint-staged": "15.0.1",
"mercurius": "13.1.0",
"mercusius^13": "link:@nestjs/mercusius^13",
"module-alias": "^2.2.3",
"morgan": "^1.10.0",
"mqtt": "^4.3.7",
Expand All @@ -158,7 +159,7 @@
"socket.io-client": "4.7.2",
"sonic-boom": "^3.7.0",
"tree-kill": "^1.2.2",
"ts-morph": "22.0.0",
"ts-morph": "24.0.0",
"ts-node": "^10.9.1",
"tsconfig-paths": "^4.2.0",
"typescript": "5.4.5",
Expand Down
4 changes: 2 additions & 2 deletions packages/nestjs-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"decorate-all": "1.2.1"
},
"peerDependencies": {
"@nestjs/common": "^9.0.0 || ^10.0.0",
"@nestjs/core": "^9.0.0 || ^10.0.0",
"@nestjs/common": "^9.0.0 || ^10.0.0 || ^11.0.0",
"@nestjs/core": "^9.0.0 || ^10.0.0 || ^11.0.0",
"reflect-metadata": "^0.1.0 || ^0.2.1",
"rxjs": "^7.0.0"
},
Expand Down
36 changes: 3 additions & 33 deletions packages/nestjs-module/test/ogma-module.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,13 @@ import { Test } from '@nestjs/testing';
import { suite } from 'uvu';
import { ok } from 'uvu/assert';

import { HttpInterceptorService, OgmaModule, OgmaModuleOptions } from '../src';

class NoopInterceptorService extends HttpInterceptorService {
noop() {
return 'noop';
}
getCallPoint = this.noop;
getCallerIp = this.noop;
getMethod = this.noop;
getProtocol = this.noop;
setRequestId;
}

const interceptorOptions = {
interceptor: {
http: NoopInterceptorService,
},
};
import { OgmaModule, OgmaModuleOptions } from '../src';

const noIntOptions = {};

const allOptions: OgmaModuleOptions = {
service: {
color: true,
application: 'JEST',
context: 'TESTING',
json: false,
},
interceptor: {
http: NoopInterceptorService,
ws: NoopInterceptorService,
gql: NoopInterceptorService,
rpc: NoopInterceptorService,
},
};
const allOptions: OgmaModuleOptions = {};
const OgmaModuleSuite = suite('Ogma Module');
for (const options of [interceptorOptions, noIntOptions, undefined, allOptions]) {
for (const options of [noIntOptions, undefined, allOptions]) {
OgmaModuleSuite(`It should make the module for ${options}`, async () => {
const mod = await Test.createTestingModule({
imports: [OgmaModule.forRoot(options)],
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"url": "https://github.com/jmcdo29/ogma/issues"
},
"peerDependencies": {
"@nestjs/platform-express": "^9.0.0 || ^10.0.0",
"@nestjs/platform-express": "^9.0.0 || ^10.0.0 || ^11.0.0",
"@ogma/nestjs-module": "workspace:^5.0.0"
},
"peerDependenciesMeta": {
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"url": "https://github.com/jmcdo29/ogma/issues"
},
"peerDependencies": {
"@nestjs/platform-fastify": "^9.0.0 || ^10.0.0",
"@nestjs/platform-fastify": "^9.0.0 || ^10.0.0 || ^11.0.0",
"@ogma/nestjs-module": "workspace:^5.0.0",
"fastify": ">=4.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-graphql-fastify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"url": "https://github.com/jmcdo29/ogma/issues"
},
"peerDependencies": {
"@nestjs/graphql": "^10.0.0 || ^11.0.0 || ^12.0.0",
"@nestjs/graphql": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0",
"@ogma/nestjs-module": "workspace:^5.0.0",
"@ogma/platform-fastify": "workspace:^5.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"url": "https://github.com/jmcdo29/ogma/issues"
},
"peerDependencies": {
"@nestjs/graphql": "^10.0.0 || ^11.0.0 || ^12.0.0",
"@nestjs/graphql": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0",
"@ogma/nestjs-module": "workspace:^5.0.0",
"@ogma/platform-express": "workspace:^5.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-grpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"url": "https://github.com/jmcdo29/ogma/issues"
},
"peerDependencies": {
"@nestjs/microservices": "^9.0.0 || ^10.0.0",
"@nestjs/microservices": "^9.0.0 || ^10.0.0 || ^11.0.0",
"@ogma/nestjs-module": "workspace:^5.0.0",
"@grpc/grpc-js": "^1.7.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-kafka/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"url": "https://github.com/jmcdo29/ogma/issues"
},
"peerDependencies": {
"@nestjs/microservices": "^9.0.0 || ^10.0.0",
"@nestjs/microservices": "^9.0.0 || ^10.0.0 || ^11.0.0",
"@ogma/nestjs-module": "workspace:^5.0.0",
"kafkajs": "^1.12.0 || ^2.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-mqtt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"url": "https://github.com/jmcdo29/ogma/issues"
},
"peerDependencies": {
"@nestjs/microservices": "^9.0.0 || ^10.0.0",
"@nestjs/microservices": "^9.0.0 || ^10.0.0 || ^11.0.0",
"@ogma/nestjs-module": "workspace:^5.0.0",
"mqtt": "^4.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-nats/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"url": "https://github.com/jmcdo29/ogma/issues"
},
"peerDependencies": {
"@nestjs/microservices": "^9.0.0 || ^10.0.0",
"@nestjs/microservices": "^9.0.0 || ^10.0.0 || ^11.0.0",
"@ogma/nestjs-module": "workspace:^5.0.0",
"nats": "^1.4.0 || ^2.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-rabbitmq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"url": "https://github.com/jmcdo29/ogma/issues"
},
"peerDependencies": {
"@nestjs/microservices": "^9.0.0 || ^10.0.0",
"@nestjs/microservices": "^9.0.0 || ^10.0.0 || ^11.0.0",
"@ogma/nestjs-module": "workspace:^5.0.0",
"amqp-connection-manager": "^3.2.0 || ^4.0.0",
"amqplib": "^0.5.0 || ^0.8.0 || ^0.10.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-redis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"url": "https://github.com/jmcdo29/ogma/issues"
},
"peerDependencies": {
"@nestjs/microservices": "^9.0.0 || ^10.0.0",
"@nestjs/microservices": "^9.0.0 || ^10.0.0 || ^11.0.0",
"@ogma/nestjs-module": "workspace:^5.0.0",
"redis": "^3.0.0 || ^4.0.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/platform-socket.io/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"url": "https://github.com/jmcdo29/ogma/issues"
},
"peerDependencies": {
"@nestjs/platform-socket.io": "^9.0.0 || ^10.0.0",
"@nestjs/websockets": "^9.0.0 || ^10.0.0",
"@nestjs/platform-socket.io": "^9.0.0 || ^10.0.0 || ^11.0.0",
"@nestjs/websockets": "^9.0.0 || ^10.0.0 || ^11.0.0",
"@ogma/nestjs-module": "workspace:^5.0.0",
"socket.io": "^4.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-tcp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"url": "https://github.com/jmcdo29/ogma/issues"
},
"peerDependencies": {
"@nestjs/microservices": "^9.0.0 || ^10.0.0",
"@nestjs/microservices": "^9.0.0 || ^10.0.0 || ^11.0.0",
"@ogma/nestjs-module": "workspace:^5.0.0"
},
"peerDependenciesMeta": {
Expand Down
4 changes: 2 additions & 2 deletions packages/platform-ws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"url": "https://github.com/jmcdo29/ogma/issues"
},
"peerDependencies": {
"@nestjs/platform-ws": "^9.0.0 || ^10.0.0",
"@nestjs/websockets": "^9.0.0 || ^10.0.0",
"@nestjs/platform-ws": "^9.0.0 || ^10.0.0 || ^11.0.0",
"@nestjs/websockets": "^9.0.0 || ^10.0.0 || ^11.0.0",
"@ogma/nestjs-module": "workspace:^5.0.0",
"ws": "^7.4.2 || ^8.0.0"
},
Expand Down
Loading

0 comments on commit 2fc0c67

Please sign in to comment.