Skip to content

Instantly share code, notes, and snippets.

View caspardue's full-sized avatar
🫥

Caspar Due caspardue

🫥
View GitHub Profile
@caspardue
caspardue / guide.md
Created May 14, 2026 00:11 — forked from Xansiety/guide.md
Configuring minimum release age across npm, pnpm, and yarn

Configuring minimum release age across npm, pnpm, and yarn

Setting a minimum release age (a "cooldown") on dependencies is a cheap, high-leverage defense against supply-chain attacks. Most malicious package versions are detected and yanked within hours, so a 24-hour delay filters out the smash-and-grab incidents (axios 1.14.1, ua-parser-js, Solana web3.js, etc.).

All three major Node.js package managers now support this, but each one used a different name and a different unit. Here is what you need.

Minimum versions

Tool Setting Unit Introduced in