依赖版本
ESLint
当前支持的 ESLint 版本范围为
^8.57.0 || ^9.0.0
。¥The version range of ESLint currently supported is
^8.57.0 || ^9.0.0
.
我们通常至少支持最新的两个主要版本的 ESLint;尽管有时如果 API 在主要版本之间变化太大,我们可能会限制这一点。
¥We generally support at least the latest two major versions of ESLint; though sometimes we may restrict this if the APIs change too much between major releases.
Node
当前支持的 NodeJS 版本范围为
^18.18.0 || ^20.9.0 || >=21.1.0
。¥The version range of NodeJS currently supported is
^18.18.0 || ^20.9.0 || >=21.1.0
.
我们努力根据 Node 的发布文档 支持 Node 的 Active LTS 和 Maintenance LTS 发布状态。定期考虑对特定当前状态版本的支持。
¥We make an effort to support Active LTS and Maintenance LTS release statuses of Node according to Node's release document. Support for specific Current status releases are considered periodically.
TypeScript
当前支持的 TypeScript 版本范围为
>=4.8.4 <5.9.0
。¥The version range of TypeScript currently supported is
>=4.8.4 <5.9.0
.
我们镜像 DefinelyTyped 的版本支持窗口 - 意味着我们仅支持不到 2 年的 TypeScript 版本。
¥We mirror DefinitelyTyped's version support window - meaning we only support versions of TypeScript less than 2 years old.
你可能会发现我们的工具适用于较旧的 TypeScript 版本,但是我们不提供任何保证,也不会接受针对不受支持的版本的问题。
¥You may find that our tooling works on older TypeScript versions however we provide no guarantees and we will not accept issues against unsupported versions.
我们将始终努力支持 TypeScript 的最新稳定版本。有时(但并非总是),TypeScript 中的更改不需要在该项目中进行重大更改 ,因此我们能够支持多个版本的 TypeScript。在某些情况下,我们甚至可能能够支持 TypeScript 的其他预版本(即测试版和候选版本),但前提是这样做不需要我们在对最新稳定版本的支持上做出妥协。
¥We will always endeavor to support the latest stable version of TypeScript. Sometimes, but not always, changes in TypeScript will not require breaking changes in this project, and so we are able to support more than one version of TypeScript. In some cases, we may even be able to support additional pre-releases (i.e. betas and release candidates) of TypeScript, but only if doing so does not require us to compromise on support for the latest stable version.
支持新的 TypeScript 版本
¥Supporting New TypeScript Releases
对于每个新的 TypeScript 版本,我们都会提交一个问题来跟踪新版本中的更改。应始终固定此问题,你也可以 通过搜索标有 "新的 TypeScript 版本" 的问题来查找问题。如果问题尚未解决,我们尚未获得官方支持 - 请耐心等待。
¥With each new TypeScript release we file an issue to track the changes in the new version. The issue should always be pinned, and you can also find the issues by searching for issues tagged with "New TypeScript Version". If the issue is open, we do not have official support yet - please be patient.
就我们支持的版本而言:
¥In terms of what versions we support:
-
我们不支持
beta
版本。¥We do not support the
beta
releases. -
我们通常不正式支持
rc
版本。¥We generally do not officially support the
rc
releases. -
我们努力在发布后尽快支持最新的稳定 TypeScript 版本。
¥We endeavor to support the latest stable TypeScript versions as soon as possible after the release.
通常,当 rc
版本发布时,我们将开始支持下一个版本。
¥Generally we will begin working on supporting the next release when the rc
version is released.
版本警告日志
¥Version Warning Logs
请注意,我们的软件包有一个开放的 peerDependency
要求,以便允许在较新/测试版的 TypeScript 上进行实验。
¥Note that our packages have an open peerDependency
requirement in order to allow for experimentation on newer/beta versions of TypeScript.
如果你使用不受支持的 TypeScript 版本,解析器将向控制台记录警告。如果你想要禁用此警告,你可以在 parserOptions
中配置它。看:软件包 > 解析器 > warnOnUnsupportedTypeScriptVersion
。
¥If you use a non-supported version of TypeScript, the parser will log a warning to the console.
If you want to disable this warning, you can configure this in your parserOptions
.
See: Packages > Parser > warnOnUnsupportedTypeScriptVersion
.
依赖版本升级
¥Dependant Version Upgrades
请参阅 维护 > 依赖版本升级 以了解更新这些版本的维护步骤。
¥See Maintenance > Dependent Version Upgrades for maintenance steps to update these versions.