@nestjs/common
12.5.1 · 16 Nov 2026MIT26M / weekRepositoryHomepagenpmAtom feed
8.4.7 is the newest release of 8.x.
In short
3 deprecated17 new3 fixed3 internal
- Deprecated
common: deprecate
HttpModuleto remove hard dependency on theaxioslibrary.HttpModuleis published as a new@nestjs/axiospackage now - Deprecated
core: deprecate the
listenAsync()(uselisten()) andstartAllMicroservicesAsync()(usestartAllMicroservices()) methods - Deprecated
microservices: deprecate the
listenAsync()method (uselisten()instead)
Security
1 advisory affects 8.0.0; 10.4.16 fixes them
- Moderatenest allows a remote attacker to execute arbitrary code via the Content-Type headerGHSA-cj7v-w2c7-cp7c · 14 Mar 2025Fixed in 10.4.16
Release note
Features
common: refactor the built-in console logger class #6142 #5353, separate out
Loggerwrapper class andConsoleLoggerclass, add buffering logs feature (buffer init logs and flush them out when a custom logger is assigned), add log level output #6172, support log levels feature nestjs/docs.nestjs.com#1613common: add
StreamableFileclass for streaming files from controller routes (cross-platform) #5278common: add
ParseFloatPipeandParseEnumPipeclasses #6232core: add lazy module loader class #6386
core: add
RouterModulefor defining per-module controller prefixescore: add the ability to exclude certain routes from the global prefix #5291
core: API versioning feature #6278
microservices: support multiple event subscribers (
@EventPattern()can be applied to multiple methods) #6334microservices: support passing a property key to the
@Payload()decorator #5975websockets: support passing a property key to the
@MessageBody()decoratorwebsockets: (
WsAdapter) support registering gateways on different paths and let them share the same HTTP server #6321
Improvements
core: sort modules topologically when invoking lifecycle hooks #6236
core: use class references as providers/controllers/injectables keys instead of their names
core:
BaseExceptionFiltersupportshttp-errors(and any other error objects that have thestatusCodeproperty specified) out of the box now #6349core: set
Error.nameproperty to the name of the class (all exceptions that inherit from the built-inHttpException) #5859
Bug fixes
common: add a missing type argument to
mixin()function #6216core: use
router.all()method for routes annotated with the@All()decorator (instead ofrouter.use()) #6237core: reject on server bind failures (
listen()) #3360websockets: specify
@nestjs/platform-socket.ioas an optional peer dependency to support PnP mode #6217
Deprecations
- Deprecated
common: deprecate
HttpModuleto remove hard dependency on theaxioslibrary.HttpModuleis published as a new@nestjs/axiospackage now - Deprecated
core: deprecate the
listenAsync()(uselisten()) andstartAllMicroservicesAsync()(usestartAllMicroservices()) methods - Deprecated
microservices: deprecate the
listenAsync()method (uselisten()instead)
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.