Cross-platform framework: Electron 15 accelerates the release cycle

0

In the future, a new major version of the framework will appear every eight weeks. The new release stabilizes the direct integration of child windows.

The Electron team has released version 15.0 of the cross-platform framework. The release dispenses with the wrapper when opening windows as child elements. It also has a new API for encoding strings and extends the events when creating a new frame and for resizing.

With the current version, Electron accelerates the release cycle. In the future, a new main version will appear every eight weeks. After the changeover to semantic versioning in May 2018, the team initially planned at the beginning of 2019 with an approximately three-month cycle. As part of the new switch, Electron will work with the four most recent versions instead of three until May 2022, which means that Electron 12 is still not considered obsolete. From version 19, support goes back to the three most recent versions.

The setting previously marked as experimental has recently been used when opening sub-windows nativeWindowOpen: true. With this, the framework natively creates the window in the same process as the parent element is in. The latter can use it to render the contents of the child element as well as in an integrated divarea.

A sub-window can be opened either by clicking on a link with the parameter target = _blankor using the JavaScript function window.open(). Up to now, Electron used the wrapper for the subwindows by default BrowserWindowProxy, which has limited functions.

Among the technical innovations, the String Encryption API is safeStorage noteworthy. In addition, WebContentsthe event gets 'frame-created'when a new frame has been created within the page.

The event 'will-resize', which indicates a pending size change, receives the additional string edgeto indicate from which edge or which corner the size change takes place. In this way, an application can react differently to upcoming vertical or horizontal changes. However, the event 'will-resize'is not yet available on Linux .

Electron is an open source framework for creating cross-platform desktop applications with JavaScript, HTML and CSS through the use of Chromium and Node.js. It forms the basis of well-known projects such as Visual Studio Code, WordPress Desktop and the Atom editor. The latter is in a way the obstetrician of Electron, as GitHub originally developed the framework under the name Atom Shell as the basis for the editor. Electron has been part of the Open JS Foundation since the end of 2019.

Further innovations in Electron 15.0 can be found in the blog post . The release updates the substructure to Chromium 94 and the associated JavaScript engine V8 9.4 and Node.js 16.5. Electron can be installed using the package manager npm npm install [email protected]. The source code can be found on GitHub.

Share This:

Comments are closed.

Powered by FrontNet