Interval notation for version ranges
The interval notation for specifying a version range is as follows:
| Notation | Applicable rules | Description |
|---|---|---|
| 1.0 | x ≥ 1.0 | Minimum version (inclusive) |
| [1.0,) | x ≥ 1.0 | Minimum version (inclusive) |
| (1.0,) | x > 1.0 | Minimum version (exclusive) |
| [1.0] | x == 1.0 | Exact version match |
| (,1.0] | x ≤ 1.0 | Maximum version (inclusive) |
| (,1.0) | x < 1.0 | Maximum version (exclusive) |
| [1.0,2.0] | 1.0 ≤ x ≤ 2.0 | Exact range (inclusive) |
| (1.0,2.0) | 1.0 < x < 2.0 | Exact range (exclusive) |
| [1.0,2.0) | 1.0 ≤ x < 2.0 | A combination of the smallest version that contains the indicated value and the largest version that does not contain the indicated value |