docs: document the openItem -> openPath breaking change (#22507)

* docs: document the openItem -> openPath breaking change

* Apply suggestions from code review

Co-Authored-By: Erick Zhao <erick@hotmail.ca>

Co-authored-by: Erick Zhao <erick@hotmail.ca>
This commit is contained in:
Samuel Attard 2020-03-03 23:17:27 -08:00 committed by GitHub
parent 479354e721
commit 986ccfa816
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -84,6 +84,11 @@ In Electron 9.0, the old serialization algorithm has been removed, and sending
such non-serializable objects will now throw an "object could not be cloned" such non-serializable objects will now throw an "object could not be cloned"
error. error.
### `shell.openItem` --> `shell.openPath`
The `shell.openItem` API has been replaced with an asynchronous `shell.openPath` API.
You can see the original API proposal and reasoning [here](https://github.com/electron/governance/blob/master/wg-api/spec-documents/shell-openitem.md).
## Planned Breaking API Changes (8.0) ## Planned Breaking API Changes (8.0)
### Values sent over IPC are now serialized with Structured Clone Algorithm ### Values sent over IPC are now serialized with Structured Clone Algorithm