Skip to content

Instantly share code, notes, and snippets.

View parknich's full-sized avatar

parknich

  • 03:50 (UTC -04:00)
View GitHub Profile
@parknich
parknich / guide.md
Created August 5, 2026 13:22 — forked from mcollina/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