Version Constraints
Version constraints in Kubri use Semantic Versioning with an optional prefix
of v.
You can use constraints to specify what versions are matched. Separate multiple constraints with a
comma to match only versions that satisfy all of them, e.g. >=1.2, <1.5.
| Constraint | Description |
|---|---|
1 | Any version that matches major version e.g. >=1.0.0, <2.0.0. |
1.2 | Any version that matches minor version e.g. >=1.2.0, <1.3.0. |
1.2.3 | Exactly specified version. |
1.* | Any version that starts with 1.. |
1.2.* | Any version that starts with 1.2.. |
!=1.2.3 | Any version except specified version. |
>1.2 | Any version that is above specified version. |
>=1.2 | Any version that is above or equal to specified version. |
<1.2 | Any version that is below specified version. |
<=1.2 | Any version that is below or equal to specified version. |
~1.2 | Any version that matches major and minor version e.g. >=1.2.0, <1.3.0. |
~1.2.3 | Any version that matches major and minor version and is above or equal to patch version e.g. >=1.2.3, <1.3.0. |
^1.2 | Any version that matches major version and is above or equal to minor version e.g. >=1.2.0, <2.0.0. |
^1.2.3 | Any version that is above or equal to specified version and lower than next major version e.g. >=1.2.3, <2.0.0. |