Skip to main content

版本


最新

NPM Version

我们在美国东部时间每周一下午 1 点发布最新版本,使用当时对 main 的最新提交。 此版本由位于私有存储库中的 Github 操作自动执行。 此版本使用 npm 上的标准 latest 标签。

英:We release a latest version every Monday at 1pm US Eastern time using the latest commit to main at that time. This release is performed automatically by a Github action located in a private repository. This release goes to the standard latest tag on npm.

版本号的计算方式请参见 版本控制

英:See Versioning for how the version number is calculated.

如果没有影响面向公众的软件包的提交,则应发布补丁级版本。

英:If there have been no commits that impact public-facing packages then a patch-level release shall be released.

最新版本只能是 "minor" 或 "patch" 版本。

英:Latest releases shall only ever be "minor" or "patch" releases.

发行说明

每个版本都记录在 Github 发布页面 上。

英:Every release is documented on the Github Release page.

这些发行说明将列出该发行版中包含的 PR。

英:These release notes will list the PRs included in the release.

Canary

!!!IG6!!!

我们为每个通过所有必需检查的 main 提交发布一个 canary 版本。 此版本由 publish_canary_version 自动执行。 所以 你无需等待新的稳定版本即可使用任何更新

英:We release a canary version for each commit to main that passes all required checks. This release is performed automatically by the publish_canary_version step. So you never need to wait for a new stable version to make use of any updates.

此版本在 npm 上使用 canary 标签,并作为当前 latest 版本之上的增量 canary 补丁版本进行版本化。 IE。 如果当前版本是 5.6.1,那么第一个 canary 版本将是 5.6.2-alpha.0,第二个是 5.6.2-alpha.1,依此类推。

英:This release is goes to the canary tag on npm and it is versioned as an incremental canary patch release on top of the current latest version. I.e. if the current version is 5.6.1, then the first canary version will be 5.6.2-alpha.0, the second 5.6.2-alpha.1, and so on.

注意

上述自动发布的唯一例外是当我们处于创建库的下一个主要版本的最后阶段时 - 例如 从 1.x.x2.x.x。 在此期间,我们手动发布 canary 版本,直到我们对该版本感到满意并将其升级到 latest

安装 Canary 版本

要试用 typescript-eslint 的最新 canary 版本,请安装 @typescript-eslint/eslint-plugin@canary@typescript-eslint/parser@canary。 请注意,npm 可能需要 --force 来覆盖版本要求。

英:To try out the latest canary versions of typescript-eslint, install @typescript-eslint/eslint-plugin@canary and @typescript-eslint/parser@canary. Note that npm may need a --force to override version requirements.

npm i @typescript-eslint/eslint-plugin@canary @typescript-eslint/parser@canary --save-dev --force

主要版本

我们目前还没有关于何时执行主要版本的固定时间表; 相反,它们是在需要时完成的。

英:We currently do not have a set schedule around when major releases shall be performed; instead they are done as the need arises.

我们在 GitHub 上保留了一批重大问题作为里程碑,以 ${major}.0.0 的形式命名。 当我们进行主要版本时,我们会针对每次提交到主要分支的情况,将发布候选版本发布到 npm 上的 rc-v${major} 标记。

英:We keep a backlog of breaking issues as a milestone on GitHub that is named in the form ${major}.0.0. When we do do a major release, we release a release candidate version to the rc-v${major} tag on npm for each commit to the major branch.

请参阅 维护 > 版本 了解执行主要版本的步骤。

英:See Maintenance > Releases for steps to perform a major release.

带外发布

我们将针对罕见的紧急情况发布 "out-of-band"(在 latest 计划之外)。 我们根据具体情况评估需求,但通常紧急情况被定义为最新版本中专门引入的关键回归。

英:We will do releases "out-of-band" (outside the latest schedule) for rare emergencies. We assess need on a case-by-case basis though generally an emergency is defined as a critical regression specifically introduced in the latest release.

这些版本由具有所需访问权限的维护人员手动完成。

英:These releases are done manually by a maintainer with the required access privileges.

向后移植版本

我们将 不要 版本向后移植到之前发布的主要/次要版本。 我们只向前发布。

英:We do not back port releases to previously released major/minor versions. We only ever release forward.