@nestjs/common
12.5.1 · 16 Nov 2026MIT26M / weekRepositoryHomepagenpmAtom feed
Upgrading @nestjs/common From 12.0.3 to 12.6.0
16 releases in betweennotes for 11
- 2+
- changes to make
- 0
- advisories fixed
- 21+
- new
- 377+
- fixes
Counted from 11 of 16 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking12.2.0
- Deprecated12.2.0
Security
- 12.3.0
platform-express: fix(deps): update dependency multer to v2.5.0 [security] (@renovate[bot])
- 12.1.0
common, core, platform-fastify: feat(common,core,fastify): built-in CSRF protection and security headers (@kamilmysliwiec)
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
- Fixed
platform-fastify: fix(fastify): fail an object-mode file stream on a non-bytes chunk (@kamilmysliwiec)
- Fixed
platform-fastify: fix(fastify): release file streams of pipelined requests on close (@kamilmysliwiec)
- Fixed
platform-fastify: fix(fastify): handle a failed file stream on a raw response (@kamilmysliwiec)
- Fixed
platform-fastify: fix(fastify): match routes whose parameter names the router misreads (@kamilmysliwiec)
- Fixed
12.4.2no release note
- New
platform-node: feat(node): inject requests into the node adapter like the fastify one (@thekhegay)
- New
platform-node: feat(node): set req.route on the node adapter like express does (@thekhegay)
- Fixed
core: fix(core): roll back modules on failed lazy load (@Asadshah7950)
- Fixed
common, core: fix(core,common): warn when decorator metadata is missing (@kamilmysliwiec)
- New
- New
common, core: feat(core,common): send a web response or stream a handler returns (@kamilmysliwiec)
- Fixed
common: fix(common): keep the fields of grouped item errors in parse array pipe (@pavstev)
- Fixed
common: fix(common): keep console logger from mutating the caller options (@pavstev)
- Fixed
core, testing: fix(core): apply a provider override whose value is undefined (@pavstev)
- Fixed
core: fix(core): run middleware on subpaths next to an all-methods route (@beyondwin)
- Fixed
core: fix(core): cache external handler metadata per context type (@kamilmysliwiec)
- New
12.3.1 – 12.3.33 releases, no release note
- Security
platform-express: fix(deps): update dependency multer to v2.5.0 [security] (@renovate[bot])
- Fixed
common: fix(common): report the detected file type in file type errors (@DenisCDev)
- Fixed
common: fix(common): avoid throwing for arrow prototype constructors (@fengxueweilai)
- Fixed
common: fix(common): abort the response when a streamable file fails midway (@thekhegay)
- Security
77 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
10 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.