kaven-basic - v6.0.0
    Preparing search index...

    Function IncreaseVersion

    • Increments the given semantic version string by increasing the patch version.

      Parameters

      • version: string

        The semantic version string (e.g., "1.2.3") to increment.

      Returns string

      The incremented semantic version string.

      This function assumes the input is a valid semantic version in the format "major.minor.patch".

      3.0.3

      2021-12-06

    • Increases a specific segment of a semantic version string by a given increment.

      Parameters

      • version: string

        The version string in semantic versioning format (e.g., "1.2.3").

      • index: number

        The zero-based index of the version segment to increment (0 for major, 1 for minor, 2 for patch).

      • increment: number

        The amount to increase the specified segment by.

      Returns string

      The updated version string with the specified segment incremented.

      3.0.3

      2021-12-06