Last active
April 8, 2020 20:32
-
-
Save olivertappin/86a326a2aecc2e963232579727a2b420 to your computer and use it in GitHub Desktop.
Semantic Versioning Ranges
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For a simplistic view on what versioning ranges look like, see below: | |
Version Range | |
>=1.0 1.0.0 - *.*.* | |
>=1.0 <2.0 1.0.0 - 1.*.* | |
>=1.0 <1.1 || >=1.2 1.0.0 - 1.*.* || 1.2.0 - *.*.* | |
>=1.0 <1.1 1.0.0 - 1.*.* | |
>=1.0.0 <2.1 1.0.* - 2.0.* | |
>=1.0.0 <=2.1.0 1.0.0 - 2.1.0 | |
~1.2 1.2.0 - 1.*.* | |
~1.2.3 1.2.3 - 1.2.* | |
^1.2.3 1.2.3 - 1.*.* | |
^0.3 0.3.0 - 0.3.* | |
^1.2 1.2.0 - 1.*.* | |
Notes: | |
- Using ~ specifies a minimum version, but allows the last digit specified to go up. | |
- The ^ operator behaves very similarly but it sticks closer to semantic versioning, | |
and will always allow non-breaking updates. | |
- Major version zero (0.y.z) is for initial development. Anything MAY change at any | |
time. The public API SHOULD NOT be considered stable. | |
More information can be found here: https://getcomposer.org/doc/articles/versions.md | |
And here: https://semver.org/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment