Fastify 4.25.2 发布,最快的 Node.js Web 框架


Fastify 4.25.2 发布,Fastify 是一个高度专注于以最少开销和强大的插件架构为开发者提供最佳体验的 Web 框架。 它受到了 Hapi 和 Express 的启发。

新版本主要改进内容包括:

4.25.2

  • fix: npm run test:watch by @domdomegg in #5221
  • fix: always consume stream payloads when responding to 204 with no body by @mcollina in #5231
  • docs: update setErrorHandler to explain not found behaviour by @domdomegg in #5218

4.25.1

  • fix: route constraints by @climba03003 in #5207
  • fix: Better plugin name detection for FSTWRN002 by @mcollina in #5209
  • chore: at-large project by @Eomm in #5211

4.25.0

  • feat: Improve RouteShorthandOptions['constraints'] type by @Fcmam5 in #5097
  • fix: add @Eomm and @jsumners as lead maintainers by @mcollina in #5115
  • fix: reply.send supports Uint8Array payload by @SgtPooki in #5124
  • refactor: migrate deprecation warnings to actual deprecation warnings by @jsumners in #5126
  • docs: added documentation about warnings by @giuliowaitforitdavide in #5108
  • test(logger): restrict temp file permissions by @Fdawgs in #5128
  • refactor(lib/hooks): replace typeof undefined check by @Fdawgs in #5127
  • chore: replace mention of fastify .io domain with .dev by @Fdawgs in #5129
  • docs(security): add prose explaining OpenSSF CII Best Practices badge results by @ljharb in #5111
  • chore: Bump actions/setup-node from 3 to 4 by @dependabot in #5134
  • fix(types): add handler property to routeOptions by @MikeJeffers in #5136
  • docs(readme): fix ci badge path by @Fdawgs in #5138
  • docs: Fix small typo in Typescript docs by @john-ko in #5145
  • feat(plugins): mixing async and callback style now returns a warning by @giuliowaitforitdavide in #5139
  • docs: mention about multipart support by @fawazahmed0 in #5144
  • docs: add @fastify/vite to core plugins list by @galvez in #5153
  • docs: add @scalar/fastify-api-reference to community plugins list by @hanspagel in #5154
  • docs: Remove routeOptions reference in Reply.md by @shadahmad7 in #5156
  • docs(ecosystem): add fastify-uws by @tinchoz49 in #5160
  • docs: removed unmaintained fastify-nodemailer from ecosystem by @giovanni-bertoncelli in #5161
  • docs: clarify handling of streams and buffers by @brettwillis in #5166
  • docs(#5142): aligned errors and warnings documentation by @giuliowaitforitdavide in #5162
  • docs(reference/hooks): add information about prehandler by @RjManhas in #5163
  • fix: type FastifyInstance['route'] and RouteShorthandMethod by @MunifTanjim in #5155
  • docs (reference): Fix small typo in Request by @bngarren in #5186
  • chore: gitpodify by @ghostdevv in #5168
  • docs(ecosystem): Add Apitally by @itssimon in #5175
  • fix: Update reply.context deprecation warning by @avaly in #5179
  • docs(ecosystem): adds @blastorg/fastify/aws-dynamodb-cache to community plugins list by @fredrikj31 in #5158
  • docs: update preHandler hook example by @tarunrajput in #5189
  • types: added http header types to reply by @skwee357 in #5046
  • test: add tests for TOC of errors.md by @Uzlopak in #5194
  • ci: pin node 18 to 18.18.2 by @Uzlopak in #5197
  • docs(ecosystem): add http-wizard by @flodlc in #5132
  • chore: Bump actions/github-script from 6 to 7 by @dependabot in #5183
  • ci: fix broken ci by skipping tests if node v > 18.19.0 by @Uzlopak in #5195
  • fix: allow async hooks in RouteShorthandOptions without breaking request and reply types by @bienzaaron in #5147
  • fix(#5180): close secondary bindings after primary is closed by @metcoder95 in #5201
  • chore: update process-warning by @Eomm in #5206
  • types: nullish error types in callback function's parameter for after and ready method by @nokazn in #5191
  • fix(#5049): Remove duplicated calls to onReady by @metcoder95 in #5051
  • chore: remove unused type assertion by @UndefinedBehaviour in #5184

相關推薦

2022-10-18

Fastify 是一个高度专注于以最少开销和强大的插件架构为开发者提供最佳体验的 Node.js Web 框架,速度极快,它的灵感来源于 Hapi 和 Express。 Fastify 4.9.0 发布了,本此更新带来以下内容: 修复:错误处理程序的内容类型猜测 #43

2023-03-06

Fastify 是一个高度专注于以最少开销和强大的插件架构为开发者提供最佳体验的 Node.js Web 框架,速度极快,它的灵感来源于 Hapi 和 Express。 Fastify 4.14.0 发布了,本此更新带来以下内容: Schema 错误格式化程序类型 #4570 修

2022-07-22

Fastify 是一个高度专注于以最少开销和强大的插件架构为开发者提供最佳体验的 Node.js Web 框架,速度极快,它的灵感来源于 Hapi 和 Express。 Fastify 4.3.0 发布了,本此更新带来以下内容: 不缓存不必要的内容类型 #4134 修

2022-06-12

Fastify 是一个高度专注于以最少开销和强大的插件架构为开发者提供最佳体验的 Node.js Web 框架,速度极快,它的灵感来源于 Hapi 和 Express。 Fastify 4.0.1 发布了,本此更新带来以下内容: ci:移动concurrency到正确的工作流程 

2023-01-03

Fastify 是一个高度专注于以最少开销和强大的插件架构为开发者提供最佳体验的 Node.js Web 框架,速度极快,它的灵感来源于 Hapi 和 Express。 Fastify 4.11.0 发布了,本此更新带来以下内容: 修复:使用自定义记录器时,使用通用

2023-03-21

Fastify 是一个高度专注于以最少开销和强大的插件架构为开发者提供最佳体验的 Node.js Web 框架,速度极快,它的灵感来源于 Hapi 和 Express。 Fastify 4.15.0 发布了,本此更新带来以下内容: build(deps-dev):将 tsd 从 0.25.0 提升到 0.26

2022-11-09

间件应用于版本化路由: 错误修复 core #10459 fastify v4 需要返回响应 common, platform-express #10345 由于打开的 http 连接导致关闭 hooks 未触发 增强 core #10479 feat(core): 在请求映射异常中显示类的名称 #10497 fix

2023-04-06

2 升级到 15.0.3 将 @types/node 从 18.15.6 升级到 18.15.11 将 @fastify/static 从 6.9.0 升级到 6.10.0 将 fast-json-stringify 从 5.6.2 升级到 5.7.0 将 @apollo/server 从 4.5.0 升级到 4.6.0 将 amqp-connection-manager 从 4.1.11 升级到 4.1.12 将 core-js 从 3.29.1

2022-06-22

历经一年多的开发,mojo.js 终于发布了首个主要版本 1.0。 mojo.js 是 Node.js 实时 Web 框架,可将它视作采用 TypeScript 重写的 Mojolicious(Mojolicious 是 Perl 开发的 Web 框架)。mojo.js 使用了所有最新的 JavaScript 特性,专为聚焦超媒体

2023-10-31

titbit v23.3.5 已经发布,Node.js 环境的 Web 后端框架 此版本更新内容包括: bodyparser.js 解析multipart/form-data格式的数据去掉了split方式,改为跳跃式,提高了性能和安全性。并限制消息头数量,对超过最大消息头长度的文件不

2023-10-27

titbit v23.3.0 已经发布,Node.js 环境的 Web 后端框架 此版本更新内容包括: bodyparser.js 升级body解析方式。 其他一些细节更新。 详情查看:https://gitee.com/daoio/titbit/releases/v23.3.0

2023-11-02

titbit v23.4.0 已经发布,Node.js 环境的 Web 后端框架 此版本更新内容包括: 升级body 解析方式 调整中间件执行过程,小范围优化 添加getService方法 优化升级helper模块助手函数 详情查看:https://gitee.com/daoio/titbit/releases/v23.4

2023-11-06

titbit v23.4.2 已经发布,Node.js 环境的 Web 后端框架 此版本更新内容包括: 小范围优化调整代码结构。 默认errorHandle忽略ERR_HTTP_REQUEST_TIMEOUT 详情查看:https://gitee.com/daoio/titbit/releases/v23.4.2

2022-03-08

根据 Node.js 的发布记录,上个月其核心开发团队合并了为 Node.js 添加 Fetch API 的 PR。 Fetch API 提供了 WHATWG 标准接口获取资源,这是一个基于 Promise 的 HTTP 客户端,可以用来简化 HTTP 请求,在浏览器环境已支持,浏览器环境