From 3b2db5f168ccd635050868ea34baad16fa653641 Mon Sep 17 00:00:00 2001 From: Keeley Hammond Date: Tue, 31 Aug 2021 11:14:46 -0700 Subject: [PATCH] docs: add remote removal to E14 breaking changes (#30769) --- docs/breaking-changes.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/breaking-changes.md b/docs/breaking-changes.md index abc640c29c93..41aca607572b 100644 --- a/docs/breaking-changes.md +++ b/docs/breaking-changes.md @@ -29,6 +29,25 @@ appended with `__1`, `__2` and so on, and instead will be truncated at the ## Planned Breaking API Changes (14.0) +### Removed: `remote` module + +The `remote` module was deprecated in Electron 12, and will be removed in +Electron 14. It is replaced by the +[`@electron/remote`](https://github.com/electron/remote) module. + +```js +// Deprecated in Electron 12: +const { BrowserWindow } = require('electron').remote +``` + +```js +// Replace with: +const { BrowserWindow } = require('@electron/remote') + +// In the main process: +require('@electron/remote/main').initialize() +``` + ### Removed: `app.allowRendererProcessReuse` The `app.allowRendererProcessReuse` property will be removed as part of our plan to