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