Bower dependency tilde in Node

JavascriptBower

Javascript Problem Overview


In bower (a node dependency package manager), on some dependencies the version is preceded by a tilde. What does this mean?

{
    "name": "mean",
    "version": "1.0.0",
    "dependencies": {
        "bootstrap": "3.0.0",
        "angular": "~1.0.6"
    }
{

Javascript Solutions


Solution 1 - Javascript

> ~1.2.3 := >=1.2.3-0 <1.3.0-0 "Reasonably close to 1.2.3". When using > tilde operators, prerelease versions are supported as well, but a > prerelease of the next significant digit will NOT be satisfactory, so > 1.3.0-beta will not satisfy ~1.2.3.

From the documentation of the underlying semver

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionandygoestohollywoodView Question on Stackoverflow
Solution 1 - JavascriptMaxim KrizhanovskyView Answer on Stackoverflow