Skip to content

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

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

renovate[bot] wants to merge 1 commit into
masterfrom
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.0.16 → ^12.0.0 age confidence
@nestjs/core (source) ^11.0.16 → ^12.0.0 age confidence
@nestjs/platform-express (source) ^11.0.16 → ^12.0.0 age confidence
@nestjs/schematics 11.1.0 → 12.0.17 age confidence
@nestjs/testing (source) ^11.0.16 → ^12.0.0 age confidence

Release Notes

nestjs/nest (@​nestjs/common)

v12.6.3

Compare Source

v12.6.3 (2026-11-26)

Notable changes

Testing

  • Test.createTestingModule() accepts the instrument option, like NestFactory.create(). Its instanceDecorator decorates the module's providers, overridden ones included, and the applications and microservices created from the module use it unless their own options set one. Tests can now run an app instrumented as it is in production. With NestJS Observe, for example, gateway tests no longer log that the instrument option is missing – #​18743
  • Instances that an application context creates through resolve() (request-scoped and transient providers) are passed to the instrument instance decorator, in a testing module and in NestFactory.createApplicationContext() – #​18743

Behaviour changes

  • Route conflict detection compares paths the way the router matches them. On Express, which matches paths in any case, GET /users and GET /Users are reported as the same route, so duplicate: 'error' aborts bootstrap. The same holds on Fastify with caseSensitive: false. Nothing changes where the router is case-sensitive: Fastify by default, the Node adapter, and Express with case sensitive routing enabled – #​18721
  • A path excluded without a version, in MiddlewareConsumer.exclude() or in the exclude option of enableCsrfProtection(), also covers the routes of the default version(s), as forRoutes() does – #​18601
  • @Body('key') with a falsy primitive body ("", 0, false) yields undefined, like any other primitive body. It used to receive the whole body – #​18720
  • ParseDatePipe rejects a day past the end of its month in a numeric date without a year (2/30, 4/31; as in new Date(), such a date is in 2001, so 2/29 is rejected too), and in a year-first month-name date after a weekday (Thu 2024 Sept 31) – #​18724, #​18727
  • GrpcExceptionFilter logs an exception that isn't an RpcException before answering UNKNOWN, as BaseRpcExceptionFilter does. It used to answer without a trace on the server – #​18722
  • Security headers: an undefined entry in referrerPolicy.policy is rejected like any other invalid value – #​18729

Performance

  • The 404 that Nest throws for an unmatched route is created without a stack trace. Server CPU time per 404 drops by 28 to 29% on Express, Fastify and Node (21.9 µs to 15.5 µs on Express) – #​18730

Fastify

  • httpAdapter.render() works on the raw response that middleware and their exception filters receive. It used to throw response.view is not a function – #​18719
  • app.listen(port, host, backlog) passes the backlog to Fastify. It used to be passed as the callback – #​18736
  • A StreamableFile sent with a 304 status is not read, and the 304 goes out without a body – #​18723
  • A request aborted by the client mid-body becomes a 400 HttpException, instead of an unexpected error – #​18726

WebSockets

  • Gateways whose path is spelled differently (events, /events/) share one server. The second one used to get its own server, which never received a client – #​18728
  • With gateways that share a socket.io server, each disconnect is handled once, also when a handleDisconnect hook disconnects other clients – #​18745
Features
Enhancements
Bug fixes
Committers: 7

v12.6.2

Compare Source

v12.6.2 (2026-11-25)

Notable changes

Fixes of 12.6.1

  • applyDecorators() type-checks again as a class, method and property decorator. In 12.6.1 its return type became a union that TypeScript rejects where a composed decorator is applied (TS1270), also with skipLibCheck. It now also types as a parameter decorator, which it supports since 12.6.1 – #​18710

Behaviour changes

  • @nestjs/platform-node: res.send() pipes a Readable stream, as Fastify's reply.send() does, with application/octet-stream unless a Content-Type is set. It used to send the stream's fields as JSON (e.g. the path of a file stream) and leave the stream open. A stream that fails before anything is sent gets a 500, one that fails midway aborts the response, and the stream is destroyed when the client goes away – #​18702
  • A StreamableFile answered with a 204, 205 or 304 sends no body and is not read, on Express and Node. On Fastify, a 205 response sends no body – #​18711, #​18713
  • ParseDatePipe rejects a day past the end of its month in a month-name date without a year (Feb 30, Sep 31). As in new Date(), such a date is in 2001, so Feb 29 is rejected as well – #​18699
  • The missing decorator metadata warning also covers a decorated subclass compiled without metadata (e.g. with tsx or esbuild) that extends a class compiled with it, when a parameter of its own constructor would be injected as undefined – #​18698
  • @nestjs/common exports GetOrResolveOptions, SelectOptions, HttpArgumentsHost, RpcArgumentsHost, WsArgumentsHost, CorsOptions, CorsOptionsDelegate and HttpsOptions from the package root – #​18714

Microservices

  • RabbitMQ server: a message without a handler, with a routing key it doesn't serve, or over the size limit is negatively acknowledged on the channel that delivered it. After a reconnect it used to go to the new channel, which RabbitMQ then closed (PRECONDITION_FAILED - unknown delivery tag) – #​18706
  • MQTT client and server: close() settles when the broker is gone. It used to wait for good for the broker to acknowledge packets in flight, such as a QoS 1 message – #​18712, 514e3eb6ec
Bug fixes
Committers: 8

v12.6.1

Compare Source

v12.6.1 (2026-11-25)

Notable changes

New features

  • RabbitMQ server: nackOnInternalError (false by default). With noAck: false, the message of a handler that fails with an internal error (an exception other than an RpcException) is negatively acknowledged without requeue, so a dead letter exchange of the queue receives it. It used to stay unacknowledged until the channel closed – #​18686

New defaults and behaviour changes

  • ParseDatePipe rejects more dates that new Date() would roll into the next month: unpadded and dotted numeric dates (2/30/2024), month names (Feb 30, 2024), two-digit years (4/31/24), and dates after a weekday or with other separators (Fri 02/30/2024, 2024 02 30) – #​18652, #​18673, #​18675, #​18693
  • ParseArrayPipe with stopAtFirstError: false collects the exceptions of a custom exceptionFactory that are not an HttpException (e.g. RpcException) for every item again, where since 12.5.0 it threw the first one – #​18689
  • ParseEnumPipe returns an exact match before a numeric one, so '0' gives '0' rather than 0 for an enum that has both – #​18649
  • applyDecorators() uses what a composed decorator returns, as TypeScript does: a returned descriptor replaces the method and a returned class replaces the class. A composed parameter decorator (e.g. applyDecorators(Inject(TOKEN)) on a constructor parameter) gets the parameter's index – #​18688
  • ConsoleLogger redact also masks the entries of Headers, URLSearchParams and FormData, the username, password and search params of a URL, and the error and suppressed of a SuppressedError, which JSON mode now also serializes – #​18670, #​18692, #​18676
  • @nestjs/platform-express: a multipart field name that puts a __proto__ key or a constructor[prototype] path in req.body gets a 400 ("Invalid field name"), as on @nestjs/platform-node – #​18666
  • Upload limits given as NaN (parts, fieldNestingDepth, fieldArrayIndexLimit, and jsonFieldsSize on Fastify) take their default: on Express and Node they used to turn the limit off, on Fastify startup failed. On Fastify, a field whose maxCount is NaN gets no files – #​18653, #​18668, #​18656
  • @nestjs/platform-socket.io: a client whose allowRequest check throws or rejects is refused, and the error logged; it used to reach the process handlers – #​18650

Microservices

  • RabbitMQ fanout server with exchangeType: 'fanout' and no exchange: it asserts a fanout exchange named after its queue and binds the queue to it, which is where the client publishes. An existing exchange of that name with another type fails startup – #​18660
  • Redis, RabbitMQ, Kafka and gRPC servers closed while their client is being created: listen() fails with "Connection closed" instead of starting – #​18638
  • TCP client: close() rejects a pending connect with "Connection closed" – #​18643; the Redis and MQTT clients reset their connection state on close() before quitting – #​18640, #​18639
  • NATS server: headers set with NatsRecordBuilder.setHeaders() as a plain object are sent with the reply; such a reply used to fail – #​18695

Dependencies

  • @nestjs/platform-fastify: @fastify/middie 9.3.9 (release notes). It also adds a middleware used on the application to the plugins registered before it, as the adapter already did; a middleware runs once per request – #​18644
  • Since @fastify/middie 9.3.7 (@nestjs/platform-fastify 12.6.0), the Fastify adapter needs Node.js 20.19+ or 22.12+: middie loads the ES module path-to-regexp 9 with require()
Features
Bug fixes
Enhancements
Committers: 20

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

[!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 2 times, most recently from c8c91ca to 3876325 Compare September 2, 2026 22:49
@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch 5 times, most recently from 7d9fdf5 to 5c98aa5 Compare September 16, 2026 14:39
@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch 3 times, most recently from e060af1 to 804beca Compare September 24, 2026 21:57
@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch 2 times, most recently from c123b8c to 2513775 Compare September 30, 2026 10:59
@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch 3 times, most recently from 672f292 to 360f32b Compare October 13, 2026 19:30
@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch 4 times, most recently from c53c3ef to c33e10c Compare October 22, 2026 12:35
@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch 3 times, most recently from 4d8d357 to cb18760 Compare October 28, 2026 17:04
@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch 3 times, most recently from ee923ba to deded9f Compare November 9, 2026 13:40
@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch 3 times, most recently from 43f255e to 7fa3183 Compare November 17, 2026 02:16
@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch 2 times, most recently from 0a83bd8 to 6a98c99 Compare November 20, 2026 14:35
@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch from 6a98c99 to 22f95f6 Compare November 25, 2026 16:56
@renovate
renovate Bot force-pushed the renovate/major-nest-monorepo branch from 22f95f6 to c7919f4 Compare November 26, 2026 16:47

This branch has not been deployed

No deployments
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