Experimental
Internal
Experimental
Version string to parse.
Instance used to log messages and debugging info.
SemVer.Error — If input string is not valid and cannot be corrected.
Readonly
Experimental
majorVersion number representing the current major release.
Incremented “when you make incompatible API changes”.
Readonly
Experimental
minorVersion number representing the current minor release.
Incremented “when you add functionality in a backward compatible manner”.
Readonly
Experimental
patchVersion number representing the current patch release.
Incremented “when you make backward compatible bug fixes”.
Protected
Readonly
Experimental
consoleInstance used to log messages and debugging info.
Protected
Readonly
Experimental
inputVersion string to parse.
Optional
Readonly
Experimental
metaBuild metadata, if any.
Identifiers MUST comprise only ASCII alphanumerics and hyphens [0-9A-Za-z-]. Identifiers MUST NOT be empty. Build metadata MUST be ignored when determining version precedence. Thus two versions that differ only in the build metadata, have the same precedence.
Optional
Readonly
Experimental
prereleaseThe pre-release version string(s), if any. If an array, the strings are
joined with '.'
.
Identifiers MUST comprise only ASCII alphanumerics and hyphens [0-9A-Za-z-]. Identifiers MUST NOT be empty.
A pre-release version indicates that the version is unstable and might not satisfy the intended compatibility requirements as denoted by its associated normal version.
For parsing and validating semantic version strings.
Here temporarily; this will likely move to utility-typescript eventually.
See
Since
0.1.0-alpha