v12.6.2 (2026-11-25)
Notable changes
Fixes of 12.6.1
applyDecorators()type-checks again as a class, method and property decorator. In 12.6.1 its return type became a union that TypeScript rejects where a composed decorator is applied (TS1270), also withskipLibCheck. It now also types as a parameter decorator, which it supports since 12.6.1 – #18710
Behaviour changes
@nestjs/platform-node:res.send()pipes aReadablestream, as Fastify'sreply.send()does, withapplication/octet-streamunless aContent-Typeis set. It used to send the stream's fields as JSON (e.g. the path of a file stream) and leave the stream open. A stream that fails before anything is sent gets a 500, one that fails midway aborts the response, and the stream is destroyed when the client goes away – #18702- A
StreamableFileanswered with a 204, 205 or 304 sends no body and is not read, on Express and Node. On Fastify, a 205 response sends no body – #18711, #18713 ParseDatePiperejects a day past the end of its month in a month-name date without a year (Feb 30,Sep 31). As innew Date(), such a date is in 2001, soFeb 29is rejected as well – #18699- The missing decorator metadata warning also covers a decorated subclass compiled without metadata (e.g. with tsx or esbuild) that extends a class compiled with it, when a parameter of its own constructor would be injected as
undefined– #18698 @nestjs/commonexportsGetOrResolveOptions,SelectOptions,HttpArgumentsHost,RpcArgumentsHost,WsArgumentsHost,CorsOptions,CorsOptionsDelegateandHttpsOptionsfrom the package root – #18714
Microservices
- RabbitMQ server: a message without a handler, with a routing key it doesn't serve, or over the size limit is negatively acknowledged on the channel that delivered it. After a reconnect it used to go to the new channel, which RabbitMQ then closed (
PRECONDITION_FAILED - unknown delivery tag) – #18706 - MQTT client and server:
close()settles when the broker is gone. It used to wait for good for the broker to acknowledge packets in flight, such as a QoS 1 message – #18712, 514e3eb6ec
Bug fixes
commoncore- #18698 fix(core): warn when a subclass has no decorator metadata of its own (@yuvrajtiwary-bitmesraece)
microservices- 514e3eb6ec fix(microservices): resolve mqtt server close() when the broker is gone (@kamilmysliwiec)
- #18712 fix(microservices): resolve mqtt client close() when the broker is gone (@samuelmbabhazi)
- #18706 fix(microservices): nack RMQ deliveries on their original channel after reconnect (@rome-xi)
platform-fastify- #18713 fix(fastify): send no body for a 205 reset content response (@Johannes7549)
platform-node- #18702 fix(node): pipe a stream passed to res.send() (@thekhegay)
platform-express,platform-node- #18711 fix(express,node): send no body for a stream on a 204, 205 or 304 (@abdurrahmanriyad)
Committers: 8
- Abdur Rahman (@abdurrahmanriyad)
- KevinZhou (@pengzh1)
- Roman Khegay (@thekhegay)
- Yohannes (@Johannes7549)
- Yuvraj Tiwary (@yuvrajtiwary-bitmesraece)
- @rome-xi
- samuel mbabhazi (@samuelmbabhazi)
- wangshun (@xixi-box)