Electron 44
Electron 44 est disponible ! Il inclut des mises à jour vers Chromium 152.0.7977.54, V8 15.2, et Node v24.18.1.
L'équipe d'Electron est heureuse d'annoncer la sortie d'Electron 44 ! Vous pouvez l'installer avec npm via npm install electron@latest ou le télécharger sur notre site web de téléchargement de version. Vous obtiendrez plus de détails sur cette version en lisant ce qui suit.
If you have any feedback, please share it with us on Bluesky or Mastodon, or join our community Discord! Les bogues et les demandes de fonctionnalités peuvent être signalés dans l'[outil de suivi des problèmes] d’Electron (https://github.com/electron/electron/issues).
Changements notables
The clipboard module now aligns with the W3C Clipboard API
Electron's clipboard module has been rearchitected to align with the W3C Clipboard API. Its read and write methods are now asynchronous, and the new ClipboardItem class provides a MIME-based interface for working with clipboard data. On Linux, the selection clipboard is now available through the clipboard.selection namespace. See RFC 0019 and the planned breaking changes document for migration details. #52508
As part of this change, the clipboard module is no longer exposed directly to renderer processes. Renderers should use navigator.clipboard, or carefully expose only the required functionality from a preload script through contextBridge.
Cross-platform window state persistence
Electron 44 adds API for saving and restoring window state. Set windowStatePersistence: true and provide a unique name in the BaseWindow or BrowserWindow constructor to preserve the window's position, size, and display mode across launches. Applications can selectively persist bounds or display modes, and clear saved state with BaseWindow.clearPersistedState(). See the Window State Persistence tutorial for details. #52270
Improved Linux desktop integration
Electron 44 restores app.setBadgeCount() and win.setProgressBar() on Linux without requiring libunity. These APIs now work with docks and taskbars that implement the LauncherEntry D-Bus API. This release also adds win.setOpacity() support, system-themed Window Controls Overlay icons, and other improvements for frameless windows on Linux. #52895 #51455 #52531
Changements de la Stack
-
Chromium
152.0.7977.54 -
Node
v24.18.1 -
V8
15.2
Electron 44 met à jour Chromium de 150.0.7871.46 à 152.0.7977.54, Node.js de v24.17.0 à v24.18.1, et V8 de 15.0 à 15.2.
Nouvelles fonctionnalités et améliorations
- Added
availabletoprocess.getSystemMemoryInfo()on Linux, exposingMemAvailablefrom/proc/meminfo. #52380 (Also in 42, 43) - Added
net.WebSocket, a WHATWG-compatible WebSocket client for the main process that routes through Chromium's network stack. #51593 (Also in 42, 43) - Added
webContents.setZoomMode(mode),webContents.getZoomMode(), andwebContents.zoomModefor per-WebContentszoom control. #49962 - Added
webFrameMain.printToPDF()to allow printing individual frames to PDF from the main process. #52625 (Also in 42, 43) - Added
windowStatePersistencetoBaseWindowandBrowserWindowfor saving and restoring window bounds and display modes across launches. #52270 - Added a
badgeproperty toMenuItemon macOS 14 and later for showing a count or custom text badge next to a menu item's label. #53046 - Added support for
win.setOpacity(opacity)on Linux. #51455 - Added
webContents.caretBrowsingEnabledfor toggling caret browsing in aWebContents. #53035 - Frameless windows on Linux now use system-themed titlebar icons for Window Controls Overlay. #52531
- Restored
app.setBadgeCount()andwin.setProgressBar()for Linux. These APIs now support any dock or taskbar that implements the LauncherEntry D-Bus API, and they no longer requirelibunity. #52895 - Made various performance improvements related to initialization and IPC. #53017 (Also in 42, 43)
- Improved application startup time on Linux by skipping GDK's OpenGL probe and loading FontConfig off the main thread during toolkit initialization. #53107 (Also in 43)
- Improved runtime performance by consuming Electron-generated PGO profiles instead of Chrome's published profiles. #51815 (Also in 42, 43)
- Improved startup time of
utilityProcess.fork(),child_process.fork(),ELECTRON_RUN_AS_NODEchild processes, and Node.js-enabled renderers. #53134 (Also in 42, 43) - Linux arm64, Windows arm64, and macOS x64 builds now start the main process from the embedded Node.js startup snapshot like the other platforms. #52879 (Also in 42, 43)
- Reduced idle main-process CPU wakeups caused by Node.js timers and immediates. #52906 (Also in 43)
- Reduced the Linux distribution size by approximately 37 MB by shipping only the locale strings and resources that Electron can use. #51804
- The first sandboxed
BrowserWindownow starts in a renderer process launched ahead of time when the default session already exists. Apps that open many windows can keep a spare renderer warm with--enable-features=SpareRendererForSitePerProcess. #53144
Changements majeurs avec rupture de compatibilité
Supprimé : prise en charge de macOS 12
macOS 12 (Monterey) is no longer supported by Chromium. Older versions of Electron will continue to run on Monterey, but macOS 13 (Ventura) or later is required to run Electron 44 and higher. #51967
Behavior Changed: webContents may be null in select-client-certificate
The app 'select-client-certificate' event is now also emitted for requests made through the net module and for utility processes created with respondToAuthRequestsFromMainProcess: true. For these requests, the webContents argument is null. Applications handling the event must check the argument before using it. #52397
This also means that net.request() and net.fetch() can now select a client certificate instead of failing with ERR_SSL_CLIENT_AUTH_CERT_NEEDED when a server requests one.
Comportement modifié : l'ANGLE est lié statiquement sur toutes les plateformes
ANGLE is now statically linked into the Electron binary on all platforms, matching upstream Chromium. The libEGL.(so|dylib|dll) and libGLESv2.(so|dylib|dll) libraries are no longer shipped. Applications that replaced or managed their own ANGLE versions by swapping these libraries can no longer do so. #52288
Behavior Changed: net.request rejects frame destinations without navigate mode
net.request now rejects requests where Sec-Fetch-Dest is document, frame, iframe, or fencedframe unless Sec-Fetch-Mode is also set to navigate. This matches Chromium's enforcement that frame-type request destinations must be navigations. #52216
Supprimé: Support de l'environnement de bureau Unity sous Linux
Electron no longer provides Unity-specific integration on Linux, and app.isUnityRunning() has been removed. Electron continues to support modern Freedesktop standards. #51649
Removed: Windows 32-bit and Linux 32-bit ARM support
Electron no longer publishes prebuilt binaries for Windows x86 (win32-ia32) or Linux ARM (linux-armv7l). Electron 44 and higher are published only for 64-bit x64 and arm64 platforms. Older Electron versions will continue to support these platforms until the Electron 43 series reaches end-of-life in January 2027. #52326
Removed: clipboard module access from renderer processes
The clipboard module is no longer exposed directly to renderer processes. Renderers should use the web platform's navigator.clipboard API. For more advanced use cases, expose only the required helpers from a preload script through contextBridge, taking care not to expose clipboard access to untrusted content. #52508
API Changed: clipboard module rearchitected to align with the W3C Clipboard API
The clipboard module's read(), write(), readText(), writeText(), and has() methods are now asynchronous. Clipboard data is represented by the new ClipboardItem class, and narrowly scoped helpers such as readImage(), writeHTML(), and availableFormats() have been removed. The Linux selection clipboard is now available through clipboard.selection. See the migration guide for the full API mapping and examples. #52508
Supprimé: Attributs de l'élément de connexion pré-macOS 13
The openAsHidden option has been removed from app.setLoginItemSettings(), and the openAsHidden, wasOpenedAsHidden, and restoreState fields have been removed from the return value of app.getLoginItemSettings(). These attributes only worked on macOS 12 and earlier, which Electron 44 no longer supports. #52667
Fin du support pour 41.x.y
Electron 41.x.y a atteint sa fin de support conformément à la politique de support du projet. Nous encourageons les développeurs à mettre à jour vers une version plus récente d'Electron et de faire de même avec leurs applications. See https://releases.electronjs.org/schedule to see the timeline for supported versions of Electron.
Et maintenant ?
À court terme, vous pouvez compter sur l’équipe pour continuer a se concentrer sur le développement des principaux composants qui composent Electron, notamment Chromium, Node et V8.
You can find Electron's public timeline here.
More information about future changes can be found on the Planned Breaking Changes page.
