Packages

@nestjs/common

12.5.1 · 16 Nov 2026MIT26M / weekRepositoryHomepagenpmAtom feed

Upgrading @nestjs/common From 12.1.1 to 12.6.0

13 releases in betweennotes for 8

Other targets from 12.1.1Latest12.5.1
  1. 12.1.1yours
  2. 2 releases
  3. 12.2.0breaking
  4. 12.3.0security
  5. 8 releases
  6. 12.6.0target
2+
changes to make
0
advisories fixed
18+
new
347+
fixes

Counted from 8 of 13 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking12.2.0
  • Deprecated12.2.0

Security

  • platform-express: fix(deps): update dependency multer to v2.5.0 [security] (@renovate[bot])

    12.3.0

Release by release

  1. 12.6.0

    20 Nov 20268 new · 30 fixes
    • New

      microservices: feat(microservices): add a grace period to the grpc graceful shutdown (@mo74x)

    • New

      platform-ws: feat(ws): add opt-in graceful shutdown to the ws adapter (@mo74x)

    • New

      core, platform-express, platform-fastify, platform-node: feat(core,express,fastify,node): infer app type from adapter (@rafaself)

    • New

      core: perf(core): reduce HTTP Observable response overhead (@MrSatan)

  2. 12.5.1

    16 Nov 20265 new · 4 fixes
    • New

      core: feat(core): accept module metadata as the root module (@kamilmysliwiec)

    • New

      microservices: feat(microservices): graceful shutdown for the rmq server (@samuelmbabhazi)

    • New

      microservices: feat(microservices): graceful shutdown for the tcp server (@samuelmbabhazi)

    • New

      microservices: feat(microservices): graceful shutdown for the mqtt server (@samuelmbabhazi)

  3. 12.5.0

    12 Nov 2026163 fixes
    • Fixed

      platform-fastify: fix(fastify): fail an object-mode file stream on a non-bytes chunk (@kamilmysliwiec)

    • Fixed

      platform-fastify: fix(fastify): release file streams of pipelined requests on close (@kamilmysliwiec)

    • Fixed

      platform-fastify: fix(fastify): handle a failed file stream on a raw response (@kamilmysliwiec)

    • Fixed

      platform-fastify: fix(fastify): match routes whose parameter names the router misreads (@kamilmysliwiec)

  4. 12.4.2no release note

  5. 12.4.1

    9 Nov 20262 new · 2 fixes
    • New

      platform-node: feat(node): inject requests into the node adapter like the fastify one (@thekhegay)

    • New

      platform-node: feat(node): set req.route on the node adapter like express does (@thekhegay)

    • Fixed

      core: fix(core): roll back modules on failed lazy load (@Asadshah7950)

    • Fixed

      common, core: fix(core,common): warn when decorator metadata is missing (@kamilmysliwiec)

  6. 12.4.0

    6 Nov 20261 new · 5 fixes
    • New

      common, core: feat(core,common): send a web response or stream a handler returns (@kamilmysliwiec)

    • Fixed

      common: fix(common): keep the fields of grouped item errors in parse array pipe (@pavstev)

    • Fixed

      common: fix(common): keep console logger from mutating the caller options (@pavstev)

    • Fixed

      core, testing: fix(core): apply a provider override whose value is undefined (@pavstev)

    • Fixed

      core: fix(core): run middleware on subpaths next to an all-methods route (@beyondwin)

    • Fixed

      core: fix(core): cache external handler metadata per context type (@kamilmysliwiec)

  7. 12.3.1 – 12.3.33 releases, no release note

  8. 12.3.0

    Security fix27 Oct 202617 fixes
    • Security

      platform-express: fix(deps): update dependency multer to v2.5.0 [security] (@renovate[bot])

    • Fixed

      common: fix(common): report the detected file type in file type errors (@DenisCDev)

    • Fixed

      common: fix(common): avoid throwing for arrow prototype constructors (@fengxueweilai)

    • Fixed

      common: fix(common): abort the response when a streamable file fails midway (@thekhegay)

77 other lines we could not sort, mostly version bumps
  • 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

    12.6.0
  • 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

    12.6.0
  • gRPC server: gracePeriod (10,000 ms by default) for gracefulShutdown – #18566

    12.6.0
  • 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

    12.6.0
  • A method that overrides a @Res({ passthrough: true }) handler with a plain @Res() no longer inherits passthrough – #18617

    12.6.0
  • DiscoveryService finds a class that extends a class decorated with a DiscoveryService.createDecorator() decorator under that decorator – #18582

    12.6.0
  • 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

    12.6.0
  • 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

    12.6.0
  • @nestjs/platform-node: a Content-Type set with res.setHeader() gets charset=utf-8 when res.send() sends a string, as on Express – #18527

    12.6.0
  • @nestjs/platform-fastify: the exception for a failed upload carries the parser's error as its cause, as on Express – #18555

    12.6.0

8 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.