Skip to content

Commit

Permalink
chore: formally deprecate crashed and render-process-gone events
Browse files Browse the repository at this point in the history
  • Loading branch information
miniak committed Oct 4, 2023
1 parent b0590b6 commit c5ee6c7
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/breaking-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,34 @@ console.log(app.runningUnderRosettaTranslation)
console.log(app.runningUnderARM64Translation)
```

### Deprecated: `renderer-process-crashed` event on `app`

The `renderer-process-crashed` event on `app` has been deprecated.
Use the new `render-process-gone` event instead.

```js
// Deprecated
app.on('renderer-process-crashed', (event, webContents, killed) => { /* ... */ })

// Replace with
app.on('render-process-gone', (event, webContents, details) => { /* ... */ })
```

### Deprecated: `crashed` event on `BrowserWindow` and `<webview>`

The `crashed` events on `BrowserWindow` and `<webview>` have been deprecated.
Use the new `render-process-gone` event instead.

```js
// Deprecated
win.on('crashed', (event, killed) => { /* ... */ })
webview.addEventListener('crashed', (event) => { /* ... */ })

// Replace with
win.on('render-process-gone', (event, details) => { /* ... */ })
webview.addEventListener('render-process-gone', (event) => { /* ... */ })
```

## Planned Breaking API Changes (27.0)

### Removed: macOS 10.13 / 10.14 support
Expand Down

0 comments on commit c5ee6c7

Please sign in to comment.