stenyan[.]dev

JAEN

Cooldown Settings in JavaScript Package Managers

I happened to look into this recently while reading about supply chain attacks, so I figured I might as well put together a detailed list of which versions/pull requests introduced these settings for each package manager.

npm

Available starting npm v11.10.0. The unit is days.

.npmrc
min-release-age=7

yarn

Available starting yarn v4.10.0. The unit is minutes.

.yarnrc.yml
npmMinimalAgeGate: 10080

Starting yarn v4.11.0, string values are also supported.

.yarnrc.yml
npmMinimalAgeGate: "7d"

pnpm

Available starting pnpm v10.16. The unit is minutes.

pnpm-workspace.yaml
minimumReleaseAge: 10080

bun

Available starting bun v1.3. The unit is seconds.

bunfig.toml
[install]
minimumReleaseAge = 604800

deno

Available starting deno v2.5.5. The unit is minutes.

String values are also supported (ISO 8601 or RFC3339 format).

deno.json
{
  "minimumDependencyAge": 10080
}
deno.json
{
  "minimumDependencyAge": "P7D"
}