Packages

@nestjs/common

12.5.1 · 16 Nov 2026MIT26M / weekRepositoryHomepagenpmAtom feed

Upgrading @nestjs/common From 12.1.3 to 12.2.0

1 release in betweenevery note read

Other targets from 12.1.3Newest 12.x12.6.0Latest12.5.1
  1. 12.1.3yours
  2. 12.2.0target

Before you upgrade

Tick each one off as you go
  • Breaking12.2.0
  • Deprecated12.2.0

Release by release

  1. 12.2.0

    Migration needed19 Oct 20262 new · 93 fixes
    • Breaking

      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

    • Deprecated

      microservices: feat(microservices): deprecate event handlers replying to send() (@kamilmysliwiec)

    • New

      core: perf(core): resolve route params without a promise when no pipe runs (@thekhegay)

    • New

      core: perf(core): avoid AsyncResource.bind() per request in the interceptor chain (@thekhegay)

24 other lines we could not sort, mostly version bumps
  • @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

    12.2.0
  • IoAdapter and WsAdapter take maxConcurrentMessages, the number of a client's messages handled at once (1000 by default; Infinity lifts it) – 0bd0810ed7

    12.2.0
  • ValidationPipe takes maxErrorMessagesLength (1,000,000 characters by default); messages past it are replaced by a "Further validation errors were omitted" entry – 086c1c514f

    12.2.0
  • Kafka: parser.maxMessageSize (16 MiB after decompression by default); larger messages are logged and skipped – 9bdf844fca

    12.2.0
  • TCP server: drainTimeout (30 s by default, 0 disables) disconnects a peer that leaves its responses unread – 583d6077ad

    12.2.0
  • MQTT server: reconnectOnConnackError is now enabled by default, so a refused connection attempt is retried; set it to false for the previous behaviour – a63cea600a

    12.2.0
  • HttpServer.getRouteMatchingOptions(), an optional adapter hook that tells core how the router matches paths (see "Middleware exclusions" below) – 08d8677c8d

    12.2.0
  • @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

    12.2.0
  • 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

    12.2.0
  • ValidationPipe answers an array or a primitive sent for a validated class with a 400 – 197371c1f3

    12.2.0

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.