Skip to content

Tags: blang/semver

Tags

v4.0.0

Toggle v4.0.0's commit message
introduce version 4 as separate go module

v3.8.0

Toggle v3.8.0's commit message
gosimple use String() instead of fmt.Sprintf

v3.7.0

Toggle v3.7.0's commit message
remove pre-release increment constraint

v3.6.1

Toggle v3.6.1's commit message
Simplify string.Index in range

v3.6.0

Toggle v3.6.0's commit message
Increment methods for major, minor and patch version according to the…

… specs.

Signed-off-by: Eduardo Lezcano <[email protected]>

v3.5.1

Toggle v3.5.1's commit message
gx publish 3.5.1

v3.5.0

Toggle v3.5.0's commit message
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 #24

v3.4.0

Toggle v3.4.0's commit message
Make splitAndTrim parse more inteligently... (#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 #25

v3.3.0

Toggle v3.3.0's commit message
Adds MustParseRange

v3.2.0

Toggle v3.2.0's commit message

Verified

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