Fastify v5.10.0 发布,极速 Node.js Web 框架

发布于

Fastify 是一个高度专注于以最少开销和强大的插件架构为开发者提供最佳体验的 Node.js Web 框架,速度极快,它的灵感来源于 Hapi 和 Express。

Fastify v5.10.0 现已发布,本次更新带来以下内容:

- **docs(type-providers)**:澄清 const 用法 [#6772](https://github.com/fastify/fastify/pull/6772)
- **docs**:修复失效和重定向的链接 [#6817](https://github.com/fastify/fastify/pull/6817)
- **docs**:从 @fastify/view 引擎中移除 marko(已停止支持)[#6821](https://github.com/fastify/fastify/pull/6821)
- **fix**:当 onTimeout 注册时,在 reply.hijack() 中清除 socket._meta [#6810](https://github.com/fastify/fastify/pull/6810)
- **docs**:修复 Request.md 示例中重复的 routeOptions 条目 [#6824](https://github.com/fastify/fastify/pull/6824)
- **chore**:将 dev-dependencies-typescript 组中的 @types/node 从 25.9.4 升级到 26.0.1 [#6829](https://github.com/fastify/fastify/pull/6829)
- **docs(ecosystem)**:将 @stitchapi/fastify 添加到社区插件中 [#6820](https://github.com/fastify/fastify/pull/6820)
- **feat**:引入日志控制器层 [#6580](https://github.com/fastify/fastify/pull/6580)
- **fix**:通过 reply.send 使用 ContentType 检测 `json` 和 `charset` [#6830](https://github.com/fastify/fastify/pull/6830)
- **docs**:修复 Server.md 中的不正确默认值和代码示例 [#6805](https://github.com/fastify/fastify/pull/6805)
- **docs**:修复 Hooks.md 中错误的 hook 数量 [#6825](https://github.com/fastify/fastify/pull/6825)
- **chore**:将依赖项组中的 fast-json-stringify 从 6.4.0 升级到 7.0.0,涉及 1 个目录 [#6800](https://github.com/fastify/fastify/pull/6800)
- **perf**:减少请求生命周期中的每次请求开销 [#6831](https://github.com/fastify/fastify/pull/6831)
- **fix**:从 request.host 推导出 request.port [#6680](https://github.com/fastify/fastify/pull/6680)
- **docs**:更新 Logging.md,添加按路由划分的日志级别信息 [#6627](https://github.com/fastify/fastify/pull/6627)
- **docs(type-providers)**:更新 import 以确保文章一致性 [#6771](https://github.com/fastify/fastify/pull/6771)

更新说明:[https://github.com/fastify/fastify/releases/tag/v5.10.0](https://github.com/fastify/fastify/releases/tag/v5.10.0)

---

原文链接:[点击查看](https://www.oschina.net/news/471530/fastify-5-10-0-released)

评论

暂无评论。