yarn @nestjs/common 12.6.2
v12.6.2

one hour ago

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 with skipLibCheck. It now also types as a parameter decorator, which it supports since 12.6.1 – #18710

Behaviour changes

  • @nestjs/platform-node: res.send() pipes a Readable stream, as Fastify's reply.send() does, with application/octet-stream unless a Content-Type is 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 StreamableFile answered 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
  • ParseDatePipe rejects a day past the end of its month in a month-name date without a year (Feb 30, Sep 31). As in new Date(), such a date is in 2001, so Feb 29 is 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/common exports GetOrResolveOptions, SelectOptions, HttpArgumentsHost, RpcArgumentsHost, WsArgumentsHost, CorsOptions, CorsOptionsDelegate and HttpsOptions from 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

  • common
    • #18710 fix(common): restore decorator signatures for applyDecorators (@xixi-box)
    • #18714 fix(common): export the option and host types of the application interfaces from the package root (@Johannes7549)
    • #18699 fix(common): reject days past month end in month-name dates with no year (@pengzh1)
  • core
  • microservices
  • platform-fastify
  • platform-node
  • platform-express, platform-node

Committers: 8

Don't miss a new common release

NewReleases is sending notifications on new releases.