@nestjs/platform-fastify 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: 81 breaking changes in 11 versions.
- From 11.2.8 to 12.6.3: 86 breaking changes in 15 versions.
@nestjs/platform-fastify 12.6.3 breaking changes
- Behavior changed
Routes that differ only in letter 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 them. github.com - Behavior changed
@Body
With a falsy primitive body ("", 0 or false), @Body('key') now yields undefined instead of the whole body. Code that relied on receiving the whole body must be updated. github.com - Behavior changed
enableCsrfProtection
A path excluded without a version in the exclude option of enableCsrfProtection() now also excludes 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 excludes the routes of the default version(s), as forRoutes() does. Check exclusions that 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 that were accepted before will now fail validation. 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 will now fail. github.com - Signature changed
FastifyAdapter.render
Was render(response: TReply & {view: Function;}, view: string, options: any): FastifyReply<RouteGenericInterface, RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, unknown, import("fastify").FastifySchema... npmjs.com
@nestjs/platform-fastify 12.6.2 breaking changes
- Behavior changed
StreamableFile
On Fastify, a StreamableFile answered with status 205 now sends no body. Code that expected a body on 205 responses must change. github.com
@nestjs/platform-fastify 12.6.1 breaking changes
- Removed
Since @fastify/middie 9.3.7 the Fastify adapter needs Node.js 20.19 or later on the 20 line, or 22.12 or later on the 22 line, so older Node.js versions no longer work. github.com - Behavior changed
applyDecorators
A returned descriptor replaces the method and a returned class replaces the class, as TypeScript does; composed parameter decorators now receive the parameter index. github.com - Behavior changed
ConsoleLogger
redact now also masks Headers, URLSearchParams, FormData, URL credentials and search params, and SuppressedError error fields, which JSON mode now serializes. github.com - Behavior changed
ParseArrayPipe
With stopAtFirstError: false, custom exceptionFactory errors that are not HttpException are collected for every item instead of throwing the first one, as before 12.5.0. github.com - Behavior changed
ParseDatePipe
Dates such as 2/30/2024, Feb 30, 2024 and 4/31/24 that used to roll over are now rejected with an error, so inputs that relied on the rollover must be corrected. 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
FastifyAdapter.redirect
Was redirect(response: TReply, statusCode: number, url: string): FastifyReply<RouteGenericInterface, TServer, TRawRequest, TRawResponse, unknown, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown>; now... npmjs.com
@nestjs/platform-fastify 12.6.0 breaking changes
- Behavior changed
Routes on host patterns are now compared as patterns, so routes that overlap may now be reported as conflicts. github.com - Behavior changed
Calls still running after gracePeriod are cancelled when the server closes. Raise gracePeriod if you have long-running streams. github.com - Behavior changed
A custom parameter decorator that gives the handler the response object now passes it unchanged and runs no pipe on it, as with @Res(), on every adapter. github.com - Behavior changed
Requests whose target does not start with / (other than * and absolute-form URLs) now get a 400 FST_ERR_BAD_URL instead of reaching the not-found handler. github.com - Behavior changed
@Res
A method that overrides a passthrough handler with a plain @Res() no longer keeps passthrough, so it must set passthrough itself if needed. github.com - Behavior changed
createNestApplication
logger: true now keeps the logger instead of turning logging off, and forceConsole: true logs through console, as NestFactory does. github.com - Behavior changed
DiscoveryService
Classes that extend a class with a discovery decorator are now found by DiscoveryService, so code that relied on them being missed may change. github.com - Behavior changed
inject
A response to HEAD, or a 204 or 304 response, now has no body when using inject(), so code reading those bodies may change. github.com
@nestjs/platform-fastify 12.5.0 breaking changes
- Behavior changed
A guard, interceptor or pipe that cannot run now fails the application at startup instead of later. github.com - Behavior changed
Kafka events can no longer request a reply through reply headers, and replies no longer carry them. github.com - Behavior changed
A route upload option set to undefined or null now inherits the module's value; use Infinity to lift a limit. github.com - Behavior changed
ClassSerializerInterceptor
Serialization rules such as Exclude, groups and schemas now apply to every object a streamed HTTP response yields. github.com - Behavior changed
enableCsrfProtection
A request is excluded from enableCsrfProtection() only when the exclude predicate returns true. github.com - Behavior changed
forRoutes
Middleware given to forRoutes() now mounts where the router serves the covered routes, including routes excluded from the global prefix. github.com - Behavior changed
host
An empty or unset host now listens on localhost only; set host to '0.0.0.0' or '::' to listen on every interface. github.com - Behavior changed
limits.jsonFieldsSize
Fields of a multipart request sent as application/json are now limited to 1 MiB by default; raise limits.jsonFieldsSize for larger fields. github.com - Behavior changed
maxMessageSize
Messages and replies decoded as JSON are now limited to 16 MiB by default through maxMessageSize. github.com - Default changed
maxBufferSize
The default TCP maxBufferSize is now 16 Mi characters instead of 128 Mi, in both directions. github.com
And 2 more in this version. Sign up to see every change
@nestjs/platform-fastify 12.3.0 breaking changes
- Signature changed
NestFastifyApplication.listen
Was listen(opts: FastifyListenOptions, callback?: (err: Error | null, address: string) => void): Promise<TServer> listen(opts?: FastifyListenOptions): Promise<TServer>; now listen(opts: NestFastifyListenOptions, callback?: (err: Error |... npmjs.com
Older versions
10 older versions, each with its first changes. Sign up to see every change
Show 10 older versions
@nestjs/platform-fastify 12.2.0 breaking changes
- Behavior changed
Long pattern keys no longer match any handler; shorten keys to 256 characters or fewer. github.com - Behavior changed
Files uploaded with a request that a pipe rejects are now deleted from storage. github.com
And 14 more in this version.
@nestjs/platform-fastify 12.1.3 breaking changes
- Signature changed
FastifyAdapter.end
Was end(response: TReply, message?: string): void; now end(response: TRawResponse | TReply, message?: string): void. npmjs.com - Signature changed
FastifyAdapter.isHeadersSent
Was isHeadersSent(response: TReply): boolean; now isHeadersSent(response: TRawResponse | TReply): boolean. npmjs.com
@nestjs/platform-fastify 12.1.1 breaking changes
- Signature changed
FastifyAdapter.setViewEngine
Was setViewEngine(options: FastifyViewOptions | string): Promise<any>; now setViewEngine(options: FastifyViewOptions | string): any. npmjs.com - Signature changed
FastifyAdapter.useStaticAssets
Was useStaticAssets(options: FastifyStaticOptions): Promise<any>; now useStaticAssets(options: FastifyStaticOptions): any. npmjs.com
@nestjs/platform-fastify 12.1.0 breaking changes
- Signature changed
FastifyAdapter.close
Was close(): Promise<undefined>; now close(): Promise<void>. npmjs.com - Signature changed
FastifyAdapter.initHttpServer
Was initHttpServer(): void; now initHttpServer(options?: NestApplicationOptions): void. npmjs.com
@nestjs/platform-fastify 12.0.0 breaking changes
- Removed
Packages require Node.js v20.19+ or v22.12+; the upgrade command refuses to run on older releases including 21.x. Upgrade Node.js before upgrading Nest. github.com - Removed
Running a Nest 12 application needs Node.js v20.19 or later, or v22.12 or later on the 22.x line. The 21.x line is not supported. docs.nestjs.com
And 21 more in this version.
@nestjs/platform-fastify 11.2.12 breaking changes
- Behavior changed
Importing the package on earlier 20.x and 22.x Node.js releases fails with ERR_REQUIRE_ESM. Users must run Node.js 20.19 or later, or 22.12 or later. github.com
@nestjs/platform-fastify 11.2.11 breaking changes
- Behavior changed
*path
Middleware bound to `*path` no longer runs for `/`. Bind it to `{*path}` if it must still cover the root path. github.com
@nestjs/platform-fastify 11.2.10 breaking changes
- Behavior changed
@All
An @All() route declared above a webdav or search method on the same path now stops the application at startup. Split the routes or change the method declarations. github.com - Signature changed
FastifyAdapter.getRouteMatchingOptions
Was getRouteMatchingOptions(): {caseSensitive: boolean; ignoreTrailingSlash: boolean;}; now getRouteMatchingOptions(): {caseSensitive: boolean; ignoreTrailingSlash: boolean; removesTrailingSlash: boolean; maxParamLength: number... npmjs.com
@nestjs/platform-fastify 11.2.9 breaking changes
- Behavior changed
An absolute-form request target with a `/` after a query that comes before its path is now answered with 404, and fastify 5.12.8 with find-my-way 9.10.0 routes such targets as `/`. Check any client or proxy that sends absolute-form request... github.com
@nestjs/platform-fastify 11.2.8 breaking changes
- Behavior changed
Validation of classes now rejects arrays and primitive values that were previously accepted. Make sure request bodies sent to validated classes are objects. github.com - Behavior changed
Validation errors no longer include the validated object. Code that reads the object from validation errors must change. github.com
And 4 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.