Electron 26.0.0
¡Electron 26.0.0 ha sido liberado! Incluye actualizaciones a Chromium 116.0.5845.62, V8 11.2, y Node.js 18.16.1. ¡Lea a continuación para más detalles!
El equipo de Electron esta emocionado de anunciar el lanzamiento de Electron 26.0.0! You can install it with npm via npm install electron@latest or download it from our releases website. Continue reading for details about this release.
If you have any feedback, please share it with us on Twitter, or join our community Discord! Bugs and feature requests can be reported in Electron's issue tracker.
Notable Changes
Stack Changes
- Chromium
116.0.5845.62 - Node.js
18.16.1 - V8
11.2
Restaurar archivos borrados
Deprecado: webContents.getPrinters
El método webContents.getPrinters ha sido desaprobado. Use webContents.getPrintersAsync instead.
const w = new BrowserWindow({ show: false });
// Deprecated
console.log(w.webContents.getPrinters());
// Replace with
w.webContents.getPrintersAsync().then((printers) => {
console.log(printers);
});
Deprecated: systemPreferences.{get,set}AppLevelAppearance and systemPreferences.appLevelAppearance
The systemPreferences.getAppLevelAppearance and systemPreferences.setAppLevelAppearance methods have been deprecated, as well as the systemPreferences.appLevelAppearance property. Use the nativeTheme module instead.
// Deprecated
systemPreferences.getAppLevelAppearance();
// Replace with
nativeTheme.shouldUseDarkColors;
// Deprecated
systemPreferences.appLevelAppearance;
// Replace with
nativeTheme.shouldUseDarkColors;
// Deprecated
systemPreferences.setAppLevelAppearance('dark');
// Replace with
nativeTheme.themeSource = 'dark';
Deprecated: alternate-selected-control-text value for systemPreferences.getColor
The alternate-selected-control-text value for systemPreferences.getColor has been deprecated. Use selected-content-background instead.
// Deprecated
systemPreferences.getColor('alternate-selected-control-text');
// Replace with
systemPreferences.getColor('selected-content-background');
Nuevas características
- Added
safeStorage.setUsePlainTextEncryptionandsafeStorage.getSelectedStorageBackendapi. #39107 - Added
safeStorage.setUsePlainTextEncryptionandsafeStorage.getSelectedStorageBackendapi. #39155 - Added
senderIsMainFrameto messages sent viaipcRenderer.sendTo(). #39206 - Added support for flagging a Menu as being keyboard initiated. #38954
Fin de soporte para 23.x.y
Electron 23.x.y ha alcanzado el fin de soporte según la política de soporte del proyecto. Developers and applications are encouraged to upgrade to a newer version of Electron.
| E26 (Aug'23) | E27 (Oct'23) | E28 (Jan'24) |
|---|---|---|
| 26.x.y | 27.x.y | 28.x.y |
| 25.x.y | 26.x.y | 27.x.y |
| 24.x.y | 25.x.y | 26.x.y |
| 22.x.y |
What's Next
In the short term, you can expect the team to continue to focus on keeping up with the development of the major components that make up Electron, including Chromium, Node, and V8.
You can find Electron's public timeline here.
More information about future changes can be found on the Planned Breaking Changes page.
