Skip to content
verdict:

NestJS 12.6.0

notable

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
  1. ## v12.6.0 (2026-11-20)
  2. #### Notable changes
  3. **New features**
  4. * `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)
  5. * `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)
  6. * gRPC server: `gracePeriod` (10,000 ms by default) for `gracefulShutdown` – [#18566](https://github.com/nestjs/nest/pull/18566)
  7. **New defaults and behaviour changes**
  8. * 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)
  9. * 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)
  10. * 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)
  11. * `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)
  12. * 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)
  13. * 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)
  14. * `@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)
  15. * `@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)
  16. * `@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)
  17. * `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)
  18. **Microservices**
  19. * 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)
  20. * 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)
  21. * 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)
  22. * Gateways reject new clients as soon as the application starts closing – [#18588](https://github.com/nestjs/nest/pull/18588)
  23. **Dependencies**
  24. * `@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
  25. * `@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
  26. * `@nestjs/platform-ws`: `ws` 8.23.0
  27. #### Features
  28. * `microservices`
  29. * [#18566](https://github.com/nestjs/nest/pull/18566) feat(microservices): add a grace period to the grpc graceful shutdown ([@mo74x](https://github.com/mo74x))
  30. * `platform-ws`
  31. * [#18589](https://github.com/nestjs/nest/pull/18589) feat(ws): add opt-in graceful shutdown to the ws adapter ([@mo74x](https://github.com/mo74x))
  32. * `core`, `platform-express`, `platform-fastify`, `platform-node`
  33. * [#18623](https://github.com/nestjs/nest/pull/18623) feat(core,express,fastify,node): infer app type from adapter ([@rafaself](https://github.com/rafaself))
  34. #### Bug fixes
  35. * `common`
  36. * [#18617](https://github.com/nestjs/nest/pull/18617) fix(common): keep an overriding @Res() from inheriting passthrough ([@mtnaskari](https://github.com/mtnaskari))
  37. * [#18612](https://github.com/nestjs/nest/pull/18612) fix(common): guard nested binary check against circular references ([@MrSatan](https://github.com/MrSatan))
  38. * [#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))
  39. * [#18597](https://github.com/nestjs/nest/pull/18597) fix(common): keep configurable module builder from mutating options ([@yuvrajtiwary-bitmesraece](https://github.com/yuvrajtiwary-bitmesraece))
  40. * [#18579](https://github.com/nestjs/nest/pull/18579) fix(common): keep an optional leading group in normalize path ([@rafay247](https://github.com/rafay247))
  41. * [#18571](https://github.com/nestjs/nest/pull/18571) fix(common): allow no options with extras in configurable module builder ([@mo74x](https://github.com/mo74x))
  42. * [#18574](https://github.com/nestjs/nest/pull/18574) fix(common): copy own `__proto__` keys of default values ([@ragib-mrb](https://github.com/ragib-mrb))
  43. * [#18551](https://github.com/nestjs/nest/pull/18551) fix(common): preserve sparse array length in default value pipe ([@Rio3210](https://github.com/Rio3210))
  44. * `core`
  45. * [#18609](https://github.com/nestjs/nest/pull/18609) fix(core): match host patterns when detecting route conflicts ([@Johannes7549](https://github.com/Johannes7549))
  46. * [#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))
  47. * [#18582](https://github.com/nestjs/nest/pull/18582) fix(core): discover providers that inherit a discovery decorator ([@SudeepGowda55](https://github.com/SudeepGowda55))
  48. * [#18568](https://github.com/nestjs/nest/pull/18568) fix(core): preserve handler names on deferred routes ([@mo74x](https://github.com/mo74x))
  49. * [#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))
  50. * [#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))
  51. * `microservices`
  52. * [#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))
  53. * [#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))
  54. * [#18594](https://github.com/nestjs/nest/pull/18594) fix(microservices): stop a redis connection attempt once closed ([@rafay247](https://github.com/rafay247))
  55. * [#18584](https://github.com/nestjs/nest/pull/18584) fix(microservices): evict pre-suback mqtt and redis requests on close ([@mo74x](https://github.com/mo74x))
  56. * [#18583](https://github.com/nestjs/nest/pull/18583) fix(microservices): evict pending kafka requests on stop or rebalance ([@mo74x](https://github.com/mo74x))
  57. * [#18585](https://github.com/nestjs/nest/pull/18585) fix(microservices): fail pending rmq requests on reply consumer cancel ([@mo74x](https://github.com/mo74x))
  58. * [#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))
  59. * [#18535](https://github.com/nestjs/nest/pull/18535) fix(microservices): drain pending kafka replies before closing ([@IbrahimHafez1](https://github.com/IbrahimHafez1))
  60. * `platform-fastify`
  61. * [#18596](https://github.com/nestjs/nest/pull/18596) fix(fastify): clean up uploads of pipelined requests on close ([@MrSatan](https://github.com/MrSatan))
  62. * [#18555](https://github.com/nestjs/nest/pull/18555) fix(fastify): keep the multipart error as the cause of 4xx ([@prkomb](https://github.com/prkomb))
  63. * `platform-node`
  64. * [#18611](https://github.com/nestjs/nest/pull/18611) fix(node): preserve optional parameters in shared routes ([@Rio3210](https://github.com/Rio3210))
  65. * [#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))
  66. * `testing`
  67. * [#18618](https://github.com/nestjs/nest/pull/18618) fix(testing): apply the logger and forceConsole options as NestFactory does ([@mtnaskari](https://github.com/mtnaskari))
  68. * `websockets`
  69. * [#18595](https://github.com/nestjs/nest/pull/18595) fix(websockets): handle async exception filters in lifecycle hooks ([@MrSatan](https://github.com/MrSatan))
  70. * [#18588](https://github.com/nestjs/nest/pull/18588) fix(websockets): reject new clients on close and guard adapter dispose ([@mo74x](https://github.com/mo74x))
  71. * `core`, `microservices`
  72. * [#18517](https://github.com/nestjs/nest/pull/18517) fix(core): resolve the context class through the class-ref registry ([@micalevisk](https://github.com/micalevisk))
  73. #### Enhancements
  74. * `core`
  75. * [#18607](https://github.com/nestjs/nest/pull/18607) perf(core): reduce HTTP Observable response overhead ([@MrSatan](https://github.com/MrSatan))
  76. * [#18593](https://github.com/nestjs/nest/pull/18593) perf(core): build the interceptor chain without extra rxjs layers ([@thekhegay](https://github.com/thekhegay))
  77. * `platform-fastify`
  78. * [#18561](https://github.com/nestjs/nest/pull/18561) perf(fastify): fold the built-in request hooks into one ([@thekhegay](https://github.com/thekhegay))
  79. * `core`, `microservices`, `websockets`
  80. * [#18559](https://github.com/nestjs/nest/pull/18559) perf(core): resolve rpc, ws and external params without a promise ([@thekhegay](https://github.com/thekhegay))
  81. * `common`, `core`, `microservices`, `platform-express`, `platform-fastify`, `platform-node`, `testing`, `websockets`
  82. * [#18560](https://github.com/nestjs/nest/pull/18560) perf: re-export type-only modules with export type ([@thekhegay](https://github.com/thekhegay))
  83. #### Docs
  84. * `common`
  85. * [#18528](https://github.com/nestjs/nest/pull/18528) docs(common): fix the @param tags of NotImplementedException ([@farisbasha](https://github.com/farisbasha))
  86. * `common`, `core`, `microservices`, `platform-express`, `platform-fastify`, `platform-node`, `platform-socket.io`, `platform-ws`, `testing`, `websockets`
  87. * [06bc927450](https://github.com/nestjs/nest/commit/06bc927450917f9ed74228c3957c6b6734d6de4d) docs: copy the current readme into the packages ([@kamilmysliwiec](https://github.com/kamilmysliwiec))
  88. #### Committers: 20
  89. - Andrey Mudri ([@andreymudri](https://github.com/andreymudri))
  90. - Asad Ali Shah ([@Asadshah7950](https://github.com/Asadshah7950))
  91. - Faris Basha TM ([@farisbasha](https://github.com/farisbasha))
  92. - Ibrahim Hafez ([@IbrahimHafez1](https://github.com/IbrahimHafez1))
  93. - Kamil Mysliwiec ([@kamilmysliwiec](https://github.com/kamilmysliwiec))
  94. - Khagani Mamedov ([@prkomb](https://github.com/prkomb))
  95. - Matin Askari | متین عسکری ([@mtnaskari](https://github.com/mtnaskari))
  96. - Micael Levi L. Cavalcante ([@micalevisk](https://github.com/micalevisk))
  97. - RAFAY SHAIKH ([@rafay247](https://github.com/rafay247))
  98. - Rafael ([@rafaself](https://github.com/rafaself))
  99. - Ragib MRB ([@ragib-mrb](https://github.com/ragib-mrb))
  100. - Roman Khegay ([@thekhegay](https://github.com/thekhegay))
  101. - Sudeep Gowda ([@SudeepGowda55](https://github.com/SudeepGowda55))
  102. - Surafel Workayehu ([@Rio3210](https://github.com/Rio3210))
  103. - Thiago Nascimento ([@ThiagoACNascimento](https://github.com/ThiagoACNascimento))
  104. - Yohannes ([@Johannes7549](https://github.com/Johannes7549))
  105. - Yuvraj Tiwary ([@yuvrajtiwary-bitmesraece](https://github.com/yuvrajtiwary-bitmesraece))
  106. - Zelalem Habtamu ([@zelalem61](https://github.com/zelalem61))
  107. - [@MrSatan](https://github.com/MrSatan)
  108. - mohamed_arafa ([@mo74x](https://github.com/mo74x))

view on githubdetected 2026-12-04 via npm