Increments the major number by one, and sets the minor and patch numbers to 0.
Increments the minor number by one, sets the patch number to 0 and does not update the major number.
Increments the patch number by one, and does not update the major and minor numbers.
Removes the build suffix from the end of the version.
Removes the pre-release suffix from the end of the version.
Sets the build suffix at the end of the version.
the build suffix to add
Sets the pre-release suffix at the end of the version.
the pre-release suffix to add
Stringifies the version when JSON.parse
is called.
Outputs the version in the SemVer format: <major>.<minor>.<patch>
with optional pre-release (-<pre-release>
) and build (+<build>
) suffixes.
Updates the version properly.
the type of the update
the value of the pre-release (optional)
the value of the build (optional)
A contract class that follows Semantic Versioning standards to manage your project's version.