Nest.js 5.1 正式版:基于 TypeScript 的 Node.js 框架

栏目: 软件资讯 · 发布时间: 8年前

内容简介:Nest.js 5.1 正式版已发布,更新内容如下: 特性 common:FileFieldsInterceptor上传多个名称不同的文件(multer.fields)#741 核心:支持异步动态模块#800 核心:排除#790中的路线MiddlewareBuilder 核心:支...

Nest.js 5.1 正式版已发布,更新内容如下:

特性

  • commonFileFieldsInterceptor上传多个名称不同的文件(multer.fields#741

  • 核心:支持异步动态模块#800

  • 核心:排除#790中的路线MiddlewareBuilder

  • 核心:支持RouteInfoMiddlewareBuilder(限制中间件某些请求方法)

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

Bug修复

  • 常见:空body最终导致500错误(ValidationPipe#734

  • 核心:最后一个APP_服务者注册#812

  • 核心:中间件多次运行#779

  • 核心:自定义装饰器不被视为默认装饰器#765

  • 微服务:允许取消Grpc流#773

改进

  • 常见:暴露axiosRefHttpService#842

  • 常见:build MiddlewareFunction通用#778

  • 微服务:内部gRPC错误#844

  • 测试:类型签名TestModule.get()过于严格#772

另外,5.0+ 支持将底层的 express 替换为 fastify (号称最快的 Node.js 框架)

5.0 中文文档:https://docs.nestjs.cn/5.0/firststeps


【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Numerical Methods and Methods of Approximation in Science and En

Numerical Methods and Methods of Approximation in Science and En

Karan Surana / CRC Press / 2018-10-31

ABOUT THIS BOOK Numerical Methods and Methods of Approximation in Science and Engineering prepares students and other readers for advanced studies involving applied numerical and computational anal......一起来看看 《Numerical Methods and Methods of Approximation in Science and En》 这本书的介绍吧!

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具