Английская Википедия:Electron (software framework)

Материал из Онлайн справочника
Перейти к навигацииПерейти к поиску

Шаблон:Short description Шаблон:Use dmy dates Шаблон:Infobox software

Electron (formerly known as Atom Shell[1]) is a free and open-source software framework developed and maintained by OpenJS Foundation.[2] The framework is designed to create desktop applications using web technologies (mainly HTML, CSS and JavaScript, although other technologies such as front-end frameworks and WebAssembly are possible) that are rendered using a version of the Chromium browser engine and a back end using the Node.js runtime environment.[3] It also uses various APIs to enable functionality such as native integration with Node.js services and an inter-process communication module.

Electron was originally built for Atom[1] and is the main GUI framework behind several other open-source projects including GitHub Desktop, Light Table,[4] Visual Studio Code, WordPress Desktop[5] and Eclipse Theia.[6]

Architecture

Electron applications include a "main" process and several "renderer" processes. The main process runs the logic for the application (e. g. menus, shell commands, lifecycle events), and can then launch multiple renderer processes by instantiating an instance of the Шаблон:Code class, which loads a window that appears on the screen by rendering HTML and CSS.

Both the main and renderer processes can run with Node.js integration if the Шаблон:Code field in the main process is set to Шаблон:Code.

Most of Electron's APIs are written in C++ or Objective-C and are exposed directly to the application code through JavaScript bindings.[7]

History

In September 2021, Electron moved to an eight-week release cycle between major versions to match the release cycle of Chromium Extended Stable and to comply with a new requirement from the Microsoft Store that requires browser-based apps to be within two major versions of the latest release of the browser engine.[8]

Electron frequently releases new major versions along every other Chromium release. The latest three stable versions are supported by the Electron team.[9]

Version history
Release Status Release date End of life date Chromium version Node.js version Module version N-API version ICU version
Шаблон:Version Шаблон:Version TBD TBD TBD TBD ? ? ?
Шаблон:Version Шаблон:Version[10] Шаблон:Date Шаблон:Date 122 18.19 ? ? ?
Шаблон:Version Шаблон:Version Шаблон:Date[11] Шаблон:Date 120 18.18 ? ? ?
Шаблон:Version Шаблон:Version Шаблон:Date[12] Шаблон:Date 118 18.17 ? ? ?
Шаблон:Version Шаблон:Version Шаблон:Date[13] Шаблон:Date 116 18.16 ? ? ?
Шаблон:Version Шаблон:Version Шаблон:Date[14] Шаблон:Date 114 18.15 ? ? ?
Шаблон:Version Шаблон:Version Шаблон:Date[15] Шаблон:Date 112 18.14 ? ? ?
Шаблон:Version Шаблон:Version Шаблон:Date[16] Шаблон:Date 110 18.12 ? ? ?
Шаблон:Version Шаблон:Version Шаблон:Date[17] Шаблон:Date 108 16.17 ? ? ?
Шаблон:Version Шаблон:Version Шаблон:Date[18] Шаблон:Date 106 16.16 ? ? ?
Шаблон:Version Шаблон:Version Шаблон:Date[19] Шаблон:Date 104 16.15 ? ? ?
Шаблон:Version Шаблон:Version Шаблон:Date[20] Шаблон:Date[17] 102 16.14 106 ? ?
Шаблон:Version Шаблон:Version Шаблон:Date[21] Шаблон:Date[18] 100 16.13 103 ? ?
Шаблон:Version Шаблон:Version Шаблон:Date[22] Шаблон:Date 98 16.13 101 ? ?
Шаблон:Version Шаблон:Version Шаблон:Date[23] Шаблон:Date[20] 96 16.9 99 ? ?
Шаблон:Version Шаблон:Version Шаблон:Date Шаблон:Date[20] 94 16.5 98 ? ?
Шаблон:Version Шаблон:Version Шаблон:Date Шаблон:Date[21] 92 14.17 89 8 69.1
Шаблон:Version Шаблон:Version Шаблон:Date Шаблон:Date[22] 91 14.16 89 7 68.1
Шаблон:Version Шаблон:Version Шаблон:Date Шаблон:Date[23] 89 14.16 87 7 68.1
Шаблон:Version Шаблон:Version Шаблон:Date Шаблон:Date 87 12.18 85 5 65.1
Шаблон:Version Шаблон:Version Шаблон:Date Шаблон:Date 85 12.16 82 5 65.1
Шаблон:Version Шаблон:Version Шаблон:Date Шаблон:Date 83 12.14 80 5 65.1
Шаблон:Version Шаблон:Version Шаблон:Date Шаблон:Date 80 12.13 76 5 65.1
Шаблон:Version Шаблон:Version Шаблон:Date Шаблон:Date 78 12.8 75 4 64.2
Шаблон:Version Шаблон:Version Шаблон:Date Шаблон:Date 76 12.4 73 4 64.2
Шаблон:Version Шаблон:Version Шаблон:Date Шаблон:Date 73 12.0 70 4 63.1
Шаблон:Version Шаблон:Version Шаблон:Date Шаблон:Date 69 10.11 69 3 62.2
Шаблон:Version Шаблон:Version Шаблон:Date Шаблон:Date 66 10.2 64 3 ?
Шаблон:Version Шаблон:Version Шаблон:Date Шаблон:Date 61 8.9 57 ? ?
Шаблон:Version Шаблон:Version Шаблон:Date Шаблон:Date 59 8.2 57 ? ?

Reception

Шаблон:Main

Desktop applications built with Electron include Atom,[24] balenaEtcher,[25] Eclipse Theia,[6] Microsoft Teams,[26] Slack[27] and Visual Studio Code.[28][29] Brave Browser was based on Electron before it was rewritten to use Chromium directly.[30]

The most common criticism of Electron is that it necessitates software bloat when used for simple programs.[31] As a result, Michael Larabel has referred to the framework as "notorious among most Linux desktop users for being resource heavy, not integrating well with most desktops, and generally being despised."[32] Meanwhile, Joey Sneddon states that this tradeoff is sensible as Electron greatly lowers the cost of developing and maintaining cross-platform software.[33]

Researchers have shown that Electron's large feature set can be hijacked by bad actors with write access to the source JavaScript files. This requires root access on *nix systems and isn't considered to be a vulnerability by the Electron developers.[34] Those who are concerned that Electron is not always based on the newest version of Chromium have recommended progressive web applications as an alternative.[35]

See also

Шаблон:Portal

References

Шаблон:Reflist

External links

Шаблон:Microsoft FOSS