@nestjs/platform-express breaking changes
Updated December 4, 2026
On this page
Latest version 12.6.3, released November 26, 2026. Source repository
Its 12.0.0 release requires Node.js 20.19 or later. Node.js end of life dates.
- From 11.2.10 to 12.6.0: 80 breaking changes in 9 versions.
- From 10.0.0 to 12.6.0: 91 breaking changes in 13 versions.
@nestjs/platform-express 12.6.0 breaking changes
- Behavior changed
A custom parameter decorator that gives the handler the response object passes it as it is, and no pipe runs on it, as with @Res(). github.com - Behavior changed
Gateways now reject new clients as soon as the application starts closing. github.com - Behavior changed
Calls still running after gracePeriod (10 s by default) are cancelled on shutdown. Raise gracePeriod if you have long-running streams. github.com - Behavior changed
Pending requests now fail with Connection closed on Kafka reply consumer stop or crash, and on MQTT, Redis and RabbitMQ close, where they used to wait. github.com - Behavior changed
NATS and MQTT servers closed before their client connects now make listen() fail with Connection closed instead of starting. github.com - Behavior changed
Routes on hosts like :tenant.example.com may now be reported as conflicting with other routes. github.com - Behavior changed
Closing the Kafka server now waits for replies in progress, for gracePeriod (10 s by default) at most, after the consumer disconnects. github.com - Behavior changed
createNestApplication
logger: true now keeps the logger instead of turning logging off, and forceConsole: true logs through console. github.com - Behavior changed
createNestMicroservice
logger: true now keeps the logger instead of turning logging off, and forceConsole: true logs through console. github.com - Behavior changed
inject
Responses to HEAD requests and 204 or 304 responses from inject() no longer have a body. github.com - Behavior changed
Res
A method that overrides a @Res({ passthrough: true }) handler with a plain @Res() no longer inherits passthrough. Set passthrough explicitly if you need it. github.com
@nestjs/platform-express 12.5.1 breaking changes
- Behavior changed
parse date pipe
The parse date pipe now rejects a date such as February 30 that falls past the end of its month. Code that relied on such dates being accepted must now handle the validation error. github.com
@nestjs/platform-express 12.5.0 breaking changes
- Behavior changed
A SyntaxError or URIError without a 400 status, such as one thrown by middleware passed to app.use(), is now answered with a logged 500 instead of a 400 with its message. github.com - Behavior changed
Kafka events can no longer request a reply through reply headers, and replies no longer include them. Clients relying on reply headers must change. github.com - Behavior changed
A guard, interceptor or pipe that cannot run now fails the application at startup, for example an abstract class used as a token or a class given as the useValue of APP_GUARD. github.com - Behavior changed
A RabbitMQ wildcard message whose pattern names a different handler than its routing key is no longer handled. github.com - Behavior changed
ClassSerializerInterceptor
ClassSerializerInterceptor and StandardSchemaSerializerInterceptor now serialize every object a streamed HTTP response yields, so @Exclude() and groups apply to each NDJSON line. github.com - Behavior changed
enableCsrfProtection
The exclude predicate of enableCsrfProtection() now excludes a request only when it returns true. Predicates that return other truthy values no longer skip CSRF checks. github.com - Behavior changed
forRoutes
Middleware given to forRoutes() is now mounted where the router serves the routes it covers, including routes excluded from the global prefix. Check middleware that relied on the old mounting point. github.com - Behavior changed
host
An empty or unset TCP server host now listens on localhost instead of every interface. Set host to '0.0.0.0' or '::' to accept connections from other machines. github.com - Behavior changed
moduleRef.create
moduleRef.create() now rejects a request-scoped property dependency, as it already did for constructor parameters. Check calls that relied on the old behavior. github.com - Default changed
limits.parts
Multipart requests now default to at most 1000 parts, which also caps fields, files and maxCount above 1000. Raise limits.parts if your uploads need more. github.com
And 2 more in this version. Sign up to see every change
@nestjs/platform-express 12.3.0 breaking changes
- Behavior changed
Unsupported multipart content types now produce a 415 response instead of the previous error. Clients or error handling relying on the old response must be updated. github.com - Behavior changed
5xx http-errors errors are now left unmapped so they are logged. Code that relied on them being converted to HttpException must be updated. github.com
@nestjs/platform-express 12.2.0 breaking changes
- Behavior changed
Object error bodies on routes with a non-JSON Content-Type are now sent with an application/json content type. github.com - Behavior changed
Kafka messages with headers given as a string or array now send no headers at all. github.com - Behavior changed
FileTypeValidator
A string fileType such as font/woff no longer accepts font/woff2. Use a RegExp to match wider types. github.com - Behavior changed
pattern key
Message pattern keys over 256 characters no longer reach any handler. github.com - Behavior changed
SerializeOptions
Applying SerializeOptions({}) to a handler no longer turns off the class schema for that handler. github.com - Behavior changed
StreamableFile
A failing StreamableFile still returns 400, but the response body no longer carries the error message. github.com - Behavior changed
ValidationPipe
Validation errors now have target set to false unless validationError.target is set. An exceptionFactory that reads error.target gets undefined; set validationError.target to true to restore the old errors. github.com - Default changed
fieldNestingDepth
Platform-express and platform-fastify now cap field nesting depth at 32 and array indexes at 1000 by default. Set them to Infinity to keep the old unlimited behaviour. github.com - Default changed
reconnectOnConnackError
reconnectOnConnackError is now enabled, so refused connection attempts are retried. Set it to false to keep the previous behaviour. github.com
@nestjs/platform-express 12.1.3 breaking changes
- Behavior changed
Request-scoped class global enhancers used to be silently dropped; now the application fails at startup. Make such enhancers non-request-scoped or move them to a supported registration. github.com - Behavior changed
listen
listen() on the Fastify adapter now rejects when given an invalid port instead of proceeding. Make sure the port value passed is valid. github.com - Behavior changed
useSecurityHeaders
useSecurityHeaders() now disables the Express x-powered-by response header. Code relying on that header being sent must change. github.com - Signature changed
ExpressAdapter.setNotFoundHandler
Was setNotFoundHandler(handler: Function, prefix?: string): any; now setNotFoundHandler(handler: Function, prefix?: string, excludedRoutes?: RouteInfo[]): any. npmjs.com - Signature changed
ExpressAdapter.setOnRequestHook
Was setOnRequestHook(onRequestHook: (req: express.Request, res: express.Response, done: () => void) => Promise<void> | void): void; now setOnRequestHook(onRequestHook: (req: express.Request, res: express.Response, done: (err?: Error) =>... npmjs.com
Older versions
8 older versions, each with its first changes. Sign up to see every change
Show 8 older versions
@nestjs/platform-express 12.0.4 breaking changes
- Removed
MulterModuleOptions.limits.fieldNameSize
MulterModuleOptions.limits.fieldNameSize was removed in @nestjs/platform-express 12.0.4 npmjs.com - Removed
MulterModuleOptions.limits.fields
MulterModuleOptions.limits.fields was removed in @nestjs/platform-express 12.0.4 npmjs.com
And 7 more in this version.
@nestjs/platform-express 12.0.2 breaking changes
- Behavior changed
Error instances that have a statusCode property are no longer handled as HTTP errors. Code relying on that handling must change. github.com - Behavior changed
UUID v3 values with an invalid variant are now rejected by validation. Inputs that previously passed may now fail. github.com
And 2 more in this version.
@nestjs/platform-express 12.0.0 breaking changes
- Removed
Running Nest 12 needs Node.js v20.19+ or v22.12+ on the 22.x line. Move off Node.js 21.x. docs.nestjs.com - Removed
Version 12 requires Node.js v20.19 or later, or v22.12 or later. Upgrade Node.js before upgrading the package; the 21.x line is not supported. github.com
And 25 more in this version.
@nestjs/platform-express 11.2.10 breaking changes
- Behavior changed
Only client syntax and URI errors now map to 400. Other errors may return a different status. github.com - Behavior changed
An Error body sent with an error status now gets the standard body of that status. github.com
And 1 more in this version.
@nestjs/platform-express 11.2.8 breaking changes
- Behavior changed
When an upgrade request cannot be parsed, the server now closes the connection after sending the 400 reply instead of leaving it to the client. github.com
@nestjs/platform-express 11.1.4 breaking changes
- Default changed
RMQ_DEFAULT_QUEUE
The default RabbitMQ queue constant was changed to an empty string. Code that relied on its previous value should set the queue name explicitly. github.com
@nestjs/platform-express 11.0.0 breaking changes
- Removed
Node.js 16 and 18 are no longer supported. Node.js 20 or later is required. github.com - Behavior changed
Express is upgraded to v5, which changes existing behavior. A legacy route path converter reduces breakage, but route paths and Express-dependent code should be checked after upgrading. github.com
And 4 more in this version.
@nestjs/platform-express 10.0.0 breaking changes
- Removed
Node v12 is no longer supported, so Node.js 16 or later is required. Upgrade the Node.js runtime before moving to this version. github.com - Behavior changed
ValidationPipe
Optional boolean parameters are transformed differently by ValidationPipe, which is a breaking change. Check code that relies on the old transformation of optional booleans. github.com
And 3 more in this version.
Related packages
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.