Skip to content

fix(deps): update nest monorepo to v12 - #1864

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-nest-monorepo
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-nest-monorepo

Conversation

@renovate

@renovate renovate Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
@nestjs/common (source) 11.2.11 → 12.6.0 age confidence
@nestjs/common (source) ^11.0.0 → ^11.0.0 || ^12.0.0 age confidence
@nestjs/core (source) 11.2.11 → 12.6.0 age confidence
@nestjs/core (source) ^11.0.0 → ^11.0.0 || ^12.0.0 age confidence
@nestjs/microservices (source) 11.2.11 → 12.6.0 age confidence
@nestjs/platform-express (source) 11.2.11 → 12.6.0 age confidence
@nestjs/testing (source) 11.2.11 → 12.6.0 age confidence

Release Notes

nestjs/nest (@​nestjs/common)

v12.6.0

Compare Source

v12.6.0 (2026-11-20)

Notable changes

New features

  • 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
  • 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
  • gRPC server: gracePeriod (10,000 ms by default) for gracefulShutdown – #​18566

New defaults and behaviour changes

  • gRPC server with gracefulShutdown: closing used to wait for the calls in progress with no limit; calls still running after gracePeriod are now cancelled. Raise gracePeriod for long-running streams – #​18566
  • 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
  • A method that overrides a @Res({ passthrough: true }) handler with a plain @Res() no longer inherits passthrough – #​18617
  • DiscoveryService finds a class that extends a class decorated with a DiscoveryService.createDecorator() decorator under that decorator – #​18582
  • 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
  • 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
  • @nestjs/platform-node: a Content-Type set with res.setHeader() gets charset=utf-8 when res.send() sends a string, as on Express – #​18527
  • @nestjs/platform-fastify: the exception for a failed upload carries the parser's error as its cause, as on Express – #​18555
  • @nestjs/platform-fastify: the router answers a request whose target does not start with / (other than * and absolute-form URLs) with a 400 (FST_ERR_BAD_URL), after find-my-way 9.10.2; such a request used to reach the not-found handler – #​18569
  • inject() on @nestjs/platform-fastify and @nestjs/platform-node: a response to HEAD, and a 204 or 304 response, has no body, after light-my-request 6.8.1 – #​18570

Microservices

  • NATS and MQTT servers closed before their client connects: listen() fails with "Connection closed" instead of starting – #​18602, #​18603
  • Clients fail pending requests with "Connection closed" where they used to leave them waiting: Kafka when the reply consumer stops or crashes, or a rebalance moves its reply partition away – #​18583; MQTT and Redis when closed before the reply subscription is confirmed – #​18584; RabbitMQ when the broker cancels the direct reply-to consumer – #​18585
  • Kafka server: closing waits for the replies in progress, for gracePeriod (10 s by default) at most, after the consumer disconnects – #​18535
  • Gateways reject new clients as soon as the application starts closing – #​18588

Dependencies

  • @nestjs/platform-fastify: @fastify/middie 9.3.7, @fastify/cors 11.4.3, @fastify/formbody 9.0.2, find-my-way 9.10.2, light-my-request 6.8.1
  • @nestjs/platform-node: @fastify/proxy-addr 5.1.3, encodeurl 2.0.3, find-my-way 9.10.2, light-my-request 6.8.1
  • @nestjs/platform-ws: ws 8.23.0
Features
  • microservices
    • #​18566 feat(microservices): add a grace period to the grpc graceful shutdown (@​mo74x)
  • platform-ws
  • core, platform-express, platform-fastify, platform-node
Bug fixes
Enhancements
  • core
  • platform-fastify
  • core, microservices, websockets
  • common, core, microservices, platform-express, platform-fastify, platform-node, testing, websockets
Docs
  • common
  • common, core, microservices, platform-express, platform-fastify, platform-node, platform-socket.io, platform-ws, testing, websockets
Committers: 20

v12.5.1

Compare Source

v12.5.1 (2026-11-16)

Features
Bug fixes
Enhancements
Docs
  • common
  • common, core, microservices, platform-express, platform-fastify, platform-node, platform-socket.io, platform-ws, testing, websockets
Committers: 8

v12.5.0

Compare Source

v12.5.0 (2026-11-12)
Notable changes

New options

  • WsAdapter takes maxPayload, the largest message a client may send (1 MB by default, was 100 MB; a gateway's own maxPayload takes precedence, 0 lifts the limit); a larger message closes the connection with code 1009 – 109e52cd9b
  • IoAdapter takes maxWaitingMessages, the number of a client's messages of one event that may wait beyond those being handled (10,000 by default; Infinity lifts it) – c98b5f782e
  • TCP server: maxConcurrentMessages (1000 per connection by default; 0 lifts it) – 42c619cd69
  • gRPC server: maxPendingResponses (1000 by default; 0 disables), after which a streaming call whose client leaves its responses unread fails with RESOURCE_EXHAUSTED – ce6d44d858
  • Redis server: maxWildcardChannelLength (1024 characters by default; 0 disables) for requests matched through a wildcard subscription – 074dcf7c60
  • RabbitMQ: maxMessageSize (16 MiB by default) for messages and replies decoded as JSON – da6b3fc5bc
  • @nestjs/platform-fastify: multipart limits.jsonFieldsSize (1 MiB by default) for the fields of a request sent as application/json – 958316696f

New defaults and behaviour changes

  • TCP: maxBufferSize defaults to 16 Mi characters (was 128 Mi), in both directions – 55da0b0d33 – and now applies to each packet rather than to everything received in one read, so a burst of small packets no longer closes the connection (#​18502) – ce285e6ad3
  • TCP server: an empty or unset host now listens on localhost; set host: '0.0.0.0' (or '::') to listen on every interface – 4196d3655d
  • @nestjs/platform-express, @nestjs/platform-node: multipart requests default to at most 1000 parts, which also caps a fields, files or maxCount above 1000 unless limits.parts is raised – b2bbc17122
  • An upload option a route sets to undefined or null now keeps the module's value; use Infinity to lift a limit – 7bc8d9121e
  • A limit option given as NaN (e.g. Number(process.env.UNSET)) now gets its default instead of turning the limit off, for TCP, Kafka, WsAdapter, IoAdapter, the validation pipes and @Sse() – 8209d1c8be, f956177a0e, 5b58a6e89f
  • ClassSerializerInterceptor and StandardSchemaSerializerInterceptor serialize each object a streamed HTTP response yields, so @Exclude(), groups and schemas apply to every line of NDJSON – 8217f2b3b8
  • @Sse(): while Node.js has paused the socket of a client, a : comment is written every 5 s, so that a client that left is noticed – cd963b19bd
  • @nestjs/platform-express, @nestjs/platform-node: a SyntaxError or URIError without a 400 status (e.g. thrown by a middleware passed to app.use()) is answered with a logged 500 rather than a 400 carrying its message – 8d74ddcd3a
  • @nestjs/platform-node: when the matched route would leave a route parameter empty, the request is a 404 – 56c06f48c3
  • Middleware given to forRoutes() is mounted where the router serves the routes it covers, including routes excluded from the global prefix – 521cdea80f
  • Parameter pipes of controllers built with mixins or wrapped by a class decorator that returns a Proxy now run – 7c5792d969
  • The exclude predicate of enableCsrfProtection() excludes a request only when it returns true – 608fcec0a9
  • Gateways on their own port drop clients that connect before onApplicationBootstrap() has finished; socket.io clients reconnect – 7d705cc835
  • In a standalone microservice, a gateway without a port no longer opens a server on a random port; it gets a server that does not listen – 7359d3b06a
  • An @Optional() dependency that exists but fails to build at request time now fails its consumer – 0c360708b5
  • Transient providers with durable dependencies are built per request – 822d93ffd1
  • moduleRef.create() rejects a request-scoped property dependency, as it does for constructor parameters – 6c5fed8b72

New startup errors and warnings

  • A guard, interceptor or pipe that can't run (e.g. an abstract class used as a token, or a class given as the useValue of APP_GUARD) fails the application at startup; an exception filter that can't run logs a warning – 7a81aed500, 407518855f
  • An invalid forRoutes() or exclude() entry fails the application at startup – 1afb768959
  • A gateway that joins a shared server with a verifyClient or allowRequest the server won't run, or gateways on one port that set different hosts, stop the application at startup – 32875410dc, fd0155fba0
  • @nestjs/platform-fastify: @All('x') declared above @Search('x') or a WebDAV method on the same path fails at startup, as the reverse order already did; @All() routes now also answer these methods – a1695d18ea
  • Warnings for exception filter classes bound to a middleware, which don't apply – 3113f03f1e – and for a ValidationPipe that gets no parameter types – f433a1f752

Microservices

  • gRPC: an Error wrapped in an RpcException is logged and answered as "Internal server error"; its numeric code is still used as the status – 2038bff425
  • A filter that throws on a response stream is logged and answered as "Internal server error" – 515f99cfb6
  • Kafka: events can no longer ask for a reply through reply headers, and replies no longer carry them – d1473338c3; an object with a key or value and other properties is sent as the payload – 73373dc911; a request whose reply topic is one the server handles itself is dropped – 809029b74b
  • RabbitMQ wildcards: a message whose pattern names a different handler than its routing key is not handled – ef8f92c5d0
  • Patterns with a string value over 4096 characters or more than 100 keys get a marker route – ed8ca5cded; multi-key patterns with a non-ASCII key may get a new route, so clients and servers of such patterns should be on the same version – 015456cc2f

@nestjs/core and the platform packages should be updated together, as the adapters pass new route matching options to core.

Bug fixes

[!IMPORTANT]
✂ PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch 3 times, most recently from 0e7c8e8 to 84c8fc8 Compare September 3, 2026 17:57
@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch 4 times, most recently from fea10f7 to d78d3f1 Compare September 14, 2026 17:16
@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch 7 times, most recently from 9b3e85f to 563ad2d Compare September 21, 2026 12:03
@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch 4 times, most recently from 9b8d7e2 to 7e89e44 Compare September 28, 2026 23:42
@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch 3 times, most recently from 54b0b69 to 838b977 Compare October 5, 2026 15:54
@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch 4 times, most recently from 7157626 to c98d93b Compare October 13, 2026 11:28
@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch 5 times, most recently from bc3e31e to c001f7d Compare October 27, 2026 01:00
@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch 2 times, most recently from 9d87d03 to f2d1dfc Compare October 29, 2026 23:10
@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch 7 times, most recently from 7d5fa45 to f41504f Compare November 10, 2026 09:52
@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch 6 times, most recently from e2d740c to 322c1e2 Compare November 18, 2026 09:36
@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch from 322c1e2 to c12bc08 Compare November 18, 2026 18:08
@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch from c12bc08 to 7e06063 Compare November 20, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants