@nestjs/core 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.12 to 12.6.3: 128 breaking changes in 11 versions.
- From 10.0.0 to 12.6.3: 188 breaking changes in 21 versions.
@nestjs/core 12.6.3 breaking changes
- Behavior changed
On Express, GET /users and GET /Users are now reported as the same route, so duplicate: 'error' can abort bootstrap. Rename one of the routes if both were intended. github.com - Behavior changed
@Body
With a falsy primitive body such as an empty string, 0 or false, @Body('key') now returns undefined instead of the whole body. Code that read the whole body in this case must change. github.com - Behavior changed
app.listen
With Fastify, the third argument of app.listen(port, host, ...) is now passed as the backlog rather than the callback. Code that passed a callback there must move it. github.com - Behavior changed
enableCsrfProtection
A path listed in the exclude option of enableCsrfProtection() without a version now also covers the routes of the default version(s). Check exclusions that relied on the old behavior. github.com - Behavior changed
MiddlewareConsumer.exclude
A path excluded without a version in MiddlewareConsumer.exclude() now also covers the routes of the default version(s), as forRoutes() does. Check exclusions that relied on the old behavior. github.com - Behavior changed
ParseDatePipe
ParseDatePipe now rejects a day past the end of its month in a numeric date without a year, such as 2/30 or 2/29, and in year-first month-name dates after a weekday. Inputs that were accepted before now fail. github.com - Behavior changed
referrerPolicy.policy
An undefined entry in referrerPolicy.policy is now rejected like any other invalid value. Configurations that passed undefined there must be changed. github.com
@nestjs/core 12.6.2 breaking changes
- Behavior changed
ParseDatePipe
ParseDatePipe rejects dates such as Feb 30 or Sep 31 and Feb 29 that were previously accepted. Inputs like these must be corrected. github.com - Behavior changed
StreamableFile
A StreamableFile answered with status 204, 205 or 304 no longer sends a body and the stream is not read on Express and Node. github.com
@nestjs/core 12.6.1 breaking changes
- Behavior changed
applyDecorators
A returned descriptor now replaces the method and a returned class replaces the class, as in TypeScript. Composed parameter decorators receive the parameter index. github.com - Behavior changed
ConsoleLogger
The redact option now also masks Headers, URLSearchParams, FormData, URL credentials and search params, and SuppressedError fields, which JSON mode now serializes. github.com - Behavior changed
ParseDatePipe
Dates such as 2/30/2024 or Feb 30, 2024 that new Date() would roll over are now rejected. Code that relied on such inputs being accepted must handle the error. github.com - Behavior changed
ParseEnumPipe
For an enum with both a string and a numeric match, '0' now returns '0' instead of 0. github.com - Signature changed
NestContainer.replace
Was replace(toReplace: any, options: {scope: any[] | null;}): void; now replace(toReplace: any, options: {scope: any[] | null; isProvider?: boolean;}): void. npmjs.com
@nestjs/core 12.6.0 breaking changes
- Behavior changed
Kafka, MQTT, Redis and RabbitMQ clients now reject pending requests with Connection closed where they used to leave them waiting. github.com - Behavior changed
Gateways now refuse new clients as soon as the application starts closing. github.com - Behavior changed
listen() now fails with Connection closed when the server is closed before its client connects, instead of starting. github.com - Behavior changed
Routes on host patterns like :tenant.example.com may now be reported as conflicting, which can fail startup for existing apps. github.com - Behavior changed
A custom decorator that gives the handler the response object now passes it unchanged and runs no pipe on it, as with @Res(). github.com - Behavior changed
@Res
A method overriding a passthrough @Res handler with a plain @Res() no longer inherits passthrough. github.com - Behavior changed
createNestApplication
logger: true now keeps logging on in the testing module's createNestApplication(), where it used to turn logging off. github.com - Behavior changed
createNestMicroservice
forceConsole: true now logs through console in the testing module's createNestMicroservice(). github.com - Behavior changed
gracefulShutdown
Calls still running when the grace period ends are now cancelled instead of waited on without limit. Raise gracePeriod for long-running streams. github.com - Behavior changed
gracePeriod
Closing the Kafka server now waits for in-progress replies, for gracePeriod (10 s by default) at most, after the consumer disconnects. github.com
And 4 more in this version. Sign up to see every change
@nestjs/core 12.5.1 breaking changes
- Behavior changed
The parse date pipe now rejects a date such as February 30 instead of accepting it. Code that relied on the old rollover behavior must validate its input differently. github.com - Signature changed
IEntryNestModule
Was type IEntryNestModule = Type<any> | DynamicModule | ForwardReference | Promise<IEntryNestModule>; now type IEntryNestModule = Type<any> | DynamicModule | ForwardReference | ModuleMetadata | Promise<IEntryNestModule>. npmjs.com
@nestjs/core 12.5.0 breaking changes
- Behavior changed
A guard, interceptor or pipe that cannot run, or an invalid forRoutes or exclude entry, now stops the application at startup instead of failing later. github.com - Behavior changed
A route that sets an upload option to undefined or null now inherits the module's value instead of its own; use Infinity to lift a limit. github.com - Behavior changed
Kafka events can no longer request a reply through reply headers, and replies no longer include them, so code relying on those headers must change. github.com - Behavior changed
ClassSerializerInterceptor
ClassSerializerInterceptor serializes every object a streamed HTTP response yields, so Exclude, groups and schemas now apply to each NDJSON line. github.com - Behavior changed
enableCsrfProtection
The exclude predicate of enableCsrfProtection now excludes a request only when it returns true, so truthy non-boolean results no longer skip the check. github.com - Behavior changed
forRoutes
Middleware given to forRoutes is now mounted where the router serves the covered routes, including routes excluded from the global prefix. github.com - Behavior changed
host
An empty or unset host listens on localhost only; set host to 0.0.0.0 or :: to accept connections on every interface. github.com - Behavior changed
maxMessageSize
Messages and replies decoded as JSON are now capped at 16 MiB by default; set maxMessageSize to raise or lift the limit. github.com - Behavior changed
maxPendingResponses
A streaming call whose client leaves responses unread now fails with RESOURCE_EXHAUSTED after 1000 pending responses by default; set maxPendingResponses to raise the limit or 0 to disable. github.com - Behavior changed
maxWildcardChannelLength
Requests matched through a wildcard subscription are now limited to 1024 characters by default; set the option to 0 to disable the limit. github.com
And 5 more in this version. Sign up to see every change
Older versions
16 older versions, each with its first changes. Sign up to see every change
Show 16 older versions
@nestjs/core 12.4.1 breaking changes
- Signature changed
internal:DependenciesScanner.insertModule
Was insertModule(moduleDefinition: any, scope: Type<unknown>[]): Promise<{moduleRef: Module; inserted: boolean;} | undefined>; now insertModule(moduleDefinition: any, scope: Type<unknown>[], insertedModules?: Module[]): Promise<{moduleRef... npmjs.com - Signature changed
internal:DependenciesScanner.scanForModules
Was scanForModules({moduleDefinition, lazy, scope, ctxRegistry, overrides}: ModulesScanParameters): Promise<Module[]>; now scanForModules({moduleDefinition, lazy, scope, ctxRegistry, overrides, insertedModules}: ModulesScanParameters)... npmjs.com
And 5 more in this version.
@nestjs/core 12.2.0 breaking changes
- Behavior changed
A global enhancer the injector cannot instantiate stops the application at startup. github.com - Behavior changed
Files uploaded with a request that a pipe rejected are now deleted from storage. github.com
And 20 more in this version.
@nestjs/core 12.1.3 breaking changes
- Behavior changed
Request-scoped class global enhancers used to be silently ignored; now application startup fails for them. Move such enhancers to a non-request scope or register them another way. github.com - Behavior changed
ParseArrayPipe
Nested arrays in ParseArrayPipe items are now rejected instead of accepted. Code that relied on nested arrays passing validation must be adjusted. github.com
And 3 more in this version.
@nestjs/core 12.1.0 breaking changes
- Behavior changed
ParseDatePipe
The ParseDatePipe default value is now applied to every missing value, so code that relied on missing values staying undefined may see different results. github.com
@nestjs/core 12.0.0 breaking changes
- Removed
Nest 12 requires Node.js v20.19+ or v22.12+; the 21.x line is not supported. Upgrade Node.js before upgrading. github.com - Removed
Running a Nest 12 application needs Node.js v20.19+ or v22.12+ on the 22.x line. The 21.x line is not supported. docs.nestjs.com
And 46 more in this version.
@nestjs/core 11.2.12 breaking changes
- Removed
@nestjs/platform-fastify 11.2.12 needs Node.js 20.19+ or 22.12+. On earlier 20.x and 22.x releases, importing it fails with ERR_REQUIRE_ESM, so upgrade Node.js first. github.com
@nestjs/core 11.2.10 breaking changes
- Behavior changed
A guard, interceptor or pipe binding that cannot run now stops the application at startup. github.com - Behavior changed
An invalid middleware target now stops the application at startup, so such entries must be corrected. github.com
And 4 more in this version.
@nestjs/core 11.2.8 breaking changes
- Behavior changed
Global enhancers whose dependency tree is request-scoped were silently skipped before and now run. Code that relied on them being skipped will now see them execute. github.com - Behavior changed
Middleware with transient scope was previously skipped and is now mounted, which also mounts middleware listed after a transient one. github.com
And 3 more in this version.
@nestjs/core 11.1.13 breaking changes
- Signature changed
repl
Was function repl(module: Type | DynamicModule, replOptions?: ReplOptions): Promise<import("repl").REPLServer>; now function repl(module: Type | DynamicModule, replOptions?: ReplOptions): Promise<import("node:repl").REPLServer>. npmjs.com
@nestjs/core 11.1.10 breaking changes
- Signature changed
NestApplicationContext.enableShutdownHooks
Was enableShutdownHooks(signals?: (ShutdownSignal | string)[]): this; now enableShutdownHooks(signals?: (ShutdownSignal | string)[], options?: ShutdownHooksOptions): this. npmjs.com - Signature changed
NestApplicationContext.listenToShutdownSignals
Was protected listenToShutdownSignals(signals: string[]): void; now protected listenToShutdownSignals(signals: string[], options?: ShutdownHooksOptions): void. npmjs.com
@nestjs/core 11.1.9 breaking changes
- Behavior changed
get
Calling get() on a provider in an implicitly request-scoped tree now throws instead of returning a value. Code relying on the old lookup must use resolve() or adjust its scoping. github.com
@nestjs/core 11.1.4 breaking changes
- Default changed
RMQ_DEFAULT_QUEUE
The RMQ_DEFAULT_QUEUE constant was changed to an empty string. Code that relied on the previous default queue name must set the queue explicitly. github.com
@nestjs/core 11.0.0 breaking changes
- Removed
Exporting promises from modules is no longer supported. Export the resolved values or classes directly instead. github.com - Removed
Nest 12 applications need Node.js v20.19+ or v22.12+ on the 22.x line. The 21.x line is not supported. docs.nestjs.com
And 39 more in this version.
@nestjs/core 10.4.2 breaking changes
- Signature changed
SerializedGraph.insertEdge
Was insertEdge(edgeDefinition: WithOptionalId<Edge>): {id: string; metadata: ({type: "module-to-module";} & {sourceModuleName: string; targetModuleName: string;}) | ({type: "class-to-class"; sourceClassName: string; targetClassName... npmjs.com
@nestjs/core 10.3.2 breaking changes
- Signature changed
AbstractHttpAdapter.search
Was search(port: string | number, callback?: () => void): any search(port: string | number, hostname: string, callback?: () => void): any; now search(handler: RequestHandler): any search(path: any, handler: RequestHandler): any. npmjs.com
@nestjs/core 10.0.0 breaking changes
- Removed
Node v12 is no longer supported, so users must run Node v16 or later. github.com - Removed
angular schematic
The CLI no longer ships the angular schematic. docs.nestjs.com
And 15 more in this version.
Related packages
- @nestjs/microservices
- @nestjs/common
- @nestjs/platform-fastify
- @nestjs/testing
- @nestjs/platform-express
- @nestjs/cli
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.