Creates a new version.
Optional
major: numbermajor version part (1 in 1.2.3)
Optional
minor: numberminor version part (2 in 1.2.3)
Optional
patch: numberpatch version part (3 in 1.2.3)
Optional
hotfix: numberhotfix version part (4 in 1.2.3.4)
Optional
prerelease: readonly string[]pre-release part (SNAPSHOT in 1.2.3-SNAPSHOT)
Optional
build: stringbuild part (20240123 in 1.2.3+20240123)
Parses a version string to a version.
Optional
versionString: stringversion string, e.g. 1.2.3
Optional
ignoreBuild: booleanignore build part in version,
for example would create a version without 20240123
from string 1.2.3+20240123
Creates a new Version 0.0.0.