Skip to content
Latchkey

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

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →