The version of one package -- the project, or a library it packages -- in the git repository its mmo.json is committed in: what it is, whether anything was committed since it was last increased, and the commit increasing it.
class MMO\admin\helpers\Version
Namespace
MMO\admin\helpers
A release is named after the project's version and packages each library under its own, so a version that was not
increased names two different codes: `release` increases, before building, the version of every package with
commits since its version last changed ([`ProductionController::prepareVersions`](https://mmoframework.fr/en/documentation/mmo.admin/php/controllers/ProductionController.md#productioncontroller-prepareversions)), and
`version` increases one by hand.
The commit holds the new version alone: mmo.json, and nothing else -- whatever else is staged stays staged. Only the
value changes in the file ([`JsonEditor`](https://mmoframework.fr/en/documentation/mmo.admin/php/helpers/JsonEditor.md#jsoneditor)): its comments and its layout stay, and the diff is one line.
$version = new Version($manifest, new GitRepository(dirname($manifest->filename)));
$version->getChanges(); // 4: commits since the version last changed
$version->getNext('minor'); // '1.5.0'
$version->increase('patch'); // '1.4.3', committed as "version 1.4.3"
how many commits were made since the version last changed: since the last commit changing the "version" line of mmo.json. 0: the code is the one this version names.