Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Commit

Permalink
feat: New Crowdin translations (auto-merged 🤖) (#2027)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound authored Sep 1, 2021
1 parent 9afb12d commit 35a1fb1
Show file tree
Hide file tree
Showing 15 changed files with 1,217 additions and 13 deletions.
19 changes: 18 additions & 1 deletion content/de-DE/docs/breaking-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,23 @@ See the documentation for [window.open in Electron](api/window-open.md) for more

## Geplante Bruch-API-Änderungen (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()
```

### Entfernt: `app.allowRendererProcessReuse`

The `app.allowRendererProcessReuse` property will be removed as part of our plan to more closely align with Chromium's process model for security, performance and maintainability.
Expand All @@ -42,7 +59,7 @@ Wenn Sie diesen Parameter verwenden, um den Titel eines Fensters festzulegen, k

### Entfernt: `worldSafeExecuteJavaScript`

In Electron 14 wird `worldSafeExecuteJavaScript` entfernt. Es gibt keine Alternative, bitte stelle sicher, dass dein Code mit dieser Eigenschaft funktioniert. Es wurde standardmäßig aktiviert, da Electron
In Electron 14 wird `worldSafeExecuteJavaScript` entfernt. Es gibt keine Alternative, bitte stelle sicher, dass dein Code mit dieser Eigenschaft funktioniert. Es wurde standardmäßig aktiviert, da Electron
12.

Sie werden von dieser Änderung betroffen sein, wenn Sie entweder `webFrame.executeJavaScript` oder `webFrame.executeJavaScriptInIsolatedWorld` verwenden. Sie müssen sicherstellen, dass die von einer dieser Methoden zurückgegebenen Werte von der [Context Bridge API](api/context-bridge.md#parameter--error--return-type-support) unterstützt werden, da diese Methoden denselben Wert verwenden, der die Semantik übergeht.
Expand Down
155 changes: 155 additions & 0 deletions content/de-DE/website/blog/electron-14-0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
---
title: Electron 14.0.0
author:
- sofianguy
- clavin
- ckerr
date: '2021-08-31'
---

Electron 14.0.0 has been released! It includes upgrades to Chromium `93` and V8 `9.3`. 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 14.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

### Electron Release Cadence Change

Beginning in September 2021 with Electron 15, Electron will release a new major stable version every 8 weeks. You can read the [full details here](https://www.electronjs.org/blog/8-week-cadence). Electron 15 will begin beta on September 1, 2021 and stable release will be on September 21, 2021. You can find [Electron's public timeline here](https://electronjs.org/docs/tutorial/electron-timelines).

Additionally, Electron will be changing supported versions from latest three versions to latest four versions until May 2022. See [see our versioning document](https://electronjs.org/docs/tutorial/electron-versioning) for more detailed information about versioning in Electron.

### Stack Changes

* Chromium `93`
* [New in Chrome 93](https://developer.chrome.com/blog/new-in-chrome-93/)
* [New in Chrome 92](https://www.chromestatus.com/features#milestone%3D92)
* Node.js `14.17.0`
* [Node 14.17.0 blog post](https://nodejs.org/en/blog/release/v14.17.0/)
* V8 `9.3`
* [V8 9.3 blog post](https://v8.dev/blog/v8-release-93)
* [V8 9.2 blog post](https://v8.dev/blog/v8-release-92)

### Highlight Features

* Default Changed: `nativeWindowOpen` now defaults to `true`. [(see docs)](https://www.electronjs.org/docs/api/window-open.md)
* Child windows no longer inherit BrowserWindow construction options from their parents. [#28550](https://github.com/electron/electron/pull/28550)
* Added new `session.storagePath` API to get the path on disk for session-specific data. [#28665](https://github.com/electron/electron/pull/28665)
* Added `process.contextId` used by `@electron/remote`. [#28007](https://github.com/electron/electron/pull/28007)
* Added experimental cookie encryption support behind an [Electron Fuse](https://www.electronjs.org/docs/tutorial/fuses). [#29492](https://github.com/electron/electron/pull/29492)

See the [14.0.0 release notes](https://github.com/electron/electron/releases/tag/v14.0.0) for a full list of new features and changes.

## Breaking Changes

Below are breaking changes introduced in Electron 14. More information about these and future changes can be found on the [Planned Breaking Changes](https://github.com/electron/electron/blob/main/docs/breaking-changes.md) page.

### Entfernt: `app.allowRendererProcessReuse`

The `app.allowRendererProcessReuse` property has been removed as part of our plan to more closely align with Chromium's process model for security, performance and maintainability.

Weitere Informationen findest du unter [#18397](https://github.com/electron/electron/issues/18397).

### Entfernt: Browserfenster-Affinität

The `affinity` option when constructing a new `BrowserWindow` has been removed as part of our plan to more closely align with Chromium's process model for security, performance and maintainability.

Weitere Informationen findest du unter [#18397](https://github.com/electron/electron/issues/18397).

### API geändert: `window.open()`

The optional parameter `frameName` no longer sets the title of the window. This behavior now follows the specification described by the [native documentation](https://developer.mozilla.org/en-US/docs/Web/API/Window/open#parameters) for the `windowName` parameter.

If you were using this parameter to set the title of a window, you can instead use the [`win.setTitle(title)`](https://www.electronjs.org/docs/api/browser-window#winsettitletitle) method.

### Entfernt: `worldSafeExecuteJavaScript`

`worldSafeExecuteJavaScript` has been removed with no alternative. Please ensure your code works with this property enabled. It has been enabled by default since Electron 12.

Sie werden von dieser Änderung betroffen sein, wenn Sie entweder `webFrame.executeJavaScript` oder `webFrame.executeJavaScriptInIsolatedWorld` verwenden. Sie müssen sicherstellen, dass die von einer dieser Methoden zurückgegebenen Werte von der [Context Bridge API](https://www.electronjs.org/docs/api/context-bridge.md#parameter--error--return-type-support) unterstützt werden, da diese Methoden denselben Wert verwenden, der die Semantik übergeht.

### Standardwert geändert: `nativeWindowOpen` ist standardmäßig auf `true` eingestellt

Prior to Electron 14, `window.open` was by default shimmed to use `BrowserWindowProxy`. This meant that `window.open('about:blank')` did not work to open synchronously scriptable child windows, among other incompatibilities. `nativeWindowOpen` is no longer experimental, and is now the default.

See the documentation for [window.open in Electron](https://www.electronjs.org/docs/api/window-open.md) for more details.

### Removed: BrowserWindowConstructorOptions inheriting from parent windows

Prior to Electron 14, windows opened with `window.open` would inherit BrowserWindow constructor options such as `transparent` and `resizable` from their parent window. Beginning with Electron 14, this behavior has been removed and windows will not inherit any BrowserWindow constructor options from their parents.

Instead, explicitly set options for the new window with `setWindowOpenHandler`:

```js
webContents.setWindowOpenHandler((details) => {
return {
action: 'allow',
overrideBrowserWindowOptions: {
// ...
}
}
})
```

### Entfernt: `additionalFeatures`

The deprecated `additionalFeatures` property in the `new-window` and `did-create-window` events of WebContents has been removed. Since `new-window` uses positional arguments, the argument is still present, but will always be the empty array `[]`. (Note: the `new-window` event itself is already deprecated and has been replaced by `setWindowOpenHandler`.) Bare keys in window features will now present as keys with the value `true` in the options object.

```js
// Removed in Electron 14
// Triggered by window.open('...', '', 'my-key')
webContents.on('did-create-window', (window, details) => {
if (details.additionalFeatures.includes('my-key')) {
// ...
}
})

// Replace with
webContents.on('did-create-window', (window, details) => {
if (details.options['my-key']) {
// ...
}
})
```

### Removed: `remote` module

Deprecated in Electron 12, the `remote` module has now been removed from Electron itself and extracted into a separate package, [`@electron/remote`](https://www.npmjs.com/package/@electron/remote). The `@electron/remote` module bridges JavaScript objects from the main process to the renderer process. This lets you access main-process-only objects as if they were available in the renderer process. This is a direct replacement for the `remote` module. See the [module's readme](https://github.com/electron/remote/blob/main/README.md) for migration instructions and reference.


## API Changes

* Added `BrowserWindow.isFocusable()` method to determine whether a window is focusable. [#28642](https://github.com/electron/electron/pull/28642)
* Added `WebFrameMain.visibilityState` instance property. [#28706](https://github.com/electron/electron/pull/28706)
* Added `disposition`, `referrer` and `postBody` to the details object passed to the window open handler registered with `setWindowOpenHandler`. [#28518](https://github.com/electron/electron/pull/28518)
* Added `process.contextId` used by `@electron/remote`. [#28007](https://github.com/electron/electron/pull/28007)
* Added experimental cookie encryption support behind an [Electron Fuse](https://www.electronjs.org/docs/tutorial/fuses). [#29492](https://github.com/electron/electron/pull/29492)
* Added missing `resourceType` conversions for `webRequest` listener details: `font`, `ping`, `cspReport`, `media`, `webSocket`. [#30050](https://github.com/electron/electron/pull/30050)
* Added new `session.storagePath` API to get the path on disk for session-specific data. [#28665](https://github.com/electron/electron/pull/28665)
* Added support for Windows Control Overlay on macOS. [#29986](https://github.com/electron/electron/pull/29986)
* Added support for directing Chromium logging to a file with `--log-file=.../path/to/file.log`. Also, it's now possible to enable logging from JavaScript by appending command-line switches during the first JS tick. [#29963](https://github.com/electron/electron/pull/29963)
* Added support for the des-ede3 cipher in node crypto. [#27897](https://github.com/electron/electron/pull/27897)
* Added a `ContextBridgeMutability` feature that allows context bridge objects to be mutated. [#27348](https://github.com/electron/electron/pull/27348)


### Removed/Deprecated Changes

The following APIs have been removed or are now deprecated:

* The `remote` module has been removed after being deprecated in Electron 12. [#25734](https://github.com/electron/electron/pull/25734)
* Child windows no longer inherit BrowserWindow construction options from their parents. [#28550](https://github.com/electron/electron/pull/28550)
* Removed deprecated `additionalFeatures` property from `new-window` and `did-create-window` WebContents events. [#28548](https://github.com/electron/electron/pull/28548)
* Removed the deprecated `app.allowRendererProcessReuse` and BrowserWindow `affinity` options. [#26874](https://github.com/electron/electron/pull/26874)
* The `submitURL` option for `crashReporter.start` is no longer a required argument when `uploadToServer` is false. [#28105](https://github.com/electron/electron/pull/28105)

## End of Support for 11.x.y

Electron 11.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.

For information on planned breaking changes in upcoming versions of Electron, see our [Planned Breaking Changes](https://github.com/electron/electron/blob/main/docs/breaking-changes.md).
19 changes: 18 additions & 1 deletion content/es-ES/docs/breaking-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,23 @@ See the documentation for [window.open in Electron](api/window-open.md) for more

## Cambios planeados en la API(14.0)

### Removed: `remote` module

The `remote` module was deprecated in Electron 12, and will be removed in Electron 14. Es reemplazado por el módulo [`@electron/remote`](https://github.com/electron/remote).

```js
// Obsoleto en Electron 12:
const { BrowserWindow } = require('electron').remote
```

```js
// Reemplazar con:
const { BrowserWindow } = require('@electron/remote')

// En el proceso principal:
require('@electron/remote/main').initialize()
```

### Eliminada: `app.allowRendererProcessReuse`

The `app.allowRendererProcessReuse` property will be removed as part of our plan to more closely align with Chromium's process model for security, performance and maintainability.
Expand All @@ -42,7 +59,7 @@ Si estaba usando este parámetro para establecer el título de una ventana, pued

### Eliminado: `worldSafeExecuteJavaScript`

En Electron 14 `worldSafeExecuteJavaScript` será eliminado. No hay alternativa, por favor asegúrese que su código trabaja con esta propiedad activada. Ha sido activada por defecto desde Electron
En Electron 14 `worldSafeExecuteJavaScript` será eliminado. No hay alternativa, por favor asegúrese que su código trabaja con esta propiedad activada. Ha sido activada por defecto desde Electron
12.

Será afectado por este cambio si usted utliza `webFrame.executeJavaScript` o `webFrame.executeJavaScriptInIsolatedWorld`. Necesitará asegurase que los valores devueltos por cualquiera de esos métodos son soportados por [Context Bridge API](api/context-bridge.md#parameter--error--return-type-support) ya que estos métodos utilizan la misma semántica de paso de valores.
Expand Down
Loading

0 comments on commit 35a1fb1

Please sign in to comment.