Skip to content

Releases: nestjs/nest

v8.2.4

18 Feb 12:05
0036779
Compare
Choose a tag to compare

v8.2.4 (2021-12-17)

Bug fixes

  • common, core
  • core
    • #8782 fix(core): getInstanceName wrong return when passing a dynamic module (@micalevisk)
    • #8729 fix(core): apply existing headers to sse responses (@wSedlacek)

Enhancements

  • core
  • common, core
    • #8735 feat(core,common): fix ignore duplicated versions and support an array containing VERSION_NEUTRAL (@micalevisk)
    • #8787 feat(core,common): raise warnings when an injectable/controller/filter is imported as a module (@micalevisk)
  • common, core, microservices, platform-fastify

Code style tweaks

  • common, microservices

Dependencies

Read more

v8.2.3

22 Nov 09:43
a78e5ae
Compare
Choose a tag to compare

v8.2.3 (2021-11-22)

Dependencies

Committers: 2

v8.2.0

08 Nov 08:50
caa8a8f
Compare
Choose a tag to compare

v8.2.0 (2021-11-08)

Dependencies

Committers: 5

v8.0.0

07 Jul 09:52
8b9b0df
Compare
Choose a tag to compare

Features

  • common: refactor the built-in console logger class #6142 #5353, separate out Logger wrapper class and ConsoleLogger 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 and ParseEnumPipe 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 supports http-errors (and any other error objects that have the statusCode 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-in HttpException) #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 of router.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 of grpc) #4806
  • microservices: upgrade NATS to v2 🙌
  • platform-socket.io: upgrade Socket.io to v4 🙌

Deprecations

  • common: deprecate HttpModule to remove hard dependency on the axios library. HttpModule is published as a new @nestjs/axios package now
  • core: deprecate the listenAsync() (use listen()) and startAllMicroservicesAsync() (use startAllMicroservices()) methods
  • microservices: deprecate the listenAsync() method (use listen() instead)

v7.5.0

02 Nov 12:01
054c6e9
Compare
Choose a tag to compare

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 support urls object #5609 (RabbitMQ)

Bug fixes

  • common: expectedType should take precedence over metatype in the ValidationPipe #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

29 Jul 12:35
2166af0
Compare
Choose a tag to compare

Bug fixes

  • microservices: add microservice dispose() to close server on shutdown #5154
  • microservices: properly handle a promise returned by the registerModules #5136

Dependencies

  • platform-fastify: Fastify 3.0 support #5070

v7.3.0

01 Jul 12:16
ca7e348
Compare
Choose a tag to compare

Features

  • core: add the introspect() method to ModuleRef and NestApplicationContext classes
  • core: add the registerRequestByContextId() method to ModuleRef and NestApplicationContext classes

Improvements

  • core: user InstanceLinksHost to speed-up get() and resolve() methods

v7.1.0

24 May 12:43
eee8faf
Compare
Choose a tag to compare

Features

  • core: allow inheriting the ApplicationConfig object (for hybrid applications) #4261
  • microservices: add transport: Transport argument to the @MessagePattern() and @EventPattern decorators #4768

Bug Fixes

  • common: avoid mutating the axios options object
  • microservices: falsy options are no longer ignored (gRPC) #4817
  • microservices: additional gRPC options are no longer ignored #4607

v7.0.0

13 Mar 14:23
96ad025
Compare
Choose a tag to compare

Features

  • common: automatically transform primitives (number, bool) with ValidationPipe #4110
  • common add ParseArrayPipe and ParseBoolPipe #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

24 Jan 13:51
0afeab0
Compare
Choose a tag to compare

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