Saltar al contenido principal

Electron 21.0.0

· 3 lectura mínima

¡Electron 21.0.0 ha sido liberado! Incluye actualizaciones a Chromium 106, V8 10.6, y Node.js 16.16.0. ¡Lea a continuación para más detalles!

El equipo de Electron esta emocionado de anunciar el lanzamiento de Electron 21.0.0! You can install it with npm via npm install electron@latest or download it from our releases website. Continue reading for details about this release.

If you have any feedback, please share it with us on Twitter, or join our community Discord! Bugs and feature requests can be reported in Electron's issue tracker.

Notable Changes

Stack Changes

Nuevas características

  • Se añadió webFrameMain.origin. #35534
  • Added new WebContents.ipc and WebFrameMain.ipc APIs. #35231
  • Added support for panel-like behavior. Window can float over full-screened apps. #34388
  • Added support for push notifications from APNs for macOS apps. #33574

Breaking & API Changes

Below are breaking changes introduced in Electron 21.

V8 Memory Cage Enabled

Electron 21 enables V8 sandboxed pointers, following Chrome's decision to do the same in Chrome 103. This has some implications for native modules. This feature has performance and security benefits, but also places some new restrictions on native modules, e.g. use of ArrayBuffers that point to external ("off-heap") memory. Please see this blog post for more information. #34724

Refactored webContents.printToPDF

Refactored webContents.printToPDF to align with Chromium's headless implementation. See #33654 for more information.

More information about these and future changes can be found on the Planned Breaking Changes page.

Fin de soporte para 18.x.y

Electron 18.x.y ha alcanzado el fin de soporte según la política de soporte del proyecto. Developers and applications are encouraged to upgrade to a newer version of Electron.

E18 (Mar'22)E19 (May'22)E20 (Ago'22)E21 (Sep'22)E22 (Dic'22)

What's Next

In the short term, you can expect the team to continue to focus on keeping up with the development of the major components that make up Electron, including Chromium, Node, and V8.

You can find Electron's public timeline here.

More information about future changes can be found on the Planned Breaking Changes page.