Electron 26.0.0
Electron 26.0.0 がリリースされました! これには Chromium 116.0.5845.62、V8 11.2、Node.js 18.16.1 へのアップグレードが含まれています。 詳しくは以下をご覧ください!
Electron チームは、Electron 26.0.0 のリリース発表にワクワクしています! npm install electron@latest から npm でインストールするか、リリースウェブサイト からダウンロードできます。 このリリースの詳細は続きをご覧ください。
フィードバックがあれば、Twitterで共有するか、コミュニティ Discordに参加してください! バグや機能の要望は Electron の Issue トラッカー で報告できます。
注目すべき変更
累積的変更
- Chromium 116.0.5845.62
- Node.js 18.16.1
- V8 11.2
破壊的変更
非推奨: webContents.getPrinters
webContents.getPrinters メソッドは非推奨となりました。 代わりに webContents.getPrintersAsync を使用してください。
const w = new BrowserWindow({ show: false });
// 非推奨
console.log(w.webContents.getPrinters());
// こちらで置き換えてください
w.webContents.getPrintersAsync().then((printers) => {
  console.log(printers);
});
非推奨: systemPreferences.{get,set}AppLevelAppearance と systemPreferences.appLevelAppearance
systemPreferences.appLevelAppearance プロパティと同様に、systemPreferences.getAppLevelAppearance と systemPreferences.setAppLevelAppearance メソッドも非推奨になりました。 代わりに nativeTheme モジュールを使用してください。
// 非推奨
systemPreferences.getAppLevelAppearance();
// こちらで置き換えてください
nativeTheme.shouldUseDarkColors;
// 非推奨
systemPreferences.appLevelAppearance;
// こちらで置き換えてください
nativeTheme.shouldUseDarkColors;
// 非推奨
systemPreferences.setAppLevelAppearance('dark');
// こちらで置き換えてください
nativeTheme.themeSource = 'dark';
非推奨: systemPreferences.getColor での alternate-selected-control-text の値
systemPreferences.getColor での alternate-selected-control-text の値は非推奨になりました。 代わりに selected-content-background を使用してください。
// 非推奨
systemPreferences.getColor('alternate-selected-control-text');
// こちらで置き換えてください
systemPreferences.getColor('selected-content-background');
新機能
- safeStorage.setUsePlainTextEncryptionと- safeStorage.getSelectedStorageBackendの API を追加しました。 #39107
- safeStorage.setUsePlainTextEncryptionと- safeStorage.getSelectedStorageBackendの API を追加しました。 #39155
- ipcRenderer.sendTo()経由で送信されたメッセージに- senderIsMainFrameを追加しました。 #39206
- Menu にキーボードで呼び出されたときのフラグを立てるサポートが追加されました。 #38954
23.x.y サポートの終了
Electron 23.x.y はプロジェクトの サポートポリシー に則りサポート終了となりました。 開発者とアプリケーションは新しいバージョンの 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 | 
次回予告
短期的には、Chromium、Node、V8 といった Electron を構成する主要コンポーネントの開発に遅れないでチームが注力し続けるでしょう。
Electron の公開タイムラインはこちら になります。
将来の変更の詳細については、予定されている破壊的変更 のページをご参照ください。
