Releases: nestjs/nest
Releases · nestjs/nest
v5.0.0-beta.3
v5.0.0-beta.0
5.0.0-beta.0
Features
- core: support async lifecycle hooks (
OnModuleInitandOnModuleDestroy) #569 - core: HTTP server independence, fastify integration (
FastifyAdapter) - core: allow binding global interceptors, filters, pipes, and guards from any module. Example:
{
provide: APP_INTERCEPTOR,
useClass: LoggerInterceptor,
}- core:
@UseGuards(),@UsePipes(),@UseFilters(), and@UseInterceptors()extend metadata, instead of overriding existing one - core: dependency injection everywhere (pipes, filters, interceptors, and guards)
- core: pass
ArgumentsHostto exception filters (ability to access each argument) - core: pass enhanced
ExecutionContextto both interceptors and guards (ability to access each argument and execution context) - microservices: improve existing transporters (TCP, Redis), provide new strategies: Nats, MQTT, gRPC
Bug Fixes
- common: incorrent
multerdependency #532 - core: hanging
NestApplicationContextprocess #503 - microservices: concurrency issues (both TCP and Redis transporters) #505
Improvements
- all: remove
reflect-metadatapeer dependency #563 - all: upgrade RxJS (make use of pipeable operators)
- core: more descriptive exceptions (circular dependency) #493
- core: Nest container compatible with
useContainer()(class-validatorandtypeormpackages) #528 - core: remove static dependencies (webpack compatibility)
- websockets:
@WebSocketGateway()takes options argument that is passed to socket.io instance #508
Deprecations
- common: deprecate
@Component(),@Middleware(),@Interceptor(),@Pipe(), and@Guard()decorators (use@Injectable()instead) - core: deprecate
modules: []property (useimports: []instead) - core: deprecate
components: []property (useproviders: []instead)
Notes
- move from traditional express middleware model: each middleware is solely bounded to a particular path, regardless of the request method
v4.6.6
v4.6.5
Bug Fixes
- common:
File(s)Interceptordoes not populate thrown exception #437 - core:
NestFactory.create()returnsany - core: use
ApplicationConfigwithinExternalContextCreator#434
Improvements
- common:
HttpExceptionextendsError - core: make
corsmiddleware customizable (enableCors(),{ cors }) #457 - microservices:
RpcExceptionextendsError - websockets:
WsExceptionextendsError
v4.6.4
Bug Fixes
- common: logger overrides custom logger scope #435
- common:
FileInterceptorsupports only one options at once #429 - common: support
symbolas a token (NestApplicationContext) - core: fix exception handler (exceception thrown in the
done()callback) #431 - core: incorrect HTTP response on
SyntaxError#430 - microservices: can't select/get from context when using
NestFactory.createMicroservice#398
v4.6.1
Features
- common:
ValidationPipeimprovements #383 - common:
ParseIntPipeimprovements #385 - common: add
FileInterceptor,FilesInterceptor,@UploadedFile()and@UploadedFiles()(multerintegration) - common: add
HttpModulethat exposesHttpService(axiosintegration) - core: add
app.disable()andapp.enable()wrappers aroundexpressapp - core: add ability to inject
expressreference (EXPRESS_REFtoken) - core: enable possibility to extend metadata (inheritance support) #228
- core:
NestFactory.create()now accepts third argumentHttpsOptions - core: add
app.enableCors()toINestApplication(corsintegration) - core: add
@Render()decorator (MVC applications) - core: provide
Logger.overrideLogger()#247 - core: [feature] add
appOptionsproperty tocreate[..]methods ofNestFactory - microservices: add
listenAsync()toINestMicroserviceinstance
Bugfixes
- core: simplify HTTPS protocol usage
- core: custom transport strategy - thrown exceptions issue #290
- core: injector fails silently #287
- core: secure websockets (
wss://) #384 - core: can't select/get from context when using
NestFactory.createMicroservice()#398 - core: interceptor
$streamobservable returns another observable instead of the response object #376 - core:
Observable.throwfrom controller results in unhandled rejection promise #373
Improvements
- common: create
ModuleMetadatainterface - core: majority of methods (
INestApplication,INestMicroservice, andINestApplicationContext) returnthisinstead ofvoid - core: remove static dependencies & relationships inside
NestFactory