|
@@ -140,7 +140,7 @@ Example: `1.0.*`
|
|
The `~` operator is best explained by example: `~1.2` is equivalent to
|
|
The `~` operator is best explained by example: `~1.2` is equivalent to
|
|
`>=1.2 <2.0.0`, while `~1.2.3` is equivalent to `>=1.2.3 <1.3.0`. As you can see
|
|
`>=1.2 <2.0.0`, while `~1.2.3` is equivalent to `>=1.2.3 <1.3.0`. As you can see
|
|
it is mostly useful for projects respecting [semantic
|
|
it is mostly useful for projects respecting [semantic
|
|
-versioning](http://semver.org/). A common usage would be to mark the minimum
|
|
|
|
|
|
+versioning](https://semver.org/). A common usage would be to mark the minimum
|
|
minor version you depend on, like `~1.2` (which allows anything up to, but not
|
|
minor version you depend on, like `~1.2` (which allows anything up to, but not
|
|
including, 2.0). Since in theory there should be no backwards compatibility
|
|
including, 2.0). Since in theory there should be no backwards compatibility
|
|
breaks until 2.0, that works well. Another way of looking at it is that using
|
|
breaks until 2.0, that works well. Another way of looking at it is that using
|