Unverified70% confidenceFactExact time
In npm's package.json, the tilde (~) automatically accepts patch updates, while the caret (^) accepts minor and patch updates.
2
Sources
70%
Confidence
Long-term
Relevance
9/27/2026
First Seen
Sources
Related Entities
Related Claims
VerifiedIn npm/pnpm, the ^ symbol allows automatic upgrades of minor and patch versions, while the ~ symbol only allows automatic upgrades of patch versions.79% similarUnverifiedPatch updates do not change the public API, so existing code can be upgraded without modification; however, if exact versions are pinned in package.json, the version numbers must be adjusted manually, whereas using ^ or ~ ranges will fetch them automatically on the next install.70% similarUnverifiedFor @cline/shared in the 0.0.x stage, it is recommended to use exact version numbers in package.json rather than ^ or ~ range specifiers to prevent automatic upgrades from triggering compatibility issues70% similarVerifiednpm's ^ prefix rule automatically includes patch version updates, requiring no manual intervention from users.70% similarUnverifiedWhen a project uses ^ or ~ version ranges, running npm update or pnpm update will raise the version in the lockfile to the latest patch70% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/953424API
curl https://kongchang.com/api/v1/knowledge/claims/953424MCP
get_claim(id=953424)