Tilde Range - CI/CD Glossary Definition
A tilde range (~) in npm allows patch-level updates when a minor version is specified, so ~1.2.3 permits >=1.2.3 <1.3.0.
Caret vs tilde
Tilde is more conservative than caret: ~1.2.3 accepts only patches within 1.2.x, while ^1.2.3 also accepts new minors up to <2.0.0. Choose tilde when you distrust an authors minor releases.
When minor is omitted
Without a minor, ~1 means >=1.0.0 <2.0.0, behaving like a caret because there is no minor to lock.
Related guides
Caret Range - CI/CD Glossary DefinitionCaret Range: A caret range (`^`) in npm allows updates that do not change the leftmost non-zero version compo…
Version Range - CI/CD Glossary DefinitionVersion Range: A version range is a constraint that allows a span of versions rather than one exact value, su…
Dependency Pinning - CI/CD Glossary DefinitionDependency Pinning: Dependency pinning is locking a dependency to one exact version (for example `lodash@4.17…