Nest.js v5.2.0 正式版已发布,更新内容主要是新功能的增加、bug 修复和其他方面的改进。具体如下:
新特性
- common: provide global config for axios instance
HttpModule.register()
#846 - core: use default exception filter handler on condition (extend core class) #860
- core: add
@Optional()
decorator #847 - core: enhance
ExternalContextCreator
(for 3rd-party libraries purposes) - core: allow ModuleRef to get imported providers (strict/non-strict mode) #832
- core: support DynamicModule in
NestFactory.create[..]()
#671
Bug 修复
- common: multiple
FileInterceptor
interceptors per class #935 - common: custom decorators shouldn’t require “data” parameter #892
- core: fastify & middleware wildcards bug #972
- core: innherited guards not being applied #879
- microservices: NATS subject wrapping no longer messing wildcards up #948
改进
- core: allow using single
Logger
instance #926 - core: hierarchical module resolution #938
- microservices: use
@grpc-loader
withing gRPC transport #980 - testing: recursively trigger
OnModuleDestroy
hook for testing module #899
发布主页和源码下载 https://github.com/nestjs/nest/releases/tag/v5.2.0
Nest 是构建高效、可扩展的 Node.js Web 应用程序的框架。它使用现代的 JavaScript 或 TypeScript(保留与纯 JavaScript 的兼容性),并结合 OOP(面向对象编程),FP(函数式编程)和 FRP(函数响应式编程)的元素。在底层,Nest 使用了 Express,可以方便地使用各种可用的第三方插件。
转自 https://www.oschina.net/news/99313/nestjs-5-2-0-released