Tags: blang/semver
Tags
Increment methods for major, minor and patch version according to the… … specs. Signed-off-by: Eduardo Lezcano <[email protected]>
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
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
PreviousNext