长期支持
长期支持
¥Long Term Support
<a id="lts"></a>
Fastify 的长期支持 (LTS) 根据本文档中列出的时间表提供:
¥Fastify's Long Term Support (LTS) is provided according to the schedule laid out in this document:
主要版本,语义版本控制 X.Y.Z 发布版本的 "X" 版本,自发布之日起至少支持六个月。任何特定版本的发布日期都可以在 https://github.com/fastify/fastify/releases 找到。
¥Major releases, "X" release of semantic versioning X.Y.Z release versions, are supported for a minimum period of six months from their release date. The release date of any specific version can be found at https://github.com/fastify/fastify/releases.
主要版本将在下一个主要版本发布后额外获得六个月的安全更新。在此期间之后,我们仍然会审查并发布安全修复程序,只要它们是由社区提供的并且不违反其他限制,例如 支持的最低 Node.js 版本。
¥Major releases will receive security updates for an additional six months from the release of the next major release. After this period we will still review and release security fixes as long as they are provided by the community and they do not violate other constraints, e.g. minimum supported Node.js version.
主要版本将针对给定 Fastify 发布线的 LTS 期间内 Node.js LTS 政策 支持的所有 Node.js 发布线进行测试和验证。这意味着仅支持给定行的最新 Node.js 版本。
¥Major releases will be tested and verified against all Node.js release lines that are supported by the Node.js LTS policy within the LTS period of that given Fastify release line. This implies that only the latest Node.js release of a given line is supported.
除了 Node.js 运行时,Fastify 的主要版本还将针对与 Node.js 兼容的替代运行时进行测试和验证。这些替代运行时的维护团队负责确保和保证这些测试正常工作。
¥In addition to Node.js runtime, major releases of Fastify will also be tested and verified against alternative runtimes that are compatible with Node.js. The maintenance teams of these alternative runtimes are responsible for ensuring and guaranteeing these tests work properly.
N|Solid 由 NodeSource 维护,致力于根据 Fastify 发布时最新的 N|Solid LTS 版本测试和验证每个 Fastify 主要版本。NodeSource 保证 Fastify 与 N|Solid 兼容并正常运行,与 Fastify 发布时可用的 N|Solid LTS 版本的支持和兼容性范围保持一致。这确保 N|Solid 的用户可以放心使用 Fastify。
¥N|Solid, maintained by NodeSource, commits to testing and verifying each Fastify major release against the N|Solid LTS versions that are current at the time of the Fastify release. NodeSource guarantees that Fastify will be compatible and function correctly with N|Solid, aligning with the support and compatibility scope of the N|Solid LTS versions available at the time of the Fastify release. This ensures users of N|Solid can confidently use Fastify.
"month" 定义为连续 30 天。
¥A "month" is defined as 30 consecutive days.
安全版本和 Semver
¥Security Releases and Semver
由于为主要版本提供长期支持,有时我们需要将重大更改作为次要版本发布。此类更改将始终在 发行说明 中注明。
¥As a consequence of providing long-term support for major releases, there are occasions where we need to release breaking changes as a minor version release. Such changes will always be noted in the release notes.
为了避免自动接收破坏性的安全更新,可以使用波浪号(
~
)范围限定符。例如,要获取 3.15 版本的补丁,并避免自动更新到 3.16 版本,请将依赖指定为"fastify": "~3.15.x"
。这将使你的应用容易受到攻击,因此请谨慎使用。¥To avoid automatically receiving breaking security updates it is possible to use the tilde (
~
) range qualifier. For example, to get patches for the 3.15 release, and avoid automatically updating to the 3.16 release, specify the dependency as"fastify": "~3.15.x"
. This will leave your application vulnerable, so please use with caution.
超越 LTS 的安全支持
¥Security Support Beyond LTS
Fastify 的合作伙伴 HeroDevs 通过 OpenJS 生态系统可持续发展计划为 EOL 版本的 Fastify 提供商业安全支持。有关更多信息,请参阅他们的 永无止境的支持 服务。
¥Fastify's partner, HeroDevs, provides commercial security support through the OpenJS Ecosystem Sustainability Program for versions of Fastify that are EOL. For more information, see their Never Ending Support service.
计划
¥Schedule
<a id="lts-schedule"></a>
版本 | 发布日期 | LTS 结束日期 | Node.js | Nsolid(Node) |
---|---|---|---|---|
1.0.0 | 2018-03-06 | 2019-09-01 | 6、8、9、10、11 | |
2.0.0 | 2019-02-25 | 2021-01-31 | 6、8、10、12、14 | |
3.0.0 | 2020-07-07 | 2023-06-30 | 10, 12, 14, 16, 18 | v5(18) |
4.0.0 | 2022-06-08 | 2025-06-30 | 14, 16, 18, 20, 22 | v5(18), v5(20) |
5.0.0 | 2024-09-17 | TBD | 20, 22 | v5(20) |
CI 测试的操作系统
¥CI tested operating systems
<a id="supported-os"></a>
Fastify 使用 GitHub Actions 进行 CI 测试,有关最新虚拟环境与以下 YAML 工作流标签的关系的更多详细信息,请参阅 GitHub 关于工作流运行器的文档:
¥Fastify uses GitHub Actions for CI testing, please refer to GitHub's documentation regarding workflow runners for further details on what the latest virtual environment is in relation to the YAML workflow labels below:
OS | YAML 工作流标签 | 包管理器 | Node.js | Nsolid(Node) |
---|---|---|---|---|
Linux | ubuntu-latest | npm | 20 | v5(20) |
Linux | ubuntu-latest | yarn,pnpm | 20 | v5(20) |
视窗 | windows-latest | npm | 20 | v5(20) |
MacOS | macos-latest | npm | 20 | v5(20) |
使用 yarn 可能需要传递 --ignore-engines
标志。
¥Using yarn might require passing the --ignore-engines
flag.