@nestjs/common
12.5.1 · 16 Nov 2026MIT26M / weekRepositoryHomepagenpmAtom feed
Upgrading @nestjs/common From 12.5.0 to 12.6.0
2 releases in betweenevery note read
Release by release
- New
microservices: feat(microservices): add a grace period to the grpc graceful shutdown (@mo74x)
- New
platform-ws: feat(ws): add opt-in graceful shutdown to the ws adapter (@mo74x)
- New
core, platform-express, platform-fastify, platform-node: feat(core,express,fastify,node): infer app type from adapter (@rafaself)
- New
core: perf(core): reduce HTTP Observable response overhead (@MrSatan)
- New
- New
core: feat(core): accept module metadata as the root module (@kamilmysliwiec)
- New
microservices: feat(microservices): graceful shutdown for the rmq server (@samuelmbabhazi)
- New
microservices: feat(microservices): graceful shutdown for the tcp server (@samuelmbabhazi)
- New
microservices: feat(microservices): graceful shutdown for the mqtt server (@samuelmbabhazi)
- New
19 other lines we could not sort, mostly version bumps
- 12.6.0
NestFactory.create()infers the application type from the adapter:NestFactory.create(AppModule, new FastifyAdapter())returns aNestFastifyApplicationwith no type argument, and the same goes forExpressAdapterandNodeAdapter. An explicit type argument still works. A custom adapter declares its application type as the fourth type argument ofAbstractHttpAdapter– #18623 - 12.6.0
WsAdaptertakesgracefulShutdown(falseby default) andgracePeriod(10,000 ms by default). WithgracefulShutdown, closing the application stops accepting connections (an upgrade on a server shared with the HTTP adapter gets a 503), ignores new messages, waits up togracePeriodfor message handlers and pending replies, and closes each socket with code 1001 – #18589 - 12.6.0
gRPC server:
gracePeriod(10,000 ms by default) forgracefulShutdown– #18566 - 12.6.0
A custom parameter decorator that gives the handler the response object now passes it as it is, and no pipe runs on it, as with
@Res(), whatever the adapter. On Fastify such a handler used to never run – #18600 - 12.6.0
A method that overrides a
@Res({ passthrough: true })handler with a plain@Res()no longer inheritspassthrough– #18617 - 12.6.0
DiscoveryServicefinds a class that extends a class decorated with aDiscoveryService.createDecorator()decorator under that decorator – #18582 - 12.6.0
Route conflict detection reads string hosts as patterns, so a route on
:tenant.example.comis found to overlap one onadmin.example.com, and such routes may now be reported – #18609 - 12.6.0
The
createNestApplication()andcreateNestMicroservice()of a testing module applyloggerandforceConsoleasNestFactorydoes:logger: truekeeps the logger (it used to turn logging off), andforceConsole: truelogs throughconsole– #18618 - 12.6.0
@nestjs/platform-node: aContent-Typeset withres.setHeader()getscharset=utf-8whenres.send()sends a string, as on Express – #18527 - 12.6.0
@nestjs/platform-fastify: the exception for a failed upload carries the parser's error as itscause, as on Express – #18555
4 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.