2 min read

Electron Framework Developers Release Version 27.0.0

Electron Framework Developers Release Version 27.0.0
Photo by Sigmund / Unsplash

Electron, the renowned open-source framework that powers many popular desktop applications, has officially released its version 27.0.0. The update is poised to enhance the framework’s performance and compatibility, reinforcing Electron’s dominance in cross-platform desktop application development.

The announcement was made public on the official Electron website (electronjs.org). This latest update will undeniably provide developers with a plethora of advanced tools and features to optimize their apps.

Key Takeaways From Electron 27.0.0:

  1. Updated Core Stack: Electron has taken a significant leap forward by updating its core stack. The 27.0.0 version includes support for Chromium 118, Chrome DevTools 118, Node 18.17.1, and V8 11.8. This ensures that Electron developers will be working with the latest web technologies, granting them a competitive advantage in producing responsive and powerful applications.
  2. macOS Compatibility: Electron has ceased its support for macOS 10.13 (High Sierra) and macOS 10.14 (Mojave). This means that while older versions of the Electron framework may run on these operating systems, starting from Electron 27.0.0, developers will require macOS 10.15 (Catalina) or later versions for their applications.
  3. API Enhancements: One of the significant introductions in this version is the support for the chrome.scripting API. It allows developers to inject their custom JavaScript and CSS into pages. This could open up new avenues for customization, giving apps a unique feel and functionality.
  4. Background Transparency Management: A novel API has been incorporated to handle system preferences regarding an application’s background transparency. This paves the way for apps to be more in tune with users’ aesthetic desires, creating a seamless user experience.
  5. A Shift to nativeTheme Module: Electron has deprecated the methods systemPreferences.{get,set}AppLevelAppearance and systemPreferences.appLevelAppearance. Developers are now advised to utilize the nativeTheme module, emphasizing Electron's constant drive for optimization and simplification.
  6. Changes in systemPreferences.getColor: The value alternate-selected-control-text is no longer supported in the systemPreferences.getColor method. Instead, selected-content-background has been introduced, reflecting Electron’s commitment to keep up with evolving design paradigms.
  7. WaylandWindowDecorations Mode: This feature has been activated by default. With its help, developers can accurately modify the size and position of windows in environments based on Wayland. This enhancement is pivotal for apps aiming for adaptability and flexibility in varying desktop environments.
  8. Deprecation of API ipcRenderer.sendTo(): Electron’s journey towards better communication capabilities between processes sees the ipcRenderer.sendTo() API marked as deprecated. Developers are now recommended to pivot towards the MessageChannel, offering a more streamlined communication protocol.

Implications for Developers and Users

With these updates, Electron demonstrates its unwavering commitment to fostering innovation. Developers now have a more formidable toolset at their disposal, equipping them to craft applications that are faster, more secure, and in line with the latest technology trends.

For users, this signifies a shift towards smoother, more responsive applications that harness the capabilities of Chromium 118, Node.js 18, and V8 11.8. The explicit focus on aesthetics, like the management of background transparency and the introduction of selected-content-background, emphasizes the user-centric approach of Electron.

Conclusion

The 27.0.0 release of Electron is a testament to the framework’s evolution, ever adapting to the dynamic world of technology. By discontinuing support for older macOS versions and bringing in newer features and enhancements, Electron is setting the stage for a future where desktop applications are not just functional but also aesthetically pleasing and technologically advanced.

Developers keen on delving into the specifics can visit the official announcement on Electron’s website for a comprehensive breakdown.