Description
Adds minimum-release-age=10080 (7 days in minutes) to .npmrc to protect against supply chain attacks.
When enforced (pnpm >=10.16, npm >=11), this prevents resolving any package version published less than 7 days ago. Most compromised packages are detected and removed within hours — a 7-day window ensures we never pull a poisoned version.
References:
How did I test this PR
- Verified
.npmrc syntax is valid
- pnpm 9.x ignores unknown
.npmrc keys gracefully — no behavioral change until upgrade
Origin: cron-fcf1f1e3efa9 / zen-cron-4bd55921c208