Useful utilities for Electron apps and modules
MIT License
Bot releases are hidden (Show)
https://github.com/sindresorhus/electron-util/compare/v0.18.0...v0.18.1
remote
module (#58) df228ac
remote
, this package no longer proxies call between processes for you. So APIs that require to be run in the main process must be called from the main process or you will need to set up IPC channels. APIs that can be called in any process have not moved. To call a main process API, you must use the sub-export /main
: import ... from 'electron-util/main'
https://github.com/sindresorhus/electron-util/compare/v0.17.2...v0.18.0
https://github.com/sindresorhus/electron-util/compare/v0.17.1...v0.17.2
https://github.com/sindresorhus/electron-util/compare/v0.17.0...v0.17.1
showAboutWindow()
on Linux and Windows (#50) d8d21a1https://github.com/sindresorhus/electron-util/compare/v0.16.0...v0.17.0
.openSystemPreferences()
API (#48) 4557c29https://github.com/sindresorhus/electron-util/compare/v0.15.1...v0.16.0
https://github.com/sindresorhus/electron-util/compare/v0.15.0...v0.15.1
useFullBounds
option for getWindowBoundsCentered()
and centerWindow()
(#44) 7edb57dhttps://github.com/sindresorhus/electron-util/compare/v0.14.2...v0.15.0
SystemPreferencesPanes
4a8c15ahttps://github.com/sindresorhus/electron-util/compare/v0.14.1...v0.14.2
enforceMacOSAppLocation
crash (#29) fcdd328https://github.com/sindresorhus/electron-util/compare/v0.14.0...v0.14.1
enforceMacOSAppLocation
: show an error when another version of the app is already running (#26) 6eb9aabhttps://github.com/sindresorhus/electron-util/compare/v0.13.1...v0.14.0
openSystemPreferences()
(#24) 1508c12https://github.com/sindresorhus/electron-util/compare/v0.13.0...v0.13.1
openSystemPreferences()
method (#23) 121f7a9https://github.com/sindresorhus/electron-util/compare/v0.12.3...v0.13.0
https://github.com/sindresorhus/electron-util/compare/v0.12.2...v0.12.3
esm
package (#21) 90eddedhttps://github.com/sindresorhus/electron-util/compare/v0.12.1...v0.12.2
website
option for .showAboutWindow()
on Linux 60974dbhttps://github.com/sindresorhus/electron-util/compare/v0.12.0...v0.12.1
Breaking:
.setWindowBounds()
as it's was made moot by Electron 4 (#15) 88ac9febrowserWindow.setBounds()
instead.Enhancements:
.showAboutWindow()
(#16) 9b5158chttps://github.com/sindresorhus/electron-util/compare/v0.11.0...v0.12.0
Breaking:
openUrlMenuItem(options)
and aboutMenuItem
now return MenuItem
options instead of actual MenuItem
's. The previous usage examples only worked because Electron doesn't validate and just blindly copies properties over. Now it returns the correct type to be used in a menu template.Other;
https://github.com/sindresorhus/electron-util/compare/v0.10.2...v0.11.0