NestJS 12.6 adds graceful shutdown for WebSockets and puts a time limit on gRPC shutdown
NestJS 12.6.0 was released on 20 November. The first change removes a type argument: NestFactory.create(AppModule, new FastifyAdapter()) now returns a NestFastifyApplication on its own, and the same holds for ExpressAdapter and NodeAdapter. An explicit type argument still works, and a custom adapter declares its application type as the fourth type argument of AbstractHttpAdapter.
WsAdapter gains two options, gracefulShutdown, off by default, and gracePeriod, 10,000 milliseconds by default. With graceful shutdown on, closing the application stops accepting connections, answers an upgrade on a server shared with the HTTP adapter with a 503, ignores new messages, waits up to the grace period for handlers and pending replies, and closes each socket with code 1001. The gRPC server gets the same gracePeriod option, and with it a change in behaviour: closing used to wait for calls in progress with no limit, and calls still running after the grace period are now cancelled. The release notes advise raising gracePeriod for long-running streams.
Other behaviour changes concern handlers that take the response object. A custom parameter decorator that hands the handler the response now passes it unchanged with no pipe, as @Res() does, whatever the adapter; on Fastify such a handler used to never run. Route conflict detection now reads string hosts as patterns, so a route on :tenant.example.com is reported as overlapping one on admin.example.com, and testing modules apply the logger and forceConsole options the way NestFactory does.

Why it matters
The gRPC change shortens shutdowns that used to wait indefinitely. Services with streams that run longer than ten seconds will see them cut when an instance stops unless gracePeriod is raised before upgrading.