@nestjs/core@12.2.0
Wait — 12.4.2 is the safer choice for now.
6 issues mention 12.2.0 within 14 days of release (usual for this project: 2.5).
Why this verdict
- 6 issues mention 12.2.0 within 14 days of release (usual for this project: 2.5).Evidence
- Release notes list 8 breaking changes: fieldNestingDepth and fieldArrayIndexLimit now default to 32 and 1000, which may affect existing payload limits.Evidence
Confidence 100% · algorithm v1 · computed 2026-11-22. How verdicts work
Supply chain and security
- Malware reports
- None known (OSV)
- Known advisories
- None known (OSV)
- License
- MIT
- Install scripts
- None
- Build provenance
- No provenance
- Weekly downloads
- 565,569
Compatibility
No compatibility boundary is crossed: this is a patch or minor release on a stable major.
Breaking changes in the release notes
- fieldNestingDepth and fieldArrayIndexLimit now default to 32 and 1000, which may affect existing payload limits.“@nestjs/platform express, @nestjs/platform fastify: fieldNestingDepth and fieldArrayIndexLimit ( 18074) now default to 32 and 1000; set them to Infinity to lift the limits – 94fcc93770”
- ValidationPipe now sets validationError.target to false by default, breaking code that reads error.target.“ValidationPipe validates with validationError.target: false unless the options set it, so an exceptionFactory that reads error.target gets undefined; set validationError.target to true for the old errors – 8c5a59bf63”
- ValidationPipe now returns a 400 response for arrays or primitives sent for a validated class.“ValidationPipe answers an array or a primitive sent for a validated class with a 400 – 197371c1f3”
- FileTypeValidator now matches only up to the end of a filename, so "font/woff2" is no longer accepted as "font/woff".“FileTypeValidator matches a string fileType up to the end of a name (e.g. font/woff no longer accepts font/woff2; use a RegExp for that) – 770c6f1a19”
- @SerializeOptions on a handler no longer disables the class schema.“@SerializeOptions({}) on a handler no longer turns off the class schema – d27cb7017f”
- BaseExceptionFilter now returns the standard reason phrase for errors created with expose:false, instead of the original message.“BaseExceptionFilter answers http errors errors created with expose: false (the default from 500) with the standard reason phrase instead of their message – 9ed572f853”
- StreamableFile errors still return 400 but the response body no longer includes the error message.“A StreamableFile error still gets a 400, but the body no longer carries the error message – 2f28d91afb”
- Files uploaded in a request that a pipe rejects are now removed from storage.“Files uploaded with a request that a pipe rejected are removed from storage – acb98de89e”
AI-extracted from the official release notes and checked against the quoted text. Read the source
6 issues mention this version in nestjs/nest within 14 days of release. See them on GitHub
Check the official release notes below for behaviour changes before merging.
Release notes
Read the NestJS changelog on Changes.Watch or the package page on npm for this version’s features and fixes.
New in this release
- @Sse now supports a maxPendingDataLength option to limit pending event data.“New options @Sse({ maxPendingDataLength }) sets how many characters of event data may wait for a client that is not reading its events (4M by default; 0 or Infinity lifts the limit) – 2f05ad954e”
- IoAdapter and WsAdapter accept a maxConcurrentMessages option to limit concurrent client messages.“IoAdapter and WsAdapter take maxConcurrentMessages, the number of a client's messages handled at once (1000 by default; Infinity lifts it) – 0bd0810ed7”
- ValidationPipe can limit the total length of error messages with maxErrorMessagesLength.“ValidationPipe takes maxErrorMessagesLength (1,000,000 characters by default); messages past it are replaced by a "Further validation errors were omitted" entry – 086c1c514f”
- Kafka parser now has a configurable maxMessageSize (default 16 MiB after decompression).“Kafka: parser.maxMessageSize (16 MiB after decompression by default); larger messages are logged and skipped – 9bdf844fca”
- TCP server can be configured with a drainTimeout to disconnect idle peers.“TCP server: drainTimeout (30 s by default, 0 disables) disconnects a peer that leaves its responses unread – 583d6077ad”
- MQTT server now retries a refused connection by default via reconnectOnConnackError.“MQTT server: reconnectOnConnackError is now enabled by default, so a refused connection attempt is retried; set it to false for the previous behaviour – a63cea600a”
- HttpServer now provides an optional getRouteMatchingOptions() adapter hook.“HttpServer.getRouteMatchingOptions(), an optional adapter hook that tells core how the router matches paths (see "Middleware exclusions" below) – 08d8677c8d”
AI-extracted from the official release notes and checked against the quoted text. Read the source
Deprecations and deadlines
The maintainer has not deprecated this version on npm.
Deprecations announced in this release
- @EventPattern handlers that reply to ClientProxy.send() now log a deprecation warning; they will stop replying in the next major version.“Deprecation : on TCP, Redis, NATS, MQTT and RabbitMQ, an @EventPattern() handler that replies to ClientProxy send() now logs a deprecation warning. The reply is unchanged; in the next major version event handlers will not reply to send(), as on Kafka already – ba3668d36b”
AI-extracted from the official release notes and checked against the quoted text. Read the source
Did upgrading to 12.2.0 work for you?
Results appear once three developers have voted.