The version to increment
The release type to use, could be "major", "premajor", "minor", "preminor", "patch", "prepatch", "prerelease", 'release'
Optional
optionsOrLoose: boolean | OptionsAn options object { loose }
(where loose is the only available option) or a boolean indicating whether to enable loose mode. In loose mode, the parser is more forgiving with imperfectly formatted semver strings this param can be omitted, making identifier
and identifierBase
the third and the fourth params respectively
Optional
identifier: stringThe identifier to use for prerelease versions
Optional
identifierBase: false | IdentifierBaseThe base to use for the identifier, could be '0' or '1'
The incremented version, or null if it's not valid
Return the version incremented by the release type (major, premajor, minor, preminor, patch, prepatch, or prerelease), or null if it's not valid.
The version to increment
The release type to use, could be "major", "premajor", "minor", "preminor", "patch", "prepatch", "prerelease", 'release'
Optional
identifier: stringThe identifier to use for prerelease versions
Optional
identifierBase: false | IdentifierBaseThe base to use for the identifier, could be '0' or '1'
The incremented version, or null if it's not valid
Return the version incremented by the release type (major, premajor, minor, preminor, patch, prepatch, or prerelease), or null if it's not valid.