pending: summary queued
Detected 2026-12-04 at 05:55 UTC. The summary is written on the next update; the full release notes are already below.
release-notesgithub.com/nestjs/nest · 118 lines
- ## v12.6.0 (2026-11-20)
- #### Notable changes
- **New features**
- * `NestFactory.create()` infers the application type from the adapter: `NestFactory.create(AppModule, new FastifyAdapter())` returns a `NestFastifyApplication` with no type argument, and the same goes for `ExpressAdapter` and `NodeAdapter`. An explicit type argument still works. A custom adapter declares its application type as the fourth type argument of `AbstractHttpAdapter` – [#18623](https://github.com/nestjs/nest/pull/18623)
- * `WsAdapter` takes `gracefulShutdown` (`false` by default) and `gracePeriod` (10,000 ms by default). With `gracefulShutdown`, closing the application stops accepting connections (an upgrade on a server shared with the HTTP adapter gets a 503), ignores new messages, waits up to `gracePeriod` for message handlers and pending replies, and closes each socket with code 1001 – [#18589](https://github.com/nestjs/nest/pull/18589)
- * gRPC server: `gracePeriod` (10,000 ms by default) for `gracefulShutdown` – [#18566](https://github.com/nestjs/nest/pull/18566)
- **New defaults and behaviour changes**
- * gRPC server with `gracefulShutdown`: closing used to wait for the calls in progress with no limit; calls still running after `gracePeriod` are now cancelled. Raise `gracePeriod` for long-running streams – [#18566](https://github.com/nestjs/nest/pull/18566)
- * 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](https://github.com/nestjs/nest/pull/18600)
- * A method that overrides a `@Res({ passthrough: true })` handler with a plain `@Res()` no longer inherits `passthrough` – [#18617](https://github.com/nestjs/nest/pull/18617)
- * `DiscoveryService` finds a class that extends a class decorated with a `DiscoveryService.createDecorator()` decorator under that decorator – [#18582](https://github.com/nestjs/nest/pull/18582)
- * Route conflict detection reads string hosts as patterns, so a route on `:tenant.example.com` is found to overlap one on `admin.example.com`, and such routes may now be reported – [#18609](https://github.com/nestjs/nest/pull/18609)
- * The `createNestApplication()` and `createNestMicroservice()` of a testing module apply `logger` and `forceConsole` as `NestFactory` does: `logger: true` keeps the logger (it used to turn logging off), and `forceConsole: true` logs through `console` – [#18618](https://github.com/nestjs/nest/pull/18618)
- * `@nestjs/platform-node`: a `Content-Type` set with `res.setHeader()` gets `charset=utf-8` when `res.send()` sends a string, as on Express – [#18527](https://github.com/nestjs/nest/pull/18527)
- * `@nestjs/platform-fastify`: the exception for a failed upload carries the parser's error as its `cause`, as on Express – [#18555](https://github.com/nestjs/nest/pull/18555)
- * `@nestjs/platform-fastify`: the router answers a request whose target does not start with `/` (other than `*` and absolute-form URLs) with a 400 (`FST_ERR_BAD_URL`), after `find-my-way` 9.10.2; such a request used to reach the not-found handler – [#18569](https://github.com/nestjs/nest/pull/18569)
- * `inject()` on `@nestjs/platform-fastify` and `@nestjs/platform-node`: a response to `HEAD`, and a 204 or 304 response, has no body, after `light-my-request` 6.8.1 – [#18570](https://github.com/nestjs/nest/pull/18570)
- **Microservices**
- * NATS and MQTT servers closed before their client connects: `listen()` fails with "Connection closed" instead of starting – [#18602](https://github.com/nestjs/nest/pull/18602), [#18603](https://github.com/nestjs/nest/pull/18603)
- * Clients fail pending requests with "Connection closed" where they used to leave them waiting: Kafka when the reply consumer stops or crashes, or a rebalance moves its reply partition away – [#18583](https://github.com/nestjs/nest/pull/18583); MQTT and Redis when closed before the reply subscription is confirmed – [#18584](https://github.com/nestjs/nest/pull/18584); RabbitMQ when the broker cancels the direct reply-to consumer – [#18585](https://github.com/nestjs/nest/pull/18585)
- * Kafka server: closing waits for the replies in progress, for `gracePeriod` (10 s by default) at most, after the consumer disconnects – [#18535](https://github.com/nestjs/nest/pull/18535)
- * Gateways reject new clients as soon as the application starts closing – [#18588](https://github.com/nestjs/nest/pull/18588)
- **Dependencies**
- * `@nestjs/platform-fastify`: `@fastify/middie` 9.3.7, `@fastify/cors` 11.4.3, `@fastify/formbody` 9.0.2, `find-my-way` 9.10.2, `light-my-request` 6.8.1
- * `@nestjs/platform-node`: `@fastify/proxy-addr` 5.1.3, `encodeurl` 2.0.3, `find-my-way` 9.10.2, `light-my-request` 6.8.1
- * `@nestjs/platform-ws`: `ws` 8.23.0
- #### Features
- * `microservices`
- * [#18566](https://github.com/nestjs/nest/pull/18566) feat(microservices): add a grace period to the grpc graceful shutdown ([@mo74x](https://github.com/mo74x))
- * `platform-ws`
- * [#18589](https://github.com/nestjs/nest/pull/18589) feat(ws): add opt-in graceful shutdown to the ws adapter ([@mo74x](https://github.com/mo74x))
- * `core`, `platform-express`, `platform-fastify`, `platform-node`
- * [#18623](https://github.com/nestjs/nest/pull/18623) feat(core,express,fastify,node): infer app type from adapter ([@rafaself](https://github.com/rafaself))
- #### Bug fixes
- * `common`
- * [#18617](https://github.com/nestjs/nest/pull/18617) fix(common): keep an overriding @Res() from inheriting passthrough ([@mtnaskari](https://github.com/mtnaskari))
- * [#18612](https://github.com/nestjs/nest/pull/18612) fix(common): guard nested binary check against circular references ([@MrSatan](https://github.com/MrSatan))
- * [#18598](https://github.com/nestjs/nest/pull/18598) fix(common): redact map keys, skip array holes and guard flat params ([@MrSatan](https://github.com/MrSatan))
- * [#18597](https://github.com/nestjs/nest/pull/18597) fix(common): keep configurable module builder from mutating options ([@yuvrajtiwary-bitmesraece](https://github.com/yuvrajtiwary-bitmesraece))
- * [#18579](https://github.com/nestjs/nest/pull/18579) fix(common): keep an optional leading group in normalize path ([@rafay247](https://github.com/rafay247))
- * [#18571](https://github.com/nestjs/nest/pull/18571) fix(common): allow no options with extras in configurable module builder ([@mo74x](https://github.com/mo74x))
- * [#18574](https://github.com/nestjs/nest/pull/18574) fix(common): copy own `__proto__` keys of default values ([@ragib-mrb](https://github.com/ragib-mrb))
- * [#18551](https://github.com/nestjs/nest/pull/18551) fix(common): preserve sparse array length in default value pipe ([@Rio3210](https://github.com/Rio3210))
- * `core`
- * [#18609](https://github.com/nestjs/nest/pull/18609) fix(core): match host patterns when detecting route conflicts ([@Johannes7549](https://github.com/Johannes7549))
- * [#18600](https://github.com/nestjs/nest/pull/18600) fix(core): pass the response a custom decorator gives as it is ([@kamilmysliwiec](https://github.com/kamilmysliwiec))
- * [#18582](https://github.com/nestjs/nest/pull/18582) fix(core): discover providers that inherit a discovery decorator ([@SudeepGowda55](https://github.com/SudeepGowda55))
- * [#18568](https://github.com/nestjs/nest/pull/18568) fix(core): preserve handler names on deferred routes ([@mo74x](https://github.com/mo74x))
- * [#18567](https://github.com/nestjs/nest/pull/18567) fix(core): apply non-uri version filter once per multi-path route ([@mo74x](https://github.com/mo74x))
- * [#18547](https://github.com/nestjs/nest/pull/18547) fix(core): keep the nest functions in the repl after ".clear" ([@yuvrajtiwary-bitmesraece](https://github.com/yuvrajtiwary-bitmesraece))
- * `microservices`
- * [#18603](https://github.com/nestjs/nest/pull/18603) fix(microservices): stop mqtt server startup when closed before client connects ([@ragib-mrb](https://github.com/ragib-mrb))
- * [#18602](https://github.com/nestjs/nest/pull/18602) fix(microservices): stop nats server startup when closed before client connects ([@ragib-mrb](https://github.com/ragib-mrb))
- * [#18594](https://github.com/nestjs/nest/pull/18594) fix(microservices): stop a redis connection attempt once closed ([@rafay247](https://github.com/rafay247))
- * [#18584](https://github.com/nestjs/nest/pull/18584) fix(microservices): evict pre-suback mqtt and redis requests on close ([@mo74x](https://github.com/mo74x))
- * [#18583](https://github.com/nestjs/nest/pull/18583) fix(microservices): evict pending kafka requests on stop or rebalance ([@mo74x](https://github.com/mo74x))
- * [#18585](https://github.com/nestjs/nest/pull/18585) fix(microservices): fail pending rmq requests on reply consumer cancel ([@mo74x](https://github.com/mo74x))
- * [#18545](https://github.com/nestjs/nest/pull/18545) fix(microservices): stop an rmq connection attempt once the client is closed ([@Asadshah7950](https://github.com/Asadshah7950))
- * [#18535](https://github.com/nestjs/nest/pull/18535) fix(microservices): drain pending kafka replies before closing ([@IbrahimHafez1](https://github.com/IbrahimHafez1))
- * `platform-fastify`
- * [#18596](https://github.com/nestjs/nest/pull/18596) fix(fastify): clean up uploads of pipelined requests on close ([@MrSatan](https://github.com/MrSatan))
- * [#18555](https://github.com/nestjs/nest/pull/18555) fix(fastify): keep the multipart error as the cause of 4xx ([@prkomb](https://github.com/prkomb))
- * `platform-node`
- * [#18611](https://github.com/nestjs/nest/pull/18611) fix(node): preserve optional parameters in shared routes ([@Rio3210](https://github.com/Rio3210))
- * [#18527](https://github.com/nestjs/nest/pull/18527) fix(node): add the charset to a content type set natively on send ([@andreymudri](https://github.com/andreymudri))
- * `testing`
- * [#18618](https://github.com/nestjs/nest/pull/18618) fix(testing): apply the logger and forceConsole options as NestFactory does ([@mtnaskari](https://github.com/mtnaskari))
- * `websockets`
- * [#18595](https://github.com/nestjs/nest/pull/18595) fix(websockets): handle async exception filters in lifecycle hooks ([@MrSatan](https://github.com/MrSatan))
- * [#18588](https://github.com/nestjs/nest/pull/18588) fix(websockets): reject new clients on close and guard adapter dispose ([@mo74x](https://github.com/mo74x))
- * `core`, `microservices`
- * [#18517](https://github.com/nestjs/nest/pull/18517) fix(core): resolve the context class through the class-ref registry ([@micalevisk](https://github.com/micalevisk))
- #### Enhancements
- * `core`
- * [#18607](https://github.com/nestjs/nest/pull/18607) perf(core): reduce HTTP Observable response overhead ([@MrSatan](https://github.com/MrSatan))
- * [#18593](https://github.com/nestjs/nest/pull/18593) perf(core): build the interceptor chain without extra rxjs layers ([@thekhegay](https://github.com/thekhegay))
- * `platform-fastify`
- * [#18561](https://github.com/nestjs/nest/pull/18561) perf(fastify): fold the built-in request hooks into one ([@thekhegay](https://github.com/thekhegay))
- * `core`, `microservices`, `websockets`
- * [#18559](https://github.com/nestjs/nest/pull/18559) perf(core): resolve rpc, ws and external params without a promise ([@thekhegay](https://github.com/thekhegay))
- * `common`, `core`, `microservices`, `platform-express`, `platform-fastify`, `platform-node`, `testing`, `websockets`
- * [#18560](https://github.com/nestjs/nest/pull/18560) perf: re-export type-only modules with export type ([@thekhegay](https://github.com/thekhegay))
- #### Docs
- * `common`
- * [#18528](https://github.com/nestjs/nest/pull/18528) docs(common): fix the @param tags of NotImplementedException ([@farisbasha](https://github.com/farisbasha))
- * `common`, `core`, `microservices`, `platform-express`, `platform-fastify`, `platform-node`, `platform-socket.io`, `platform-ws`, `testing`, `websockets`
- * [06bc927450](https://github.com/nestjs/nest/commit/06bc927450917f9ed74228c3957c6b6734d6de4d) docs: copy the current readme into the packages ([@kamilmysliwiec](https://github.com/kamilmysliwiec))
- #### Committers: 20
- - Andrey Mudri ([@andreymudri](https://github.com/andreymudri))
- - Asad Ali Shah ([@Asadshah7950](https://github.com/Asadshah7950))
- - Faris Basha TM ([@farisbasha](https://github.com/farisbasha))
- - Ibrahim Hafez ([@IbrahimHafez1](https://github.com/IbrahimHafez1))
- - Kamil Mysliwiec ([@kamilmysliwiec](https://github.com/kamilmysliwiec))
- - Khagani Mamedov ([@prkomb](https://github.com/prkomb))
- - Matin Askari | متین عسکری ([@mtnaskari](https://github.com/mtnaskari))
- - Micael Levi L. Cavalcante ([@micalevisk](https://github.com/micalevisk))
- - RAFAY SHAIKH ([@rafay247](https://github.com/rafay247))
- - Rafael ([@rafaself](https://github.com/rafaself))
- - Ragib MRB ([@ragib-mrb](https://github.com/ragib-mrb))
- - Roman Khegay ([@thekhegay](https://github.com/thekhegay))
- - Sudeep Gowda ([@SudeepGowda55](https://github.com/SudeepGowda55))
- - Surafel Workayehu ([@Rio3210](https://github.com/Rio3210))
- - Thiago Nascimento ([@ThiagoACNascimento](https://github.com/ThiagoACNascimento))
- - Yohannes ([@Johannes7549](https://github.com/Johannes7549))
- - Yuvraj Tiwary ([@yuvrajtiwary-bitmesraece](https://github.com/yuvrajtiwary-bitmesraece))
- - Zelalem Habtamu ([@zelalem61](https://github.com/zelalem61))
- - [@MrSatan](https://github.com/MrSatan)
- - mohamed_arafa ([@mo74x](https://github.com/mo74x))