NestJS 12.6.2 applyDecorators type checks and streams Readable objects as octet‑stream
NestJS 12.6.2 introduces type‑checked applyDecorators for all decorator kinds, makes res.send() stream Readable objects as application/octet-stream, and ensures StreamableFile responses with HTTP 204, 205, or 304 omit the body.
NestJS 12.6.2 was released on 2026‑11‑25. The update adds comprehensive type checking for applyDecorators and changes how response streams are handled across platforms. It also modifies StreamableFile behavior for certain HTTP status codes.
applyDecorators() now type‑checks as a class, method, property, and parameter decorator, fixing the TS1270 error introduced in 12.6.1. The missing decorator metadata warning was extended to cover subclasses compiled without metadata that extend classes compiled with metadata, preventing undefined injection.
On the server side, @nestjs/platform-node res.send() now pipes a Readable stream with content-type application/octet-stream unless a different Content‑Type is set, matching Fastify behavior. The same platform also correctly pipes a stream passed to it. Both platform‑express and platform‑node now send no body for streams on HTTP 204, 205, or 304 responses, and platform‑fastify sends no body for HTTP 205 Reset Content responses. StreamableFile answers with HTTP 204, 205, or 304 now send no body and are not read on Express and Node; Fastify also omits the body for 205 responses. The breaking change notes that res.send() now streams Readable objects as octet‑stream, which can alter previous JSON‑like output, and that StreamableFile responses with those status codes no longer include a body, affecting callers that expected data.
ParseDatePipe now rejects month‑name dates without a year that exceed the month’s length, such as Feb 30, Sep 31, and also rejects Feb 29. @nestjs/common now re‑exports GetOrResolveOptions, SelectOptions, HttpArgumentsHost, RpcArgumentsHost, WsArgumentsHost, CorsOptions, CorsOptionsDelegate, and HttpsOptions from the package root.
RabbitMQ microservices now negatively acknowledge messages without a handler, with an unknown routing key, or exceeding the size limit on the original channel after a reconnect. The breaking change clarifies that such messages are now negatively acknowledged on the original channel after reconnect. Both MQTT client and server close() now resolve immediately when the broker disappears, instead of waiting for in‑flight packet acknowledgments.