Packages

@nestjs/common

12.5.1 · 16 Nov 2026MIT26M / weekRepositoryHomepagenpmAtom feed

Upgrading @nestjs/common From 12.5.1 to 12.6.0

1 release in betweenevery note read

  1. 12.5.1yours
  2. 12.6.0target
0
changes to make
0
advisories fixed
8
new
30
fixes

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)

19 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

2 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.