Repository navigation
Releases
Releases · nestjs/nest
v12.6.0
v12.6.0 (2026-11-20)
Notable changes
New features
NestFactory.create()infers the application type from the adapter:NestFactory.create(AppModule, new FastifyAdapter())returns aNestFastifyApplicationwith no type argument, and the same goes forExpressAdapterandNodeAdapter. An explicit type argument still works. A custom adapter declares its application type as the fourth type argument ofAbstractHttpAdapter– #18623WsAdaptertakesgracefulShutdown(falseby default) andgracePeriod(10,000 ms by default). WithgracefulShutdown, closing the application stops accepting connections (an upgrade on a server shared with the HTTP adapter gets a 503), ignores new messages, waits up togracePeriodfor message handlers and pending replies, and closes each socket with code 1001 – #18589- gRPC server:
gracePeriod(10,000 ms by default) forgracefulShutdown– #18566
New defaults and behaviour changes
- gRPC server with
gracefulShutdown: closing used to wait for the calls in progress with no limit; calls still running aftergracePeriodare now cancelled. RaisegracePeriodfor long-running streams – #18566 - A custom parameter decorator that gives the handler the response object now passes it as it is, and no pipe runs on it, as with
@Res(), whatever the adapter. On Fastify such a handler used to never run – #18600 - A method that overrides a
@Res({ passthrough: true })handler with a plain@Res()no longer inheritspassthrough– #18617 DiscoveryServicefinds a class that extends a class decorated with aDiscoveryService.createDecorator()decorator under that decorator – #18582- Route conflict detection reads string hosts as patterns, so a route on
:tenant.example.comis found to overlap one onadmin.example.com, and such routes may now be reported – #18609 - The
createNestApplication()andcreateNestMicroservice()of a testing module applyloggerandforceConsoleasNestFactorydoes:logger: truekeeps the logger (it used to turn logging off), andforceConsole: truelogs throughconsole– #18618 @nestjs/platform-node: aContent-Typeset withres.setHeader()getscharset=utf-8whenres.send()sends a string, as on Express – #18527@nestjs/platform-fastify: the exception for a failed upload carries the parser's error as itscause, as on Express – #18555@nestjs/platform-fastify: the router answers a request whose target does not start with/(other than*and absolute-form URLs) with a 400 (FST_ERR_BAD_URL), afterfind-my-way9.10.2; such a request used to reach the not-found handler – #18569inject()on@nestjs/platform-fastifyand@nestjs/platform-node: a response toHEAD, and a 204 or 304 response, has no body, afterlight-my-request6.8.1 – #18570
Microservices
- NATS and MQTT servers closed before their client connects:
listen()fails with "Connection closed" instead of starting – #18602, #18603 - Clients fail pending requests with "Connection closed" where they used to leave them waiting: Kafka when the reply consumer stops or crashes, or a rebalance moves its reply partition away – #18583; MQTT and Redis when closed before the reply subscription is confirmed – #18584; RabbitMQ when the broker cancels the direct reply-to consumer – #18585
- Kafka server: closing waits for the replies in progress, for
gracePeriod(10 s by default) at most, after the consumer disconnects – #18535 - Gateways reject new clients as soon as the application starts closing – #18588
Dependencies
@nestjs/platform-fastify:@fastify/middie9.3.7,@fastify/cors11.4.3,@fastify/formbody9.0.2,find-my-way9.10.2,light-my-request6.8.1@nestjs/platform-node:@fastify/proxy-addr5.1.3,encodeurl2.0.3,find-my-way9.10.2,light-my-request6.8.1@nestjs/platform-ws:ws8.23.0
Features
microservicesplatform-wscore,platform-express,platform-fastify,platform-node
Bug fixes
common- #18617 fix(common): keep an overriding @res() from inheriting passthrough (@mtnaskari)
- #18612 fix(common): guard nested binary check against circular references (@MrSatan)
- #18598 fix(common): redact map keys, skip array holes and guard flat params (@MrSatan)
- #18597 fix(common): keep configurable module builder from mutating options (@yuvrajtiwary-bitmesraece)
- #18579 fix(common): keep an optional leading group in normalize path (@rafay247)
- #18571 fix(common): allow no options with extras in configurable module builder (@mo74x)
- #18574 fix(common): copy own
__proto__keys of default values (@ragib-mrb) - #18551 fix(common): preserve sparse array length in default value pipe (@Rio3210)
core- #18609 fix(core): match host patterns when detecting route conflicts (@Johannes7549)
- #18600 fix(core): pass the response a custom decorator gives as it is (@kamilmysliwiec)
- #18582 fix(core): discover providers that inherit a discovery decorator (@SudeepGowda55)
- #18568 fix(core): preserve handler names on deferred routes (@mo74x)
- #18567 fix(core): apply non-uri version filter once per multi-path route (@mo74x)
- #18547 fix(core): keep the nest functions in the repl after ".clear" (@yuvrajtiwary-bitmesraece)
microservices- #18603 fix(microservices): stop mqtt server startup when closed before client connects (@ragib-mrb)
- #18602 fix(microservices): stop nats server startup when closed before client connects (@ragib-mrb)
- #18594 fix(microservices): stop a redis connection attempt once closed (@rafay247)
- #18584 fix(microservices): evict pre-suback mqtt and redis requests on close (@mo74x)
- #18583 fix(microservices): evict pending kafka requests on stop or rebalance (@mo74x)
- #18585 fix(microservices): fail pending rmq requests on reply consumer cancel (@mo74x)
- #18545 fix(microservices): stop an rmq connection attempt once the client is closed (@Asadshah7950)
- #18535 fix(microservices): drain pending kafka replies before closing (@IbrahimHafez1)
platform-fastifyplatform-node- #18611 fix(node): preserve optional parameters in shared routes (@Rio3210)
- #18527 fix(node): add the charset to a content type set natively on send (@andreymudri)
testing- #18618 fix(testing): apply the logger and forceConsole options as NestFactory does ([@mtnaskari](h...
v11.2.11
What's changed
@nestjs/common@nestjs/core@nestjs/platform-fastify- fix(deps): update dependency @fastify/middie to v9.3.6 — backport of #18219; middleware bound to
*pathno longer runs for/({*path}still covers it)
- fix(deps): update dependency @fastify/middie to v9.3.6 — backport of #18219; middleware bound to
Full Changelog: v11.2.10...v11.2.11
v12.5.1
v12.5.1 (2026-11-16)
Features
core- #18523 feat(core): accept module metadata as the root module (@kamilmysliwiec)
Bug fixes
common- #18515 fix(common): reject a date past the end of its month in parse date pipe (@jaeminbird)
microservices- #18521 fix(microservices): decode each value of a repeated kafka header (@yuvrajtiwary-bitmesraece)
- #18512 fix(microservices): stop a kafka connection attempt once the client is closed (@BillWGong)
platform-node
Enhancements
microservices- #18525 feat(microservices): graceful shutdown for the rmq server (@samuelmbabhazi)
- #18514 feat(microservices): graceful shutdown for the tcp server (@samuelmbabhazi)
- #18513 feat(microservices): graceful shutdown for the mqtt server (@samuelmbabhazi)
- #18505 feat(microservices): graceful shutdown for the redis and nats servers (@samuelmbabhazi)
Docs
common- #18508 docs(common): correct the default breakLength of the console logger (@ragib-mrb)
common,core,microservices,platform-express,platform-fastify,platform-node,platform-socket.io,platform-ws,testing,websockets- #18503 docs: use absolute links for the translated guides and license (@abd1rahmane)
Committers: 8
- Abderrahmane Messaadi (@abd1rahmane)
- BillW Gong (@BillWGong)
- Jae Birdsall (@jaeminbird)
- Kamil Mysliwiec (@kamilmysliwiec)
- Ragib MRB (@ragib-mrb)
- Yuvraj Tiwary (@yuvrajtiwary-bitmesraece)
- @xh123637
- samuel mbabhazi (@samuelmbabhazi)
v12.5.0
v12.5.0 (2026-11-12)
Notable changes
New options
WsAdaptertakesmaxPayload, the largest message a client may send (1 MB by default, was 100 MB; a gateway's ownmaxPayloadtakes precedence,0lifts the limit); a larger message closes the connection with code 1009 – 109e52cd9bIoAdaptertakesmaxWaitingMessages, the number of a client's messages of one event that may wait beyond those being handled (10,000 by default;Infinitylifts it) – c98b5f782e- TCP server:
maxConcurrentMessages(1000 per connection by default;0lifts it) – 42c619cd69 - gRPC server:
maxPendingResponses(1000 by default;0disables), after which a streaming call whose client leaves its responses unread fails withRESOURCE_EXHAUSTED– ce6d44d858 - Redis server:
maxWildcardChannelLength(1024 characters by default;0disables) for requests matched through a wildcard subscription – 074dcf7c60 - RabbitMQ:
maxMessageSize(16 MiB by default) for messages and replies decoded as JSON – da6b3fc5bc @nestjs/platform-fastify: multipartlimits.jsonFieldsSize(1 MiB by default) for the fields of a request sent asapplication/json– 958316696f
New defaults and behaviour changes
- TCP:
maxBufferSizedefaults to 16 Mi characters (was 128 Mi), in both directions – 55da0b0d33 – and now applies to each packet rather than to everything received in one read, so a burst of small packets no longer closes the connection (#18502) – ce285e6ad3 - TCP server: an empty or unset
hostnow listens on localhost; sethost: '0.0.0.0'(or'::') to listen on every interface – 4196d3655d @nestjs/platform-express,@nestjs/platform-node: multipart requests default to at most 1000 parts, which also caps afields,filesormaxCountabove 1000 unlesslimits.partsis raised – b2bbc17122- An upload option a route sets to
undefinedornullnow keeps the module's value; useInfinityto lift a limit – 7bc8d9121e - A limit option given as
NaN(e.g.Number(process.env.UNSET)) now gets its default instead of turning the limit off, for TCP, Kafka,WsAdapter,IoAdapter, the validation pipes and@Sse()– 8209d1c8be, f956177a0e, 5b58a6e89f ClassSerializerInterceptorandStandardSchemaSerializerInterceptorserialize each object a streamed HTTP response yields, so@Exclude(), groups and schemas apply to every line of NDJSON – 8217f2b3b8@Sse(): while Node.js has paused the socket of a client, a:comment is written every 5 s, so that a client that left is noticed – cd963b19bd@nestjs/platform-express,@nestjs/platform-node: aSyntaxErrororURIErrorwithout a 400 status (e.g. thrown by a middleware passed toapp.use()) is answered with a logged 500 rather than a 400 carrying its message – 8d74ddcd3a@nestjs/platform-node: when the matched route would leave a route parameter empty, the request is a 404 – 56c06f48c3- Middleware given to
forRoutes()is mounted where the router serves the routes it covers, including routes excluded from the global prefix – 521cdea80f - Parameter pipes of controllers built with mixins or wrapped by a class decorator that returns a Proxy now run – 7c5792d969
- The
excludepredicate ofenableCsrfProtection()excludes a request only when it returnstrue– 608fcec0a9 - Gateways on their own port drop clients that connect before
onApplicationBootstrap()has finished; socket.io clients reconnect – 7d705cc835 - In a standalone microservice, a gateway without a port no longer opens a server on a random port; it gets a server that does not listen – 7359d3b06a
- An
@Optional()dependency that exists but fails to build at request time now fails its consumer – 0c360708b5 - Transient providers with durable dependencies are built per request – 822d93ffd1
moduleRef.create()rejects a request-scoped property dependency, as it does for constructor parameters – 6c5fed8b72
New startup errors and warnings
- A guard, interceptor or pipe that can't run (e.g. an abstract class used as a token, or a class given as the
useValueofAPP_GUARD) fails the application at startup; an exception filter that can't run logs a warning – 7a81aed500, 407518855f - An invalid
forRoutes()orexclude()entry fails the application at startup – 1afb768959 - A gateway that joins a shared server with a
verifyClientorallowRequestthe server won't run, or gateways on one port that set different hosts, stop the application at startup – 32875410dc, fd0155fba0 @nestjs/platform-fastify:@All('x')declared above@Search('x')or a WebDAV method on the same path fails at startup, as the reverse order already did;@All()routes now also answer these methods – a1695d18ea- Warnings for exception filter classes bound to a middleware, which don't apply – 3113f03f1e – and for a
ValidationPipethat gets no parameter types – f433a1f752
Microservices
- gRPC: an
Errorwrapped in anRpcExceptionis logged and answered as "Internal server error"; its numeric code is still used as the status – 2038bff425 - A filter that throws on a response stream is logged and answered as "Internal server error" – 515f99cfb6
- Kafka: events can no longer ask for a reply through reply headers, and replies no longer carry them – d1473338c3; an object with a
keyorvalueand other properties is sent as the payload – 73373dc911; a request whose reply topic is one the server handles itself is dropped – 809029b74b - RabbitMQ wildcards: a message whose pattern names a different handler than its routing key is not handled – ef8f92c5d0
- Patterns with a string value over 4096 characters or more than 100 keys get a marker route – ed8ca5cded; multi-key patterns with a non-ASCII key may get a new route, so clients and servers of such patterns should be on the same version – 015456cc2f
@nestjs/core and the platform packages should be updated together, as the adapters pass new route matching options to core.
Bug fixes
platform-fastify- fecdd4f9ef fix(fastify): fail an object-mode file stream on a non-bytes chunk (@kamilmysliwiec)
- 5f08564c8b fix(fastify): release file streams of pipelined requests on close ([@kamilmysliwiec](https://github.com/kamilmys...
v11.2.10
What's changed
@nestjs/common- fix(common): let a null depth print every level in the console logger — backport of #18480
- fix(common): count empty strings toward the json log record cap
- fix(common): check the json log record cap before converting values
- fix(common): limit the error messages of parsed array items in total
- fix(common): rethrow non-validation errors in the parse array pipe
- fix(common): drop the value of validation errors that have children
- fix(common): reject a buffer sent in place of a validated class
- fix(common): reject a buffer held by a nested validated property
- fix(common): validate a stand-in for a buffer sent as the whole value
- fix(common,core): use the default for pipe and sse limits given as nan
- fix(common): validate the files of parse file pipe one at a time
- fix(common): close the gaps of sparse arrays the pipes validate
- fix(common,core): count sse events without data toward the pending limit
- fix(common,core): send the status text in sse errors that wrap an error
- fix(common): keep the scope a class declares when passed to mixin()
@nestjs/core- fix(core): listen for the error of every stream the router holds
- fix(core): share one close listener among the requests of a connection
- fix(core): send what the interceptors return for a streaming handler
- fix(core): catch what the teardown of an sse producer throws
- fix(core): write the waiting events of an sse client in linear time
- fix(core): notice an sse client that left while its socket is paused
- fix(core): keep host params matched next to an optional group
- fix(core): answer http errors that graphql or async rpc filters leave
- fix(core): skip exception filters that were not created for a request
- fix(core): keep a controller root route next to an optional-tail route
- fix(core,fastify): exclude "/x/" only when no other route may serve it
- fix(core,fastify,node): match excluded params up to the router's limit
- fix(core,fastify): end the excluded path at ";" like the fastify router
- fix(core,fastify): match the text after an excluded param as written
- fix(core): run the middleware for a path with a line terminator
- fix(core): mount middleware where the router serves the covered routes
- fix(core): test each versioned path against the prefix exclusions alone
- fix(core): keep the filters of a middleware's use() with exclude()
- fix(core): warn that filter classes bound to a middleware do not apply
- fix(core): reject a middleware target that is not a controller or route — such an entry now fails the application at startup
- fix(core): mount module middleware in order when configure() awaits
- fix(core): resolve a forward reference to a module only once
- fix(core): mount a controller root route without the slash after a tail
- fix(core): mount middleware on a route path that really ends in "$"
- fix(core): keep create() working after many calls in snapshot mode
- fix(core): give unserializable dynamic modules their own deep-hash ids
- fix(core): build a lazy module once when loads overlap
- fix(core): fail the consumer when an optional dependency fails to load
- fix(core): keep transient instances out of durable sub-trees
- fix(core): inject the strategy payload into durable providers as request
- fix(core): inject the provider an alias stands for
- fix(core,websockets): read parameter metadata from the declaring class
- fix(core,common): read the catch types of a filter from its prototype
- fix(core): warn when a validation pipe gets no parameter types
- fix(core): use the enhancers of the module that holds the host
- fix(core): run the container instance of a class-bound enhancer
- fix(core): throw for a guard, interceptor or pipe that can't run — such a binding now fails the application at startup
- fix(core,microservices,websockets): drop gateway clients during startup
- fix(core): warn about an exception filter that can't run
- fix(core): settle sse lifecycle on early disconnect — backport of #17987
- fix(core): let exclusions cover routes excluded from the global prefix — backport of #18209
- fix(core): compare a prefix exclusion with a trailing slash as served
- fix(core): release the throwaway wrapper of each create() call — backport of #18137
- fix(core): reject create() when a dependency is request-scoped — backport of #18142
- fix(core): find the module of a host registered under another token
- fix(core): roll back modules on failed lazy load — backport of #18385
- fix(core): reject create() when a property dependency is request-scoped
- fix(core): release removed wrappers from the providers they depended on
- [fix(core): use the enhancers of the module that holds the host](https...
v12.4.1
v12.4.1 (2026-11-09)
Features
platform-node- #18435 feat(node): inject requests into the node adapter like the fastify one (@thekhegay)
- #18439 feat(node): set req.route on the node adapter like express does (@thekhegay)
Bug fixes
core- #18385 fix(core): roll back modules on failed lazy load (@Asadshah7950)
Enhancements
common,core- #18429 fix(core,common): warn when decorator metadata is missing (@kamilmysliwiec)
Dependencies
platform-ws- #18468 chore(deps): bump ws from 8.22.0 to 8.22.1 (@dependabot[bot])
Committers: 8
- Abdellatif Anaflous (@hktitof)
- Asad Ali Shah (@Asadshah7950)
- G (@gjija)
- Kamil Mysliwiec (@kamilmysliwiec)
- Maksym Lyskov (@maxymlyskov)
- Roman Khegay (@thekhegay)
- Thiago Nascimento (@ThiagoACNascimento)
- WooSeung Kim (@beyondwin)
v11.2.9
What's changed
@nestjs/core@nestjs/platform-express@nestjs/platform-fastify- fix(fastify): end the authority of absolute-form targets at the query — an absolute-form request target with a
/after a query that comes before its path is now answered with 404 - fix(deps): update dependency fastify to v5.12.8 — resolves the advisories published against fastify up to 5.12.4;
find-my-waymoves to 9.10.0 with it, sohttp://host?a=bis now routed as/
- fix(fastify): end the authority of absolute-form targets at the query — an absolute-form request target with a
v12.4.0
v12.4.0 (2026-11-06)
Features
platform-node- #18396 feat(node): let the node adapter set locals for every view (@thekhegay)
Bug fixes
microservices- #18418 fix(microservices): ignore an mqtt server's own replies under wildcards (@pavstev)
- #18413 fix(microservices): reach handlers whose string pattern reads as json (@pavstev)
- #18392 fix(microservices): forward grpc call options on request streams (@DenisCDev)
- #18393 fix(microservices): await the mqtt close and reset the client state (@hktitof)
commonplatform-node- #18417 fix(node): omit the Content-Length of a redirect with a Transfer-Encoding (@hktitof)
- #18415 fix(node): give each route that shares a path shape its own params (@pavstev)
- #18372 fix(node): strip trailing slashes when resolving view names (@saiyam-jain-dev)
- #18403 fix(node): omit content-length when transfer-encoding is set (@pavstev)
- #18395 fix(node): render with eta, liquidjs and art-template (@thekhegay)
- #18391 fix(node): add the charset to a content type the app sets (@pavstev)
platform-fastifycore,testingplatform-express,platform-fastify,platform-nodecore- #18407 fix(core): run middleware on subpaths next to an all-methods route (@beyondwin)
- #18401 fix(core): cache external handler metadata per context type (@kamilmysliwiec)
Enhancements
common,core- #18427 feat(core,common): send a web response or stream a handler returns (@kamilmysliwiec)
Dependencies
platform-fastify- #18422 fix(deps): update dependency @fastify/cors to v11.4.1 (@renovate[bot])
Committers: 8
- Abdellatif Anaflous (@hktitof)
- Denis Scarabelli (@DenisCDev)
- Kamil Mysliwiec (@kamilmysliwiec)
- Roman Khegay (@thekhegay)
- Ryan Johnson (@ryodine)
- Saiyam Jain (@saiyam-jain-dev)
- Stevan Pavlović (@pavstev)
- WooSeung Kim (@beyondwin)
v12.3.0
v12.3.0 (2026-10-27)
Features
platform-node- #18063 feat(node): add a native node http platform adapter (@kamilmysliwiec)
Bug fixes
common- #18289 fix(common): report the detected file type in file type errors (@DenisCDev)
- #18246 fix(common): avoid throwing for arrow prototype constructors (@fengxueweilai)
- #18220 fix(common): abort the response when a streamable file fails midway (@thekhegay)
core- #18276 fix(core): run middleware once for routes that differ only in version (@OmBhandwaldar)
- #18262 fix(core): tolerate sse request sockets without tuning methods (@SnowingFox)
- #18252 fix(core): read the url protocol from the server (@thekhegay)
- #18254 fix(core): name the array and index of undefined module entries (@thekhegay)
- #18235 fix(core): discover classes by each of their discovery decorators (@OmBhandwaldar)
- #18216 fix(core): read the abort on error option of the app being called (@thekhegay)
- #18209 fix(core): let middleware exclusions cover prefix-excluded routes (@thekhegay)
- #18210 fix(core): honor abortOnError passed to select() (@Cayan)
- #18215 fix(core): subscribe to handler observables from other rxjs copies (@koreahghg)
- #18201 fix(core): read a quoted media type version in the middleware exclusions (@hktitof)
- #18200 fix(core): resolve request-scoped forward refs for concurrent requests (@maxymlyskov)
common,microservices,platform-ws- #18285 fix(ws,microservices): load packages where bundlers can see them (@kamilmysliwiec)
common,microservices,websockets- #18272 fix(common): keep one route param per argument in an overriding method (@maxymlyskov)
platform-express- #18264 fix(express): map unsupported multipart content types to 415 (@seren-wib)
- #18234 fix(express): end a head response for an empty streamable file (@spokodev)
- #18232 fix(express): leave 5xx http-errors errors unmapped so they are logged (@kamilmysliwiec)
- #18214 fix(platform-express): map http-errors exceptions to HttpException in Express adapter (@okxint)
- #18199 fix(express): send the standard body for an exception wrapping an error (@KAPUIST)
platform-fastify- #18253 fix(fastify): send object error bodies with a json content type (@maxymlyskov)
- #18240 fix(fastify): leave 5xx fastify errors unmapped so they are logged (@thekhegay)
- #18239 fix(fastify): map 4xx http-errors errors to http exceptions (@kamilmysliwiec)
- #18226 fix(fastify): listen on a file descriptor (@thekhegay)
- #18217 fix(fastify): run cors before nest middleware (@kamilmysliwiec)
core,platform-express,platform-fastify,platform-socket.io,platform-ws,websockets- #18251 fix(core,express,fastify,ws,socket.io): load adapters with an older core (@thekhegay)
microservices- #18250 fix(microservices): re-arm the redis retries on a new listen (@hktitof)
- #18255 fix(microservices): report a nats connection that gave up reconnecting (@thekhegay)
- #18249 fix(microservices): do not emit a trailing null to kafka requesters (@thekhegay)
- #18256 fix(microservices): let a retriable exception keep travelling (@hktitof)
- #18238 fix(microservices): retry the tcp server again after close and listen (@kamilmysliwiec)
- #18223 fix(microservices): clear the tcp retry timer when a new listen starts (@hktitof)
- #18221 fix(microservices): honor mqtt topic filter boundaries (@fabric0de)
- #18229 fix(microservices): let only the exact message handler answer a request (@maxymlyskov)
- #18211 fix(microservices): fail the request when its last reply cannot be sent (@maxymlyskov)
- #18206 fix(microservices): reset the tcp retry attempts on each listen (@hktitof)
- #18204 fix(microservices): count every failed rmq connection attempt (@maxymlyskov)
- #18197 fix(microservices): send the record headers of nats as message headers (@hktitof)
Dependencies
platform-express- #18268 fix(deps): update dependency multer to v2.5.0 [security] (@renovate[bot])
common- #18257 fix(deps): update dependency file-type to v22.2.0 (@kamilmysliwiec)
platform-fastify- #18219 fix(deps): update dependency @fastify/middie to v9.3.6 (@renovate[bot])
Committers: 16
- Abdellatif Anaflous (@hktitof)
- Daniel Pinto (@Cayan)
- Denis Scarabelli (@DenisCDev)
- Junpei Zhang (@pei711)
- Kamil Mysliwiec (@kamilmysliwiec)
- Luke Son (@KAPUIST)
- Maksym Lyskov (@maxymlyskov)
- Om Bhandwaldar (@OmBhandwaldar)
- Roman Khegay (@thekhegay)
- Spoko Dev (@spokodev)
- @fengxueweilai
- @okxint
- snowingfox (@SnowingFox)
- yooseong (@seren-wib)
- 김정현 (Kim JungHyeon) (@fabric0de)
- 한국 (@koreahghg)
v11.2.8
What's changed
@nestjs/common- fix(common): reject non-numeric items in ParseArrayPipe with items Number — backport of #17876
- fix(common): reject arrays nested in ParseArrayPipe items — backport of #18073
- fix(common): skip array holes when stripping prototype keys
- fix(common): copy array and object defaults in
DefaultValuePipe - fix(common): cut json log records short past a million characters
- fix(common): strip a falsy constructor key from request data
- fix(common): validate parsed array items one at a time
- fix(common): stop copying nested validation errors for each level
- fix(common): reject arrays and primitives for validated classes
- fix(common): limit the length of validation error messages by default
- fix(common): stop exposing the validated object on validation errors
- fix(common): match a file type string up to the end of a name
- fix(common): handle
StreamableFileerrors raised before the reply - fix(common): keep
StreamableFileerror messages out of responses - fix(common): abort the response when a streamable file fails midway — backport of #18220
@nestjs/core- fix(core,express,fastify): match excluded routes like the router does
- fix(core): match excluded routes exactly when the router is unknown
- fix(core): answer host mismatches on fastify with 404
- fix(core): never exclude request targets with "#" or in absolute form
- fix(core): mount unversioned middleware paths under the default version
- fix(core): map controller middleware under every module declaring it
- fix(core): mount transient-scoped middleware instead of skipping it — on v11 this also mounts the middleware listed after a transient one, which was skipped as well
- fix(core): drop an overlapped middleware route only when it is covered
- fix(core): mount wildcard middleware on every path when "/" is excluded
- fix(core): mount middleware paths on routes excluded from the prefix
- fix(core): stop wildcard exclusions from covering their parent route
- fix(core): run middleware on a controller root excluded by a wildcard
- fix(core,common): exclude a version only for requests that ask for it
- fix(core,microservices,websockets): ignore inherited keys of non-objects
- fix(core): stop the Observable producer when the client disconnects — backport of #17826
- fix(core): end sse responses to head requests once headers are sent
- fix(core): do not send the message of an unexposed http error
- fix(core): destroy a
StreamableFiledropped by a timed-out handler - fix(core): destroy a
StreamableFilethat is not sent - fix(core,express,fastify): remove uploads of requests a pipe rejected
- fix(core): hand sse header errors to the exception filters
- fix(core): drop sse clients that stop reading their events
- fix(core): hide internal error messages from sse error events
- fix(core): make the sse pending data limit configurable
- fix(core): apply the expose flag of http errors to sse error events
- fix(core,microservices): run transient global enhancers on controllers — backport of #17993
- fix(core): stop silently dropping request-scoped global enhancers — backport of #18066; a global enhancer whose dependency tree is request-scoped is no longer silently skipped
- fix(core): fail at startup for request-scoped class global enhancers — backport of #18104; such an enhancer (e.g.
APP_GUARDwithuseClass) now fails at startup instead of running without its dependencies - fix(core): read class-level enhancers from the registered class
- fix(core): apply the enhancers of class providers under any token
- fix(core): run enhancers that are request-scoped through dependencies
- fix(core): fail at startup when a global enhancer is not instantiated
- fix(core): run transient global enhancers on static entry providers
- fix(core,websockets): run transient enhancers bound to static gateways
- fix(core): run guards bound as classes without a name
- fix(core): subscribe to guard observables from other copies of rxjs
- fix(core): run interceptor, pipe and filter classes without a name
@nestjs/platform-express- fix(express): run wildcard middleware on "/api/" for a named wildcard
- fix(express): apply middleware to controller root routes in strict mode
- fix(express): map multer array index and invalid field name codes to 400 — backport of #17857
- fix(express): destroy the
StreamableFilesource on client disconnect — backport of #17973 - fix(express): send object error bodies with a json content type
- fix(express,fastify): handle a
StreamableFilethat cannot be streamed - fix(express): stop reading a streamable file for a head request
@nestjs/platform-fastify