Electron 7.0.0 release, cross-platform desktop application development tools

310726a6663f4df79a5194e36b2523f772f.jpg

Electron 7.0.0 stable version officially released , Electron GitHub development is cross-platform desktop application development tools to support the development of desktop applications using Web technology, which is based on C ++ development, GUI core from Chromium, and use the JavaScript engine V8. Updates are as follows:

Notable Changes

Electron's core component is Chromium, Node.js and V8, updated to keep pace with international practice it is usually with these projects in order to provide the latest JavaScript features, performance improvements and security fixes. In this release, these three are upgraded as follows:

  • Adds Windows on ARM (64-bit) version 
  • Added ipcRenderer.Invoke () and ipcMain.Handle () the IPC asynchronous request / response
  • Added nativeTheme API to read and respond to changes in the operating system theme and color scheme
  • Switch to the new TypeScript Definitions generator which generates a more precise definition

 Breaking Changes

  • Delete some API:
    • Tray.setHighlightMode() (macOS)
    • app.enableMixedSandbox() #17894
    • app.getApplicationMenu()
    • app.setApplicationMenu()
    • powerMonitor.querySystemIdleState()
    • powerMonitor.querySystemIdleTime()
    • webFrame.setIsolatedWorldContentSecurityPolicy()
    • webFrame.setIsolatedWorldHumanReadableName()
    • webFrame.setIsolatedWorldSecurityOrigin() 
  • Session.clearAuthCache () is no longer filtered cleared cache entry 
  • Native interface (menus, dialog boxes, etc.) MacOS, now dark mode automatically match the user machine disposed
  • Update electron module to use the @ Electronics / get, Support Node 8
  • Electron.asar file no longer exists

New Features 

  • All asynchronous webContent / <webview> The method now returns a Promise
  • MacOS added to the always-on-top-changed
  • Add captureMode and maxFileSize options in Netlog API
  • Added creationTime / sandbox / IntegrityLevel in app.getAppMetrics () output
  • To webContents.print () callback added failureReason parameters to distinguish between success, failure and canceled
  • Added to BrowserView getBalls () method
  • Add the gpu-info-update events to the app, as long as there is updated information gpu, gpu-info will issue an update event
  • In app.getAppMetrics () to add memory
  • Add process.getBlinkMemoryInfo ()
  • Added emoveInsertedCSS in webFrame / webContent / <webview> in ()
  • Add the zoom-changed in the event to webContent
  • Increase print custom options
  • app.moveToApplicationsFold add an optional callback conflict management
  • Support webFrame.sertCSS () in the CSS origin
  • On Windows Tray API support of mouse-move event
  • Windows 上 支持 systemPreferences.isDarkMode () API
  • Support systemPreferences.isHighContrastColorScheme on macOS () API
  • Enable the W3C Reporting API
  • Realized BrowserWindow.setFocable on macOS
  • Add Windows on ARM node header in the checksum file

In addition there are many versions of this fix, and change properties, more details, see the release notes

Guess you like

Origin www.oschina.net/news/110795/electron-7-0-0-released