Settings

Theme

Can we stop using `^` in `package.json`

4 points by jsmilker 5 months ago · 0 comments · 1 min read


Stop using `^` in `package.json` if you care about supply-chain safety.

If the lockfile is missing (fresh clone, CI misconfig) or you rely on automated updates like Renovate or Dependabot, semver ranges allow unreviewed code to enter your dependency graph. A compromised minor or patch release becomes eligible and can be pulled in automatically.

After last year’s wave of npm supply-chain attacks, we audited all our projects and locked dependencies down. Every upgrade is now an explicit, manual decision.

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection