本文へスキップ

Electron 26.0.0

·読了時間2分

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 trackerで報告できます。

注目すべき変更点

スタックの変更点

破壊的変更

非推奨: `webContents.getPrinters`

`webContents.getPrinters`メソッドは非推奨になりました。代わりに`webContents.getPrintersAsync`を使用してください。

const w = new BrowserWindow({ show: false });

// Deprecated
console.log(w.webContents.getPrinters());
// Replace with
w.webContents.getPrintersAsync().then((printers) => {
console.log(printers);
});

非推奨: `systemPreferences.{get,set}AppLevelAppearance`と`systemPreferences.appLevelAppearance`

`systemPreferences.getAppLevelAppearance`と`systemPreferences.setAppLevelAppearance`メソッド、および`systemPreferences.appLevelAppearance`プロパティは非推奨になりました。代わりに`nativeTheme`モジュールを使用してください。

// Deprecated
systemPreferences.getAppLevelAppearance();
// Replace with
nativeTheme.shouldUseDarkColors;

// Deprecated
systemPreferences.appLevelAppearance;
// Replace with
nativeTheme.shouldUseDarkColors;

// Deprecated
systemPreferences.setAppLevelAppearance('dark');
// Replace with
nativeTheme.themeSource = 'dark';

非推奨: `systemPreferences.getColor`の`alternate-selected-control-text`値

`systemPreferences.getColor`の`alternate-selected-control-text`値は非推奨になりました。代わりに`selected-content-background`を使用してください。

// Deprecated
systemPreferences.getColor('alternate-selected-control-text');
// Replace with
systemPreferences.getColor('selected-content-background');

新機能

  • `safeStorage.setUsePlainTextEncryption`と`safeStorage.getSelectedStorageBackend` APIを追加しました。 #39107
  • `safeStorage.setUsePlainTextEncryption`と`safeStorage.getSelectedStorageBackend` APIを追加しました。 #39155
  • `ipcRenderer.sendTo()`を介して送信されるメッセージに`senderIsMainFrame`を追加しました。 #39206
  • メニューをキーボードで起動されたものとしてフラグ付けするサポートを追加しました。 #38954

23.x.yのサポート終了

プロジェクトのサポートポリシーに従って、Electron 23.x.yのサポートが終了しました。開発者とアプリケーションは、新しいバージョンのElectronにアップグレードすることをお勧めします。

E26 (2023年8月)E27 (2023年10月)E28 (2024年1月)
26.x.y27.x.y28.x.y
25.x.y26.x.y27.x.y
24.x.y25.x.y26.x.y
22.x.y

今後の予定

短期的に見ると、チームはChromium、Node、V8を含むElectronを構成する主要コンポーネントの開発を継続することに重点を置くことを期待できます。

Electronのパブリックタイムラインはこちらにあります。

今後の変更に関する詳細については、計画されている破壊的変更ページをご覧ください。