@nestjs/common
12.5.1 · 16 Nov 2026MIT26M / weekRepositoryHomepagenpmAtom feed
11.2.11 is the newest release of 11.x.
In short
1 breaking21 new12 fixed4 changed28 internal
- Breaking
⚠️ Node v16 and v18 are no longer supported (>= v20 is required).
Security
1 advisory affects 11.0.0; 11.0.16 fixes them
- Moderatenest allows a remote attacker to execute arbitrary code via the Content-Type headerGHSA-cj7v-w2c7-cp7c · 14 Mar 2025Fixed in 11.0.16
Release note
Article: trilon.io/blog/announcing-nestjs-11-whats-new
Migration guide: docs.nestjs.com/migration-guide 👈 👈 👈
⚠️ Node v16 and v18 are no longer supported (>= v20 is required).
Features
common, core, microservices: feat(microservices): add status, unwrap, on methods to microservice transporters (clients/servers) (@kamilmysliwiec)
#14121 feat(common): add json logger, built-in logger improvements (@kamilmysliwiec)
common, core: feat(core): introduce different module opaque key factories (improve bootstrap performance) (@kamilmysliwiec)
common, core, microservices, platform-express, platform-fastify, platform-socket.io, platform-ws, testing, websockets: chore(deps): upgrade to express v5, fastify v5, add legacy route path converter to minimize breaking changes (@kamilmysliwiec)
Enhancements
common: feat(common): add error messages for file validators (@mag123c)
common: feat(common): allow passing number to http error createBody (@kamilmysliwiec)
common: feat(common): add ParseDatePipe, add tsdoc to other pipes (@kamilmysliwiec)
common: feat(common)!: type narrowing allowed injection tokens for
@Inject()(@micalevisk)common: fix(common): apply options to plaintoclass in classserializerinterceptor (@kmw14641)
common: fix(common): type narrowing context parameter on createParamDecorator's callback (@EeeasyCode)
microservices: feat(microservices): support nats queue per handler (@kamilmysliwiec)
microservices: feat(microservices): add gracefull shutdown option for nats server (@alinowrouzii)
microservices: feat: allow for microservice options to come from the di container (@jmcdo29)
microservices: feat(microservices): add max tcp packet buffer length (@kamilmysliwiec)
microservices: feat(microservices): ability to use a random port for the TCP server (@PieterScheffers)
websockets: feat(websockets): include exception cause to associate error with req (@kamilmysliwiec)
common, core, microservices, websockets: feat(common): introduce intrinsic exception (@kamilmysliwiec)
common, core, platform-fastify: feat(core,common,platform-fastify): add webdav http methods support (@johaven)
platform-express: feat: add multer error fieldname to the exception message (@mmgroner)
platform-ws: feat(ws): introduce message parser for ws adapter (@CodyTseng)
platform-fastify: chore(fastify): update fastify view options interface (@Tony133)
platform-fastify: refactor(fastify): update fastify static options interface (@Tony133)
common, core: feat(core): allow overriding abortOnError for the select method (@kamilmysliwiec)
Bug fixes
core: fix shutdown hooks order (@flovouin)
core: correction of
Reflectortypes (@AlexRMU)core: fix(core): Calculate module distance after bindGlobalScope (@wenlong-chen)
core: fix(core): Order of module destroy should be the reverse of module init (@wenlong-chen)
core: fix(core): revisit dependencies w/ possibly higher distance (@clkamp)
platform-fastify: fix(fastify-adapter): middleware not executed when root path is excluded (@patrickacioli)
microservices: fix: rabbitmq bindings and auto-generated queues (@EeeasyCode)
microservices: fix(microservices): use instance refs for target handler callbacks (@kamilmysliwiec)
microservices: fix(microservices): delete unnecessary call of grpcClient.start (@kamilmysliwiec)
common: fix(common)!: drop broken support for promises on
exportsof modules (@micalevisk)
Other packages in the ecosystem
config(breaking changes)cache-manager(breaking changes)
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.