Using semantic versioning to specify update types your package can accept
Patch releases:
1.0or1.0.xor~1.0.4Minor releases:
1or1.xor^1.0.4Major releases:
*orx
Value | Description |
|---|---|
~3.9.2 | 3.9.* |
^3.9.2 | 3.*.* |
>3.9.2 | greater than 3.9.2 |
>=3.9.2 | greater than or equal to 3.9.2 |
<3.9.2 | less than 3.9.2 |
<=3.9.2 | less than or equal to 3.9.2 |
=3.9.2 | exactly 3.9.2 |
3.9.2 - 3.10.1 | range between 3.9.2 and 3.10.1 |
Example
"dependencies": {
"my_dep": "^1.0.0",
"another_dep": "~2.2.0"
},For more information on semantic versioning syntax, see the npm semver calculator.
