Skip to content

Tags: carvel-dev/semver

Tags

v4.0.0

introduce version 4 as separate go module

v3.8.0

gosimple use String() instead of fmt.Sprintf

v3.7.0

remove pre-release increment constraint

v3.6.1

Simplify string.Index in range

v3.6.0

Increment methods for major, minor and patch version according to the…

… specs.

Signed-off-by: Eduardo Lezcano <eduardo.lezcano@be.atlascopco.com>

v3.5.1

gx publish 3.5.1

v3.5.0

Support wildcards in version range

The code will expand wildcards inside versions following these rules:

    * when dealing with patch wildcards:
    >= 1.2.x    will become    >= 1.2.0
    <= 1.2.x    will become    <  1.3.0
    >  1.2.x    will become    >= 1.3.0
    <  1.2.x    will become    <  1.2.0
    != 1.2.x    will become    <  1.2.0 >= 1.3.0
    * when dealing with minor wildcards:
    >= 1.x      will become    >= 1.0.0
    <= 1.x      will become    <  2.0.0
    >  1.x      will become    >= 2.0.0
    <  1.0      will become    <  1.0.0
    != 1.x      will become    <  1.0.0 >= 2.0.0
    * when dealing with wildcards without version operator:
    1.2.x       will become    >= 1.2.0 < 1.3.0
    1.x         will become    >= 1.0.0 < 2.0.0

Resolves blang#24

v3.4.0

Make splitAndTrim parse more inteligently... (blang#26)

... by making it understand that a space after a range token ('>', '<', '=') can be threated like a typo instead of like an error. Example '<= '.

Also, remove all whitespaces instead of just leading/ending spaces, as there might be spaces between a range token and a version number. Example: '>= 2.5.2'

Fixes blang#25

v3.3.0

Adds MustParseRange

v3.2.0

Verified

This commit was signed with the committer’s verified signature.
kujenga Aaron Taylor
add tolerant parsing functionality for non-standard versions