github.com/kubri/kubri@v0.5.1-0.20240317001612-bda2aaef967e/website/docs/guides/version-constrains.md (about)

     1  # Version Constraints
     2  
     3  Version constraints in Kubri use [Semantic Versioning](https://semver.org/) with an optional prefix
     4  of `v`.
     5  
     6  You can use constraints to specify what versions are matched.
     7  
     8  | Constraint | Description                                                                                                       |
     9  | ---------- | ----------------------------------------------------------------------------------------------------------------- |
    10  | `1`        | Any version that matches major version e.g. `>=1.0.0, <2.0.0`.                                                    |
    11  | `1.2`      | Any version that matches minor version e.g. `>=1.2.0, <1.3.0`.                                                    |
    12  | `1.2.3`    | Exactly specified version.                                                                                        |
    13  | `>1.2`     | Any version that is above specified version.                                                                      |
    14  | `>=1.2`    | Any version that is above or equal to specified version.                                                          |
    15  | `<1.2`     | Any version that is below specified version.                                                                      |
    16  | `<=1.2`    | Any version that is below or equal to specified version.                                                          |
    17  | `~1.2`     | Any version that matches major version and is above or equal to minor version e.g. `>=1.2.0, <2.0.0`.             |
    18  | `~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`.   |
    19  | `^1.2`     | Any version that matches major version and is above or equal to minor version e.g. `>=1.2.0, <2.0.0`.             |
    20  | `^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`. |