Releases: nestjs/nest
Releases · nestjs/nest
v8.2.3
v8.2.3 (2021-11-22)
Dependencies
- #8635 chore(deps): update dependency webpack to v5.64.2 (@renovate[bot])
- #8633 fix(deps): update dependency typeorm to v0.2.41 (@renovate[bot])
- #8632 fix(deps): update dependency @nestjs/swagger to v5.1.5 (@renovate[bot])
- #8623 chore(deps): update dependency @types/jest to v27.0.3 (@renovate[bot])
- #8611 fix(deps): update apollo graphql packages (@renovate[bot])
- #8609 fix(deps): update dependency @nestjs/schedule to v1.0.2 (@renovate[bot])
- #8624 chore(deps): update dependency @types/node to v16.11.8 (@renovate[bot])
- #8631 chore(deps): update dependency lint-staged to v12.0.3 (@renovate[bot])
- #8622 chore(deps): update nest monorepo (@renovate[bot])
- #8610 chore(deps): update dependency @grpc/proto-loader to v0.6.7 (@renovate[bot])
- #8608 chore(deps): update dependency @nestjs/schematics to v8.0.5 (@renovate[bot])
- #8616 chore(deps): update commitlint monorepo to v15 (major) (@renovate[bot])
- #8612 chore(deps): update babel monorepo to v7.16.4 (@renovate[bot])
- #8607 fix(deps): update nest monorepo to v8.2.1 (@renovate[bot])
Committers: 2
v8.2.0
v8.2.0 (2021-11-08)
Dependencies
- Other
- #8511 chore(deps): update dependency validator to 13.7.0 [security] (@renovate[bot])
- #8509 chore(deps): update dependency sinon to v12 (@renovate[bot])
- #8508 fix(deps): update dependency fastify-static to v4.5.0 (@renovate[bot])
- #8515 chore(deps): update dependency @types/jest to v27.0.2 (@renovate[bot])
- #8516 fix(deps): update apollo graphql packages to v3.5.0 (@renovate[bot])
- #8522 chore(deps): update dependency clang-format to v1.6.0 (@renovate[bot])
- #8527 fix(deps): update dependency @grpc/grpc-js to v1.4.3 (@renovate[bot])
- #8524 chore(deps): update dependency webpack to v5.62.1 (@renovate[bot])
- #8493 fix(deps): update dependency ts-morph to v12.2.0 (@renovate[bot])
- #8495 chore(deps): update confluentinc/cp-kafka docker tag to v7 (@renovate[bot])
- #8497 chore(deps): update dependency core-js to v3.19.1 (@renovate[bot])
- #8498 fix(deps): update apollo graphql packages (@renovate[bot])
- #8499 chore(deps): update dependency nats to v2.3.0 (@renovate[bot])
- #8504 chore(deps): update dependency subscriptions-transport-ws to v0.11.0 (@renovate[bot])
- #8464 fix(deps): update dependency graphql to v15.7.2 (@renovate[bot])
- #8468 fix(deps): update dependency graphql-query-complexity to v0.10.0 (@renovate[bot])
- #8470 chore(deps): update dependency webpack to v5.61.0 (@renovate[bot])
- #8473 chore(deps): update babel monorepo to v7.16.0 (@renovate[bot])
- #8476 fix(deps): update dependency ts-morph to v12.1.0 (@renovate[bot])
- #8479 chore(deps): update commitlint monorepo to v14 (major) (@renovate[bot])
- #8482 chore(deps): update dependency imports-loader to v3.1.1 (@renovate[bot])
- #8483 chore(deps): update dependency fastify-multipart to v5.1.0 (@renovate[bot])
- #8484 fix(deps): update dependency sequelize to v6.9.0 (@renovate[bot])
- #8458 fix(deps): update dependency graphql to v15.7.1 (@renovate[bot])
- #8448 chore(deps): update dependency lint-staged to v11.2.6 (@renovate[bot])
- #8449 fix(deps): update dependency graphql to v15.7.0 (@renovate[bot])
- #8450 fix(deps): update dependency @grpc/grpc-js to v1.4.2 (@renovate[bot])
- #8439 chore(deps): update dependency webpack to v5.60.0 (@renovate[bot])
- #8445 chore(deps): update dependency @types/sinon to v10.0.6 (@renovate[bot])
- #8447 chore(deps): update dependency @types/node to v16.11.6 (@renovate[bot])
- #8435 fix(deps): update nest monorepo to v8.1.2 (@renovate[bot])
platform-fastify
- #8517 fix(deps): update dependency fastify to v3.23.1 (@renovate[bot])
common
- #8440 fix(deps): update dependency axios to v0.24.0 (@renovate[bot])
Committers: 5
- Aaron Schweig (@aaronschweig)
- Andrii (@aaabramov)
- Francesco Soncina (@phra)
- Sebastian Schmid (@sjkummer)
- Tony (@Tony133)
v8.0.0
Features
- common: refactor the built-in console logger class #6142 #5353, separate out
Logger
wrapper class andConsoleLogger
class, 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#1613 - common: add
StreamableFile
class for streaming files from controller routes (cross-platform) #5278 - common: add
ParseFloatPipe
andParseEnumPipe
classes #6232 - core: add lazy module loader class #6386
- core: add
RouterModule
for defining per-module controller prefixes - core: 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) #6334 - microservices: support passing a property key to the
@Payload()
decorator #5975 - websockets: support passing a property key to the
@MessageBody()
decorator - websockets: (
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
- #6141 fixes #5591 and #789
- core:
BaseExceptionFilter
supportshttp-errors
(and any other error objects that have thestatusCode
property specified) out of the box now cdd51b0 - core: set
Error.name
property 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 #6216 - core: use
router.all()
method for routes annotated with the@All()
decorator (instead ofrouter.use()
) #6237 - core: reject on server bind failures (
listen()
) #3360 - websockets: specify
@nestjs/platform-socket.io
as an optional peer dependency to support PnP mode #6217
Dependencies
- microservices: update to use
@grpc/grpc-js
package (instead ofgrpc
) #4806 - microservices: upgrade NATS to v2 🙌
- platform-socket.io: upgrade Socket.io to v4 🙌
Deprecations
- common: deprecate
HttpModule
to remove hard dependency on theaxios
library.HttpModule
is published as a new@nestjs/axios
package now - core: deprecate the
listenAsync()
(uselisten()
) andstartAllMicroservicesAsync()
(usestartAllMicroservices()
) methods - microservices: deprecate the
listenAsync()
method (uselisten()
instead)
v7.5.0
Features
- common: support conditional cache TTL value (support async factories) #5366
- core: add Server-Sent Events (SSE) support #4842
- core: add
abortOnError
option. When enabled, Nest will rethrow the exception instead of killing the process #5327 - microservices: pass
GrpcCall
reference to call handlers #5143
Improvements
- microservices: update Kafka configuration interfaces, add missing options #5443 #5634 #5638
- microservices: add
persistent
option #5597 and supporturls
object #5609 (RabbitMQ)
Bug fixes
- common:
expectedType
should take precedence overmetatype
in theValidationPipe
#5605 - core: use
.toString()
as functions representation when serialising dynamic modules metadata #5189 - core: fix invalid middleware execution order when request-scoped dependencies are being used by a host middleware #5623
- microservices: await consumer and producer disconnect operations #5422
- microservices: check
replyTo
channel presence (NATS) #5530 - platform-fastify: add missing chaining API to the
inject()
method #5628
v7.4.0
v7.3.0
Features
- core: add the
introspect()
method toModuleRef
andNestApplicationContext
classes - core: add the
registerRequestByContextId()
method toModuleRef
andNestApplicationContext
classes
Improvements
- core: user
InstanceLinksHost
to speed-upget()
andresolve()
methods
v7.1.0
v7.0.0
Features
- common: automatically transform primitives (number, bool) with
ValidationPipe
#4110 - common add
ParseArrayPipe
andParseBoolPipe
#4113 - core: exclude middleware by path #3042
- core: pass
ExecutionContext
to custom decorators #3070
Improvements
- core: make built-in exceptions serializable #3053
- core: standardize http exception schema #4045
- microservices: introduce more descriptive microservices channels #3040
- microservices: more lighweight packets (request/response) #3071
Other
- common: remove deprecated
@ReflectMetadata
decorator - graphql: built-in code-first support + CLI plugin nestjs/graphql#634
BREAKING CHANGES
Read more here https://docs.nestjs.com/migration-guide
v6.11.0
Features
- all: add
tslib
#3748 - common: strongly type custom decorators (
createParamDecorator
) #3356 - common: add static
KEY
property to decorators created through@SetMetadata()
- common: add request cancelation (axios +
HttpModule
) #3777 - core: add hostname matching (HTTP) #2980
- microservices: support multiple gRPC packages at once #3418
- platform: add description to the
listen
method #3786
Bug Fixes
- core: run lifecycle hooks for middleware and injectables #3870
- platform: add application's global prefix to error handlers and global middlewares #3656
- deps: update to
[email protected]
#3765