Skip to content

Commit aa71c69

Browse files
IchordeDionysosbienzaaronarcanis
authored
docs: Clarify additional use-case of npmMinimalAgeGate (#6945)
## What's the problem this PR addresses? Updated the description for npmMinimalAgeGate to clarify its purpose and provide additional context regarding unpublishable packages. Provided an example value, to make it clearer that the value is in minutes not days. (Took me a bit to realise that 👀 ## How did you fix it? 🌝 ## Checklist <!--- Don't worry if you miss something, chores are automatically tested. --> <!--- This checklist exists to help you remember doing the chores when you submit a PR. --> <!--- Put an `x` in all the boxes that apply. --> - [x] I have read the [Contributing Guide](https://yarnpkg.com/advanced/contributing). <!-- See https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released for more details. --> <!-- Check with `yarn version check` and fix with `yarn version check -i` --> - [x] I have set the packages that need to be released for my changes to be effective. <!-- The "Testing chores" workflow validates that your PR follows our guidelines. --> <!-- If it doesn't pass, click on it to see details as to what your PR might be missing. --> - [x] I will check that all automated PR checks pass before the PR gets reviewed. --------- Co-authored-by: bienzaaron <[email protected]> Co-authored-by: Maël Nison <[email protected]>
1 parent 62d57ff commit aa71c69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/docusaurus/static/configuration/yarnrc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,13 +486,13 @@
486486
"npmMinimalAgeGate": {
487487
"_package": "@yarnpkg/core",
488488
"title": "Minimum age of a package version according to the publish date on the npm registry to be considered for installation.",
489-
"description": "If a package version is newer than the minimal age gate, it will not be considered for installation. This can be used to reduce the likelihood of installing compromised packages.",
489+
"description": "If a package version is newer than the minimal age gate, it will not be considered for installation. This can be used to reduce the likelihood of installing compromised packages, or to avoid relying on packages that could still be unpublished (e.g. the npm registry has specific rules for packages less than 3 days old).",
490490
"type": "mixed",
491491
"oneOf": [
492492
{ "type": "number" },
493493
{ "type": "string", "pattern": "^(\\d*\\.?\\d+)(ms|s|m|h|d|w)?$" }
494494
],
495-
"default": "0m"
495+
"default": "3d"
496496
},
497497
"npmPreapprovedPackages": {
498498
"_package": "@yarnpkg/core",

0 commit comments

Comments
 (0)