Electron 6.0.0 released

Electron 6.0.0 stable version was officially released yesterday, this version of the update include upgrade components, the introduction of new features and bug fixes and so on. Interestingly, the team said this is the first release on the same day at the same time corresponding to the Electron stable version of Chrome stable version ( Chrome 76 ).

You can  npm install electron@latest be upgraded command, or from the download page to download the new version.

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.

310726a6663f4df79a5194e36b2523f772f.jpg

update content

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, the three were upgraded to: the Chromium  76.0.3809.88, Node.js  12.4.0, V8  7.6.303.22.

In addition to updates for components, this version also includes improvements to the Electron API's. For a complete list please see the release notes , the concern is as follows:

Promisification

Electron 6.0 continue to practice from Version 5.0 of the modernization program to improve on the  Promise  support.

The following functions now return Promises and supports callback call older versions of:

  • contentTracing.getCategories() #16583
  • contentTracing.getCategories() #16583
  • contentTracing.getTraceBufferUsage() #16600
  • contents.executeJavaScript() #17312
  • cookies.flushStore() #16464
  • cookies.get() #16464
  • cookies.remove() #16464
  • cookies.set() #16464
  • dialog.showCertificateTrustDialog() #17181
  • inAppPurchase.getProducts() #17355
  • inAppPurchase.purchaseProduct()#17355
  • netLog.stopLogging() #16862
  • session.clearAuthCache() #17259
  • session.clearCache() #17185
  • session.clearHostResolverCache() #17229
  • session.clearStorageData() #17249
  • session.getBlobData() #17303
  • session.getCacheSize() #17185
  • session.resolveProxy() #17222
  • session.setProxy() #17222
  • webContents.hasServiceWorker() #16535
  • webContents.printToPDF() #16795
  • webContents.savePage() #16742
  • webFrame.executeJavaScript() #17312
  • webFrame.executeJavaScriptInIsolatedWorld() #17312
  • webviewTag.executeJavaScript() #17312

The following functions are now two forms, namely synchronous and asynchronous based Promise of:

  • dialog.showMessageBox()/dialog.showMessageBoxSync() #17298
  • dialog.showOpenDialog()/dialog.showOpenDialogSync() #16973
  • dialog.showSaveDialog()/dialog.showSaveDialogSync() #17054

The following function returns Promises:

Electron Helper (Renderer).app, Electron Helper (GPU).app 和 Electron Helper (Plugin).app

Due To enable  hardened runtime (when hardened operational)  function, which limits the executable writable memory (writable-executable memory) and loaded by a different team signature ID code, also you need to grant special privileges to the code signing Helper.

Therefore, in order to define the rights they are needed type of process (process types), Chromium add three new variants Helper.app: a renderer for ( Electron Helper (Renderer).app), a process for the GPU ( Electron Helper (GPU).app), and one for the plug-in ( Electron Helper (Plugin).app).

Use  electron-osx-sign code signing its Electron App developers will not build their logic to make any changes, if you use custom scripts to App sign, three new Help make sure the application is properly signed.

In order to use these new helper correctly packaged applications, we need to use  [email protected] or later. If you are using  electron-builder, it is recommended to follow this issue to track support for a new helper.

End of support for 3.xy

Depending on the version support programs , Electron 3.xy EOF has reached the stage , it no longer provides official support.

Future plan

In the short term, the team will continue to escalate Electron's core components, including Chromium, Node and V8. As for the frequency of updates, the plan is published once every quarter new major version, while the core component upgrade. 7.0.0 The tentative release schedule lists the key time nodes Electron 7 development cycle. For more information about Electron version, see the version control documents .

Guess you like

Origin www.oschina.net/news/108708/electron-6-0-released