NestJS 12.6.3
NestJS 12.6.3 was released on November 26, 2026. It is a patch release for the 12.6 line and the third one in three days, following 12.6.1 and 12.6.2. Seven contributors landed changes across the testing, core, microservices, platform-fastify, and websockets packages.
Overview
The headline addition is instrument support in the testing module. Test.createTestingModule() now accepts the instrument option, matching NestFactory.create(). The instanceDecorator supplied there decorates the module's providers, including providers that a test overrides, and any application or microservice created from that module inherits the decorator unless it sets its own. Instances created through resolve(), meaning request-scoped and transient providers, also pass through the decorator. In practice this lets integration tests exercise code paths that observe instrumentation at runtime instead of logging a warning about the missing option.
Behaviour Changes
- Route conflict detection now compares paths the way the underlying router matches them. Under Express, which matches paths case insensitively,
GET /usersandGET /Userscount as the same route, so a duplicate set toerrorstops bootstrap. Fastify keeps its case-sensitive default, and the Node adapter and Express with case sensitive routing enabled are unaffected. - Exclusions without a version in
MiddlewareConsumer.exclude()and in theexcludeoption ofenableCsrfProtection()now also cover the default version's routes, matching whatforRoutes()already did. @Body('key')against a falsy primitive body ("",0,false) resolves toundefined. Previously the whole body came through.ParseDatePiperejects days past the end of the month in numeric dates without a year (2/30,4/31, and2/29since such dates default to 2001) and in year-first month-name dates that follow a weekday.- Security headers reject an
undefinedentry insidereferrerPolicy.policythe same way any other invalid value is rejected. GrpcExceptionFilterlogs exceptions that are notRpcExceptionbefore answering withUNKNOWN, which brings it in line withBaseRpcExceptionFilter.
Performance
The 404 exception Nest throws for an unmatched route is now created without a stack trace. Server CPU time per 404 drops by 28 to 29 percent across Express, Fastify, and the Node adapter, measured from 21.9 microseconds down to 15.5 microseconds on Express. For services that take a lot of scanner traffic or health probe misses, that is a real reduction in steady state cost.
Fastify and WebSockets Fixes
Five Fastify issues were closed. httpAdapter.render() now works on the raw response object that middleware and their exception filters receive, instead of throwing response.view is not a function. app.listen(port, host, backlog) passes the backlog through to Fastify rather than treating it as a callback. A StreamableFile sent with a 304 is no longer read, so the status goes out with no body. A request aborted by the client mid-body becomes a 400 HttpException instead of an unexpected error.
In the websockets package, gateways whose path differs only in spelling (events versus /events/) now share a single socket.io server. Previously the second gateway spun up its own server and never received a client. Disconnects are also handled once per connection when a handleDisconnect hook disconnects other clients.
Upgrading
Run your package manager's update for the @nestjs/* packages, keeping the core and platform packages on the same version. Review the route conflict behaviour if your application registers handlers that differ only by letter case, and check any pipe usage that relied on @Body('key') returning the full body.