Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 938 Bytes

File metadata and controls

40 lines (28 loc) · 938 Bytes

Breaking changes

List of breaking changes between major versions.

Planned Breaking API Changes (2.0)

windowManager.getScaleFactor(monitor: number)

// Deprecated
windowManager.getScaleFactor(windowManager.getActiveWindow().getMonitor());
// Replace with
windowManager.getActiveWindow().getMonitor().getScaleFactor();

windowManager.requestAccessibility() macOS

The windowManager.requestAccessibility method won't be required before each operation on windows anymore. Only on:

  • window.setBounds
  • window.maximize
  • window.minimize
  • window.restore
  • window.bringToTop
  • window.getTitle

window.getMonitor(): number

Now the window.getMonitor method returns Monitor object.

window.getInfo()

window.getInfo method has been removed.

// Deprecated
const { title } = window.getInfo();
// Replace with
const title = window.getTitle();