@alextheman/utility - v4.3.5
    Preparing search index...

    Function incrementVersion

    • Increments the given input version depending on the given increment type.

      Parameters

      • version: string

        The version to increment

      • incrementType: VersionType

        The type of increment. Can be one of the following:

        • "major": Change the major version v1.2.3v2.0.0
        • "minor": Change the minor version v1.2.3v1.3.0
        • "patch": Change the patch version v1.2.3v1.2.4
      • Optionaloptions: IncrementVersionOptions

        Extra options to apply.

      Returns string

      A new string representing the version with the increment applied.

      This function does not support the new class-based handling of VersionNumber. Please use new VersionNumber(version).increment(incrementType) instead.