Tags: carvel-dev/semver
Tags
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
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
PreviousNext