Aller au contenu principal

Electron 2.0 et au-delà - Gestion des versions sémantiques

· 2 mins de lecture

A new major version of Electron is in the works, and with it some changes to our versioning strategy. As of version 2.0.0, Electron will strictly adhere to Semantic Versioning.

This change means you'll see the major version bump more often, and it will usually be a major update to Chromium. Patch releases will also be more stable, as they will now only contain bug fixes with no new features.

Incréments de version Majeure

  • mises à jour de version Chromium
  • Mises à jour de la version majeure de Node.js
  • changement Electron qui altère l'API

Incréments de version mineure

  • Mises à jour mineure de la version de Node.js
  • changement Electron n'altérant pas l'API

Incréments de version de Correctifs

  • Mises à jour des correctifs de Node.js
  • mises à jour de correctifs Chromium
  • Corrections de bugs d'Electron

Because Electron's semver ranges will now be more meaningful, we recommend installing Electron using npm's default --save-dev flag, which will prefix your version with ^, keeping you safely up to date with minor and patch updates:

npm install --save-dev electron

For developers interested only in bug fixes, you should use the tilde semver prefix e.g. ~2.0.0, which which will never introduce new features, only fixes to improve stability.

For more details, see