Caret vs tilde in package.json: what ^ and ~ let in

In package.json, a caret (^1.2.3) accepts any 1.x release from 1.2.3 up, so new minor and patch versions, while a tilde (~1.2.3) accepts only patch releases of 1.2. Below 1.0.0 the caret tightens: ^0.2.3 acts like ~0.2.3. Your lockfile decides what actually installs until you update it.

Updated November 25, 2026

A warm wave of orange and red light over deep blue

Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

See how out of date your code is.

Any public GitHub repository. No sign-in.

Tell your agent what changed since it was trained.

claude mcp add --transport http since https://api.since.dev/mcp

Codex, Cursor and any MCP client use https://api.since.dev/mcp.