Skip to main content

Electron 发布

🌐 Electron Releases

Electron 通常会在每次 Chromium 发布时同步发布重大版本。 本文档重点介绍发布节奏和版本支持政策。 有关我们 Git 分支的更深入指南以及 Electron 如何使用语义版本,请查看我们的 Electron 版本控制 文档。

🌐 Electron frequently releases major versions alongside every other Chromium release. This document focuses on the release cadence and version support policy. For a more in-depth guide on our git branches and how Electron uses semantic versions, check out our Electron Versioning doc.

时间线

🌐 Timeline

ElectronAlphaBetaStableEOLChromeNodeSupported
40.0.02025-Oct-302025-Dec-032026-Jan-132026-Jun-30M144TBD
39.0.02025-Sep-042025-Oct-012025-Oct-282026-May-05M142v22.20
38.0.02025-Jun-262025-Aug-062025-Sep-022026-Mar-10M140v22.18
37.0.02025-May-012025-May-282025-Jun-242026-Jan-13M138v22.16
36.0.02025-Mar-062025-Apr-022025-Apr-292025-Oct-28M136v22.14🚫
35.0.02025-Jan-162025-Feb-052025-Mar-042025-Sep-02M134v22.14🚫
34.0.02024-Oct-172024-Nov-132025-Jan-142025-Jun-24M132v20.18🚫
33.0.02024-Aug-222024-Sep-182024-Oct-152025-Apr-29M130v20.18🚫
32.0.02024-Jun-142024-Jul-242024-Aug-202025-Mar-04M128v20.16🚫
31.0.02024-Apr-182024-May-152024-Jun-112025-Jan-14M126v20.14🚫
30.0.02024-Feb-222024-Mar-202024-Apr-162024-Oct-15M124v20.11🚫
29.0.02023-Dec-072024-Jan-242024-Feb-202024-Aug-20M122v20.9🚫
28.0.02023-Oct-112023-Nov-062023-Dec-052024-Jun-11M120v18.18🚫
27.0.02023-Aug-172023-Sep-132023-Oct-102024-Apr-16M118v18.17🚫
26.0.02023-Jun-012023-Jun-272023-Aug-152024-Feb-20M116v18.16🚫
25.0.02023-Apr-102023-May-022023-May-302023-Dec-05M114v18.15🚫
24.0.02023-Feb-092023-Mar-072023-Apr-042023-Oct-10M112v18.14🚫
23.0.02022-Dec-012023-Jan-102023-Feb-072023-Aug-15M110v18.12🚫
22.0.02022-Sep-292022-Oct-252022-Nov-292023-Oct-10M108v16.17🚫
21.0.02022-Aug-042022-Aug-302022-Sep-272023-Apr-04M106v16.16🚫
20.0.02022-May-262022-Jun-212022-Aug-022023-Feb-07M104v16.15🚫
19.0.02022-Mar-312022-Apr-262022-May-242022-Nov-29M102v16.14🚫
18.0.02022-Feb-032022-Mar-032022-Mar-292022-Sep-27M100v16.13🚫
17.0.02021-Nov-182022-Jan-062022-Feb-012022-Aug-02M98v16.13🚫
16.0.02021-Sep-232021-Oct-202021-Nov-162022-May-24M96v16.9🚫
15.0.02021-Jul-202021-Sep-012021-Sep-212022-May-24M94v16.5🚫
14.0.0--2021-May-272021-Aug-312022-Mar-29M93v14.17🚫
13.0.0--2021-Mar-042021-May-252022-Feb-01M91v14.16🚫
12.0.0--2020-Nov-192021-Mar-022021-Nov-16M89v14.16🚫
11.0.0--2020-Aug-272020-Nov-172021-Aug-31M87v12.18🚫
10.0.0--2020-May-212020-Aug-252021-May-25M85v12.16🚫
9.0.0--2020-Feb-062020-May-192021-Mar-02M83v12.14🚫
8.0.0--2019-Oct-242020-Feb-042020-Nov-17M80v12.13🚫
7.0.0--2019-Aug-012019-Oct-222020-Aug-25M78v12.8🚫
6.0.0--2019-Apr-252019-Jul-302020-May-19M76v12.14.0🚫
5.0.0--2019-Jan-222019-Apr-232020-Feb-04M73v12.0🚫
4.0.0--2018-Oct-112018-Dec-202019-Oct-22M69v10.11🚫
3.0.0--2018-Jun-212018-Sep-182019-Jul-30M66v10.2🚫
2.0.0--2018-Feb-212018-May-012019-Apr-23M61v8.9🚫
官方支持日期可能会改变

Electron 官方的支持政策是最近的三个稳定版本。我们的稳定版本和生命周期结束日期由 Chromium 决定,并可能会有所更改。虽然我们会尽量在此处保持计划发布和生命周期结束日期的更新,但如果受到上游时间表变动的影响,未来的日期可能会更改,并且可能无法始终准确反映。

🌐 Electron's official support policy is the latest 3 stable releases. Our stable release and end-of-life dates are determined by Chromium, and may be subject to change. While we try to keep our planned release and end-of-life dates frequently updated here, future dates may change if affected by upstream scheduling changes, and may not always be accurately reflected.

请参阅 Chromium 的公开发布日程 以获取 Chromium 计划发布日期的准确信息。

注意:

  • -alpha.1-beta.1stable 日期是我们确定的发布日。
  • 我们努力每周发布 alpha/beta 版本,但我们发布的版本常常超出计划。
  • 所有日期都是我们的目标,但可能有调整稳定截止日期的原因,例如安全漏洞。

历史变化:

  • 自从 Electron 5 以来,Electron 一直在公布其发布日期(参见博客文章)。
  • 自 Electron 6 以来,Electron 的主要版本每次会针对 Chromium 的每隔一个主要版本发布。每个 Electron 稳定版都应与 Chrome 稳定版在同一天发布(参见博客文章)。
  • 自 Electron 16 起,Electron 已经按照 Chrome 改为四周发布一次的节奏,每 8 周发布一个主版本(参见博客文章)。
  • Electron 暂时将对 Electron 22 的支持延长至 2023 年 10 月 10 日,以支持延长 Windows 7/8/8.1 的生命周期结束

版本支持政策

🌐 Version support policy

Electron 团队支持最新的三个 稳定 主要版本。例如,如果最新版本是 6.1.x,那么 5.0.x 和 4.2.x 系列也会受到支持。我们只支持每个稳定发布系列的最新小版本。这意味着在遇到安全修复时,6.1.x 会收到修复,但我们不会发布 6.0.x 的新版本。

🌐 The latest three stable major versions are supported by the Electron team. For example, if the latest release is 6.1.x, then the 5.0.x as well as the 4.2.x series are supported. We only support the latest minor release for each stable release series. This means that in the case of a security fix, 6.1.x will receive the fix, but we will not release a new version of 6.0.x.

最新的稳定版本会单方面接收来自 main 的所有修复,而前一个版本会根据时间和带宽的情况接收其中的大部分修复。最旧的受支持版本系列只会接收安全修复。

🌐 The latest stable release unilaterally receives all fixes from main, and the version prior to that receives the vast majority of those fixes as time and bandwidth warrants. The oldest supported release line will receive only security fixes directly.

Chromium 版本支持

🌐 Chromium version support

Chromium 发布时间表

Chromium 的公开发布时间表在这里

🌐 Chromium's public release schedule is here.

Electron 针对 Chromium 的偶数版本,每 8 周发布一次,与 Chromium 的 4 周发布计划同步。例如,Electron 26 使用 Chromium 116,而 Electron 27 使用 Chromium 118。

🌐 Electron targets Chromium even-number versions, releasing every 8 weeks in concert with Chromium's 4-week release schedule. For example, Electron 26 uses Chromium 116, while Electron 27 uses Chromium 118.

Node.js 版本支持

🌐 Node.js version support

当 Node.js 的偶数版本进入活动长期支持(Active LTS)阶段时,Electron 会将其 main 分支升级到这些版本。计划如下:

🌐 Electron upgrades its main branch to even-number versions of Node.js when they enter Active LTS. The schedule is as follows:

Releases

如果 Electron 最近已将其 main 分支更新到 Node.js 的新主要版本,下一个即将发布的稳定分支将会使用该新版本。

🌐 If Electron has recently updated its main branch to a new major version of Node.js, the next stable branch to be cut will be released with the new version.

Electron 的稳定发布分支将在发布后接收 Node.js 的次要和补丁版本更新。Node.js 的补丁更新将在 Electron 的补丁版本中发布,而 Node.js 的次要更新将导致 Electron 的次要版本发布。仅限安全的发布分支将接收来自 Node.js 发布的安全相关更改,但不会接收完整版本更新。

🌐 Stable release lines of Electron will receive minor and patch bumps of Node.js after they are released. Patch bumps to Node.js will be released in patch releases of Electron, and minor bumps to Node.js will result in a minor release of Electron. Security-only release branches will receive security-related changes from Node.js releases, but not the full release.

重大 API 更改

🌐 Breaking API changes

当某个 API 被更改或删除,从而破坏现有功能时,之前的功能将在可能的情况下至少支持两个主要版本后才被移除。例如,如果一个函数原本接受三个参数,而在第 10 个主要版本中减少为两个参数,那么原本的三个参数版本将至少继续工作到第 12 个主要版本。超过最低的两个版本支持门槛后,我们会尝试在超过两个版本的范围内保持向后兼容,直到维护者觉得维护负担过重而无法继续为止。

🌐 When an API is changed or removed in a way that breaks existing functionality, the previous functionality will be supported for a minimum of two major versions when possible before being removed. For example, if a function takes three arguments, and that number is reduced to two in major version 10, the three-argument version would continue to work until, at minimum, major version 12. Past the minimum two-version threshold, we will attempt to support backwards compatibility beyond two versions until the maintainers feel the maintenance burden is too high to continue doing so.