Note: This is a beta release. Please file new issues for any bugs you find in it.
This release is published to npm under the beta tag and can be installed via npm install electron@beta
, or npm install electron@35.0.0-beta.1
.
Release Notes for v35.0.0-beta.1
Features
- Added
ServiceWorkerMain
class to interact with service workers in the main process.- Added
fromVersionID
onServiceWorkers
to get an instance ofServiceWorkerMain
. - Added
running-status-changed
event onServiceWorkers
to indicate when a service worker's running status has changed. - Added
startWorkerForScope
onServiceWorkers
to start a worker that may have been previously stopped. #45341
- Added
- Added
contextBridge.executeInMainWorld
to safely execute code across world boundaries. #45330 - Redesigned preload script APIs by introducing
registerPreloadScript
,unregisterPreloadScript
,getPreloadScripts
onSession
.- Deprecated
getPreloads
andsetPreloads
onSession
. #45329
- Deprecated