@nestjs/common 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.3: 166 breaking changes in 13 versions.
- From 10.0.0 to 12.6.3: 251 breaking changes in 30 versions.
@nestjs/common 12.6.3 breaking changes
- Behavior changed
Routes that differ only in case, such as GET /users and GET /Users, are now reported as the same route, so duplicate: 'error' aborts bootstrap. Rename or remove one of the conflicting routes. github.com - Behavior changed
@Body
With a body of an empty string, 0 or false, @Body('key') now returns undefined instead of the whole body. Code that relied on receiving the whole body must be updated. 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). Adjust exclusions if you 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. Adjust exclusions if you relied on the old behavior. github.com - Behavior changed
ParseDatePipe
Numeric dates without a year, such as 2/30 or 4/31, and year-first month-name dates after a weekday are now rejected. Inputs with such days will now fail validation. github.com - Behavior changed
referrerPolicy.policy
An undefined entry in referrerPolicy.policy is now rejected like any other invalid value. Make sure the policy value is always defined. github.com
@nestjs/common 12.6.2 breaking changes
- Behavior changed
ParseDatePipe
ParseDatePipe now rejects a day past the end of its month in a month-name date without a year, such as Feb 30 or Feb 29. Inputs that used to pass may now fail validation. github.com - Behavior changed
StreamableFile
A StreamableFile answered with a 204, 205 or 304 status now sends no body and is not read. Code that expected a body on these statuses must change. github.com - Signature changed
applyDecorators
Was function applyDecorators(...decorators: Array<ClassDecorator | MethodDecorator | PropertyDecorator>): <TFunction extends Function, Y>(target: TFunction | object, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>)... npmjs.com
@nestjs/common 12.6.1 breaking changes
- Behavior changed
applyDecorators
A returned descriptor now replaces the method and a returned class replaces the class, and parameter decorators receive the parameter index. github.com - Behavior changed
ConsoleLogger
Headers, URLSearchParams, FormData, URL credentials and SuppressedError fields are now redacted, and JSON mode serializes SuppressedError error and suppressed fields. github.com - Behavior changed
ParseArrayPipe
With stopAtFirstError false, a custom exceptionFactory's non-HttpException errors are now collected for every item instead of only the first one being thrown. github.com - Behavior changed
ParseDatePipe
Dates such as 2/30/2024 that used to roll over are now rejected with an error, so inputs relying on the rollover must be corrected. github.com - Behavior changed
ParseEnumPipe
For enums with both string and numeric members, an exact match is now returned first, so '0' yields '0' rather than 0. github.com - Signature changed
applyDecorators
Was function applyDecorators(...decorators: Array<ClassDecorator | MethodDecorator | PropertyDecorator>): <TFunction extends Function, Y>(target: TFunction | object, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>)... npmjs.com
@nestjs/common 12.6.0 breaking changes
- Behavior changed
Calls still running after gracePeriod are now cancelled instead of being waited for without limit. Raise gracePeriod for long-running streams. github.com - Behavior changed
A custom parameter decorator that gives the handler the response object now passes it unchanged, and no pipe runs on it, as with @Res(). Handlers relying on pipes running there must be adjusted. github.com - Behavior changed
Clients now reject pending requests with a Connection closed error in cases where they used to leave them waiting, so callers need to handle that error. github.com - Behavior changed
Closing the Kafka server now waits for replies in progress, for up to gracePeriod (10 s by default), after the consumer disconnects. github.com - Behavior changed
Routes with host patterns are now checked for overlap, so routes that previously started may be reported as conflicts. github.com - Behavior changed
A method overriding a passthrough @Res handler with a plain @Res() no longer inherits passthrough. Add passthrough explicitly if it is still needed. github.com - Behavior changed
Gateways now refuse new clients as soon as the application starts closing. github.com - Behavior changed
createNestApplication
logger: true now keeps logging on and forceConsole: true logs through console, which changes output for existing test setups. github.com - Behavior changed
inject
Responses to HEAD requests and 204 or 304 responses now have no body in inject() on Fastify and Node. github.com - Behavior changed
listen
listen() now fails with a Connection closed error when the server is closed before its client connects, where it used to start. github.com
And 2 more in this version. Sign up to see every change
@nestjs/common 12.5.1 breaking changes
- Behavior changed
The parse date pipe now throws for dates such as February 30 that it previously accepted. Code that relies on those dates being accepted must validate its input first. github.com
@nestjs/common 12.5.0 breaking changes
- Behavior changed
A limit option given as NaN now gets its default value rather than turning the limit off. Check any limits computed from environment variables. github.com - Behavior changed
A guard, interceptor or pipe that cannot run now fails the application at startup, where it previously may have started. Fix such providers before upgrading. github.com - Behavior changed
Kafka events can no longer request a reply through reply headers, and replies no longer include them. Remove code that depends on reply headers. github.com - Behavior changed
Transient providers that depend on durable providers are now built for each request. Review any code that assumed a single shared instance. github.com - Behavior changed
An upload option a route sets to undefined or null now keeps the module's value instead of clearing it. Use Infinity to lift a limit. github.com - Behavior changed
An object with a key or value plus other properties is now sent as the full payload rather than being split. Check Kafka producers that relied on the old split. github.com - Behavior changed
ClassSerializerInterceptor
ClassSerializerInterceptor and StandardSchemaSerializerInterceptor now serialize every object a streamed HTTP response yields, so each NDJSON line is transformed. github.com - Behavior changed
enableCsrfProtection
The exclude predicate of enableCsrfProtection() now excludes a request only when it returns true. Predicates that returned other truthy values no longer skip the check. github.com - Behavior changed
forRoutes
Middleware passed to forRoutes() is now mounted where the router serves the covered routes, including routes excluded from the global prefix. github.com - Behavior changed
maxBufferSize
maxBufferSize is checked per packet instead of per read, so a burst of small packets no longer closes the connection but large single packets can still hit the limit. github.com
And 6 more in this version. Sign up to see every change
Older versions
25 older versions, each with its first changes. Sign up to see every change
Show 25 older versions
@nestjs/common 12.3.0 breaking changes
- Behavior changed
Express now leaves 5xx http-errors errors unmapped so they are logged, instead of converting them to HttpException. Code that catches or inspects these errors as HttpException may behave differently. github.com - Behavior changed
CORS handling in the Fastify adapter now runs before Nest middleware, so middleware that relied on the earlier order may see different requests or responses. Check any middleware that depends on CORS headers or preflight handling. github.com
@nestjs/common 12.2.0 breaking changes
- Behavior changed
If the injector cannot instantiate a global enhancer, the application now fails at startup instead of continuing. github.com - Behavior changed
BaseExceptionFilter
Errors created with expose false answer with the standard reason phrase instead of their message. github.com
And 12 more in this version.
@nestjs/common 12.1.3 breaking changes
- Behavior changed
Request-scoped class global enhancers used to be silently ignored; startup now fails for them. Make such enhancers non-request-scoped or remove them. github.com - Behavior changed
useSecurityHeaders
Applications calling useSecurityHeaders() no longer send the x-powered-by header on Express responses. Code that relies on that header must be changed. github.com
And 1 more in this version.
@nestjs/common 12.1.2 breaking changes
- Removed
ParseUUIDPipe.uuidRegExps.3
ParseUUIDPipe.uuidRegExps.3 was removed in @nestjs/common 12.1.2 npmjs.com - Removed
ParseUUIDPipe.uuidRegExps.4
ParseUUIDPipe.uuidRegExps.4 was removed in @nestjs/common 12.1.2 npmjs.com
And 6 more in this version.
@nestjs/common 12.1.1 breaking changes
- Behavior changed
ParseArrayPipe
Array items that are not numeric and used to pass through ParseArrayPipe with items Number are now rejected. Check code that relied on the old lenient parsing. github.com - Signature changed
ConsoleLogger.fatal
Was fatal(message: any, ...optionalParams: [...any, string?]): void fatal(message: any, context?: string): void; now fatal(message: any, ...optionalParams: [...any, string?, string?]): void fatal(message: any, stack?: string, context?... npmjs.com
And 3 more in this version.
@nestjs/common 12.1.0 breaking changes
- Behavior changed
ParseDatePipe
The ParseDatePipe default is now used for every missing value, not only some cases. Check code that relies on the previous handling of missing input. github.com
@nestjs/common 12.0.0 breaking changes
- 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 - 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 87 more in this version.
@nestjs/common 11.2.10 breaking changes
- Behavior changed
Validation errors that have child errors now omit the value. Code that reads the value from these errors must change. github.com - Signature changed
ConsoleLoggerOptions.depth
Was depth?: number; now depth?: number | null. npmjs.com
@nestjs/common 11.2.8 breaking changes
- Behavior changed
Validation errors no longer include the validated object. Code that reads it from validation errors must change. github.com - Default changed
Validation error messages are truncated by default in this release. Code that reads full long messages must configure the limit. github.com
And 2 more in this version.
@nestjs/common 11.2.4 breaking changes
- Behavior changed
Middleware is no longer bypassed for absolute-form request targets; requests that previously skipped middleware now run it, which is a security fix. github.com
@nestjs/common 11.1.29 breaking changes
- Signature changed
FileTypeValidatorOptions
Was type FileTypeValidatorOptions = {fileType: string | RegExp; errorMessage?: string | ((ctx: FileTypeValidatorContext) => string); skipMagicNumbersValidation?: boolean; fallbackToMimetype?: boolean;}; now type FileTypeValidatorOptions =... npmjs.com - Signature changed
MessageEvent.data
Was data: string | object; now data?: string | object. npmjs.com
And 3 more in this version.
@nestjs/common 11.1.10 breaking changes
- Signature changed
FileTypeValidatorOptions
Was type FileTypeValidatorOptions = {fileType: string | RegExp; skipMagicNumbersValidation?: boolean; fallbackToMimetype?: boolean;}; now type FileTypeValidatorOptions = {fileType: string | RegExp; errorMessage?: string | ((ctx... npmjs.com - Signature changed
INestApplicationContext.enableShutdownHooks
Was enableShutdownHooks(signals?: ShutdownSignal[] | string[]): this; now enableShutdownHooks(signals?: ShutdownSignal[] | string[], options?: ShutdownHooksOptions): this. npmjs.com
And 1 more in this version.
@nestjs/common 11.1.9 breaking changes
- Signature changed
Sse
Was function Sse(path?: string): MethodDecorator; now function Sse(path?: string, options?: {[METHOD_METADATA]?: RequestMethod;}): MethodDecorator. npmjs.com
@nestjs/common 11.1.3 breaking changes
- Signature changed
StreamableFile.getHeaders
Was getHeaders(): {type: string; disposition: string | undefined; length: number | undefined;}; now getHeaders(): {type: string; disposition: string | string[] | undefined; length: number | undefined;}. npmjs.com
@nestjs/common 11.1.1 breaking changes
- Signature changed
LogLevel
Was type LogLevel = 'log' | 'error' | 'warn' | 'debug' | 'verbose' | 'fatal'; now type LogLevel = (typeof LOG_LEVELS)[number]. npmjs.com
@nestjs/common 11.0.21 breaking changes
- Signature changed
FileTypeValidatorOptions
Was type FileTypeValidatorOptions = {fileType: string | RegExp; skipMagicNumbersValidation?: boolean;}; now type FileTypeValidatorOptions = {fileType: string | RegExp; skipMagicNumbersValidation?: boolean; fallbackToMimetype?: boolean;}. npmjs.com
@nestjs/common 11.0.19 breaking changes
- Removed
FileTypeValidator.constructor
new FileTypeValidator() was removed in @nestjs/common 11.0.19 npmjs.com
@nestjs/common 11.0.16 breaking changes
- Signature changed
FileTypeValidator.isValid
Was isValid(file?: IFile): boolean; now isValid(file?: IFile): Promise<boolean>. npmjs.com - Signature changed
FileTypeValidatorOptions
Was type FileTypeValidatorOptions = {fileType: string | RegExp;}; now type FileTypeValidatorOptions = {fileType: string | RegExp; skipMagicNumbersValidation?: boolean;}. npmjs.com
@nestjs/common 11.0.0 breaking changes
- Removed
Node.js 16 and 18 are no longer supported; Node.js 20 or later is required. github.com - Removed
Promises on the exports of modules are no longer supported. github.com
And 53 more in this version.
@nestjs/common 10.4.16 breaking changes
- Signature changed
FileTypeValidator.buildErrorMessage
Was buildErrorMessage(): string; now buildErrorMessage(file?: IFile): string. npmjs.com - Signature changed
FileTypeValidator.isValid
Was isValid(file?: IFile): boolean; now isValid(file?: IFile): Promise<boolean>. npmjs.com
And 1 more in this version.
@nestjs/common 10.4.9 breaking changes
- Signature changed
ValidationPipe.toEmptyIfNil
Was protected toEmptyIfNil<T = any, R = any>(value: T): R | {}; now protected toEmptyIfNil<T = any, R = any>(value: T, metatype: Type<unknown> | object): R | {}. npmjs.com
@nestjs/common 10.4.0 breaking changes
- Signature changed
ParseUUIDPipe.uuidRegExps
Was protected static uuidRegExps: {3: RegExp; 4: RegExp; 5: RegExp; all: RegExp;}; now protected static uuidRegExps: {3: RegExp; 4: RegExp; 5: RegExp; 7: RegExp; all: RegExp;}. npmjs.com - Signature changed
ParseUUIDPipeOptions.version
Was version?: '3' | '4' | '5'; now version?: '3' | '4' | '5' | '7'. npmjs.com
@nestjs/common 10.3.4 breaking changes
- Behavior changed
@RawBody
Adds a RawBody decorator to the package in @nestjs/common 10.3.4 github.com
@nestjs/common 10.3.1 breaking changes
- Signature changed
Header
Was function Header(name: string, value: string): MethodDecorator; now function Header(name: string, value: string | (() => string)): MethodDecorator. npmjs.com
@nestjs/common 10.0.0 breaking changes
- Removed
Applications must run on Node.js 20.19 or later, or 22.12 or later on the 22.x line. Upgrade the runtime before moving to v12. docs.nestjs.com - Removed
The angular schematic is no longer available in the CLI. docs.nestjs.com
And 39 more in this version.
Related packages
- @nestjs/microservices
- @nestjs/core
- @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.