chore: inital 13.0.0 blog post (#5403)
Co-authored-by: Sofia Nguy <sofianguy@gmail.com> Co-authored-by: George Xu <gxu@slack-corp.com>
This commit is contained in:
Родитель
186597ec16
Коммит
5c796d52fd
|
@ -0,0 +1,97 @@
|
|||
---
|
||||
title: Electron 13.0.0
|
||||
author:
|
||||
- sofianguy
|
||||
- georgexu99
|
||||
- VerteDinde
|
||||
date: '2021-05-25'
|
||||
---
|
||||
|
||||
Electron 13.0.0 has been released! It includes upgrades to Chromium `91` and V8 `9.1`. We've added several API updates, bug fixes, and general improvements. Read below for more details!
|
||||
|
||||
---
|
||||
|
||||
The Electron team is excited to announce the release of Electron 13.0.0! You can install it with npm via `npm install electron@latest` or download it from our [releases website](https://electronjs.org/releases/stable). Continue reading for details about this release, and please share any feedback you have!
|
||||
|
||||
## Notable Changes
|
||||
|
||||
### Stack Changes
|
||||
|
||||
* Chromium `91`
|
||||
* [New in Chrome 91](https://www.youtube.com/watch?v=vy6FXa0n1r0)
|
||||
* [New in Chrome 90](https://developer.chrome.com/blog/new-in-chrome-90/)
|
||||
* Node.js `14.16.0`
|
||||
* [Node 14.16.0 blog post](https://nodejs.org/en/blog/release/v14.16.0/)
|
||||
* [Node 14.0.0 blog post](https://nodejs.org/en/blog/release/v14.0.0/)
|
||||
* V8 `9.1`
|
||||
* [V8 9.1 blog post](https://v8.dev/blog/v8-release-91)
|
||||
* [V8 9.0 blog post](https://v8.dev/blog/v8-release-90)
|
||||
|
||||
### Highlight Features
|
||||
|
||||
* Added `process.contextIsolated` property that indicates whether the current renderer context has `contextIsolation` enabled. [#28252](https://github.com/electron/electron/pull/28252)
|
||||
* Added new `session.storagePath` API to get the path on disk for session-specific data. [#28866](https://github.com/electron/electron/pull/28866)
|
||||
* Deprecated the `new-window` event of `WebContents`. It is replaced by `webContents.setWindowOpenHandler()`
|
||||
* Added `process.contextId` used by `@electron/remote`. [#28251](https://github.com/electron/electron/pull/28251)
|
||||
|
||||
See the [13.0.0 release notes](https://github.com/electron/electron/releases/tag/v13.0.0) for a full list of new features and changes.
|
||||
|
||||
## Breaking Changes
|
||||
|
||||
* `window.open()` parameter frameName is no longer set as window title. [#27481](https://github.com/electron/electron/pull/27481)
|
||||
* Changed `session.setPermissionCheckHandler(handler)` to allow for `handler`'s first parameter, `webContents` to be `null`. [#19903](https://github.com/electron/electron/pull/19903)
|
||||
|
||||
More information about these and future changes can be found on the [Planned Breaking Changes](https://github.com/electron/electron/blob/master/docs/breaking-changes.md) page.
|
||||
|
||||
## API Changes
|
||||
|
||||
* Added `roundedCorners` option for `BrowserWindow`. [#27572](https://github.com/electron/electron/pull/27572)
|
||||
* Added new `session.storagePath` API to get the path on disk for session-specific data.[28866](https://github.com/electron/electron/pull/28866)
|
||||
* Added support for passing DOM elements over the context bridge. [#26776](https://github.com/electron/electron/pull/26776)
|
||||
* Added `process.uptime()` to sandboxed renderers. [#26684](https://github.com/electron/electron/pull/26684)
|
||||
* Added missing fields to the parameters emitted as part of the `context-menu `event.[#26788](https://github.com/electron/electron/pull/26788)
|
||||
* Added support for registering Manifest V3 extension service workers.
|
||||
* Added ‘registration-completed’ event to ServiceWorkers. [#27562](https://github.com/electron/electron/pull/27562)
|
||||
|
||||
### Removed/Deprecated Changes
|
||||
|
||||
The following APIs have been removed or are now deprecated:
|
||||
|
||||
* Deprecated the `new-window` event of `WebContents`. It is replaced by `webContents.setWindowOpenHandler()`
|
||||
* Removed deprecated `shell.moveItemToTrash()`. [#26723](https://github.com/electron/electron/pull/26723)
|
||||
* Removed the following deprecated `BrowserWindow` extension APIs:
|
||||
|
||||
* `BrowserWindow.addExtension(path)`
|
||||
* `BrowserWindow.addDevToolsExtension(path)`
|
||||
* `BrowserWindow.removeExtension(name)`
|
||||
* `BrowserWindow.removeDevToolsExtension(name)`
|
||||
* `BrowserWindow.getExtensions()`
|
||||
* `BrowserWindow.getDevToolsExtensions()`
|
||||
|
||||
Use the `session` APIs instead:
|
||||
|
||||
* `ses.loadExtension(path)`
|
||||
* `ses.removeExtension(extension_id)`
|
||||
* `ses.getAllExtensions()`
|
||||
|
||||
* The following `systemPreferences` methods have been deprecated:
|
||||
|
||||
* `systemPreferences.isDarkMode()`
|
||||
* `systemPreferences.isInvertedColorScheme()`
|
||||
* `systemPreferences.isHighContrastColorScheme()`
|
||||
|
||||
Use the following `nativeTheme` properties instead:
|
||||
|
||||
* `nativeTheme.shouldUseDarkColors`
|
||||
* `nativeTheme.shouldUseInvertedColorScheme`
|
||||
* `nativeTheme.shouldUseHighContrastColors`
|
||||
|
||||
## End of Support for 10.x.y
|
||||
|
||||
Electron 10.x.y has reached end-of-support as per the project's [support policy](https://electronjs.org/docs/tutorial/support#supported-versions). Developers and applications are encouraged to upgrade to a newer version of Electron.
|
||||
|
||||
## 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. Although we are careful not to make promises about release dates, our plan is release new major versions of Electron with new versions of those components approximately quarterly. The [tentative 14.0.0 schedule](https://electronjs.org/docs/tutorial/electron-timelines) maps out key dates in the Electron 14.0 development life cycle. Also, [see our versioning document](https://electronjs.org/docs/tutorial/electron-versioning) for more detailed information about versioning in Electron.
|
||||
|
||||
For information on planned breaking changes in upcoming versions of Electron, [see our Planned Breaking Changes doc](https://github.com/electron/electron/blob/master/docs/breaking-changes.md).
|
Загрузка…
Ссылка в новой задаче