更优雅的 node.js 框架 :nestjs 5.1 发布 ,支持异步动态 modules 。

发布时间:2019-06-23 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了更优雅的 node.js 框架 :nestjs 5.1 发布 ,支持异步动态 modules 。脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

Nest是构建高效,可扩展的 Node.js Web 应用程序的框架。 它使用现代的 JavaScript 或 TypeScript(保留与纯 JavaScript 的兼容性),并结合 OOP(面向对象编程),FP(函数式编程)和FRP(函数响应式编程)的元素。

在底层,Nest 使用了 Express,但也提供了与其他各种库的兼容,例如Fastify,可以方便地使用各种可用的第三方插件。

Features

common: FileFieldsInterceptor upload multiple files with different names (multer.fields) #741
core: support async dynamic modules #800
core: exclude routes in the MiddlewareBuilder #790
core: support RouteInfo in the MiddlewareBuilder (restrict middleware to certain request method)

forRoutes(
   { path: 'cats', method: RequestMethod.GET },
   { path: 'cats', method: RequestMethod.POST },
)

Bug Fixes

common: empty body ends up with 500 error (ValidationPipe) #734
core: the last one of APP_ providers get registered #812
core: middleware runs more than once #779
core: custom decorators not being treated as default ones #765
microservices: allow gRPC stream cancellation #773

Improvements

common: expose axiosRef from HttpService#842
common: make MiddlewareFunction generic #778
microservices: propagate internal gRPC error #844
testing: type signature for TestModule.get() is too restrictive #772

文档

要查看 指南, 请访问 docs.nestjs.cn. books
要查看 English指南, 请访问 docs.nestjs.com. books

脚本宝典总结

以上是脚本宝典为你收集整理的更优雅的 node.js 框架 :nestjs 5.1 发布 ,支持异步动态 modules 。全部内容,希望文章能够帮你解决更优雅的 node.js 框架 :nestjs 5.1 发布 ,支持异步动态 modules 。所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。
标签: