Skip to content

Makes npmMinimalAgeGate: 1d the default#7135

Merged
arcanis merged 1 commit into
masterfrom
mael/minimal-age-gate-default
May 18, 2026
Merged

Makes npmMinimalAgeGate: 1d the default#7135
arcanis merged 1 commit into
masterfrom
mael/minimal-age-gate-default

Conversation

@arcanis
Copy link
Copy Markdown
Member

@arcanis arcanis commented May 14, 2026

What's the problem this PR addresses?

The rate at which supply chain attacks occur is growing, and given that we can't rely on the npm registry for good practices it means we need to become stricter to protect our users.

How did you fix it?

The npmMinimalAgeGate settings will now default to 1d. Following the same pattern as in previous PRs (#7089, #7091) it will apply to all new projects, and the configuration of existing projects will be patched when upgrading their Yarn version to hardcode the previous defaults until users can ensure their projects are compatible with the new ones.

Checklist

  • I have set the packages that need to be released for my changes to be effective.
  • I will check that all automated PR checks pass before the PR gets reviewed.

@arcanis arcanis force-pushed the mael/minimal-age-gate-default branch from 52dbe29 to 4c60340 Compare May 14, 2026 20:52
@arcanis arcanis merged commit b11eb6d into master May 18, 2026
51 of 53 checks passed
@arcanis arcanis deleted the mael/minimal-age-gate-default branch May 18, 2026 08:46
@andreialecu
Copy link
Copy Markdown
Contributor

@arcanis just a quick note, I think this new default could cause some issues unless this is also supported:

#6984

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants