@@ -410,6 +410,9 @@ sources, the standard precedence applies (cli > env > project > user > |
410 | 410 | global), so a higher-priority source can always relax or override a |
411 | 411 | lower-priority one. |
412 | 412 |
|
| 413 | +Packages whose names match \`min-release-age-exclude\` are exempt from this |
| 414 | +filter. |
| 415 | +
|
413 | 416 |
|
414 | 417 |
|
415 | 418 | #### \`bin-links\` |
@@ -1300,6 +1303,37 @@ your \`.npmrc\` is preserved when npm internally spawns a sub-process with |
1300 | 1303 | apply, \`before\` wins within a single source and across sources the standard |
1301 | 1304 | precedence rules apply. |
1302 | 1305 |
|
| 1306 | +Packages whose names match \`min-release-age-exclude\` are exempt from this |
| 1307 | +filter. |
| 1308 | +
|
| 1309 | +This value is not exported to the environment for child processes. |
| 1310 | +
|
| 1311 | +#### \`min-release-age-exclude\` |
| 1312 | +
|
| 1313 | +* Default: |
| 1314 | +* Type: String (can be set multiple times) |
| 1315 | +
|
| 1316 | +A list of package names or \`minimatch\` glob patterns that are exempt from |
| 1317 | +the \`min-release-age\` (and \`before\`) filter. A matching package can always |
| 1318 | +resolve to its newest version, even when a release-age window is set. |
| 1319 | +
|
| 1320 | +For example, to apply a release-age window to third-party dependencies while |
| 1321 | +letting internally maintained packages update immediately: |
| 1322 | +
|
| 1323 | +\`\`\` |
| 1324 | +min-release-age=7 |
| 1325 | +min-release-age-exclude[]=@myorg/* |
| 1326 | +min-release-age-exclude[]=my-internal-pkg |
| 1327 | +\`\`\` |
| 1328 | +
|
| 1329 | +Only the named package is exempt; its own dependencies still follow the |
| 1330 | +release-age policy unless they also match a pattern. Patterns match against |
| 1331 | +the package name, so \`@myorg/*\` matches \`@myorg/shared-utils\`. |
| 1332 | +
|
| 1333 | +Excluding a package does not change which registry it is fetched from. You |
| 1334 | +should own your private scope on the public registry so that nobody else can |
| 1335 | +publish a package with the same name. |
| 1336 | +
|
1303 | 1337 | This value is not exported to the environment for child processes. |
1304 | 1338 |
|
1305 | 1339 | #### \`name\` |
@@ -1912,13 +1946,13 @@ this to work properly. |
1912 | 1946 | * Default: false |
1913 | 1947 | * Type: Boolean |
1914 | 1948 |
|
1915 | | -If \`true\`, turn the install-script policy from a silent skip into a hard |
1916 | | -error: any dependency with install scripts not covered by \`allowScripts\` |
1917 | | -will fail the install instead of being silently skipped. |
| 1949 | +If \`true\`, turn the install-script policy from a warning into a hard error: |
| 1950 | +any dependency with install scripts that is not covered by \`allowScripts\` |
| 1951 | +will fail the install instead of being blocked with a warning. |
1918 | 1952 |
|
1919 | | -By default, dependencies whose install scripts are not approved in |
1920 | | -\`allowScripts\` are silently skipped; this setting promotes that silent skip |
1921 | | -into a hard failure, which is the recommended posture for CI. |
| 1953 | +Dependencies explicitly denied with \`false\` in \`allowScripts\` are always |
| 1954 | +silently skipped; this setting only affects unreviewed entries (packages |
| 1955 | +with install scripts that are neither approved nor denied). |
1922 | 1956 | \`--ignore-scripts\` and \`--dangerously-allow-all-scripts\` both override this |
1923 | 1957 | setting. |
1924 | 1958 |
|
@@ -2513,6 +2547,7 @@ Array [ |
2513 | 2547 | "maxsockets", |
2514 | 2548 | "message", |
2515 | 2549 | "min-release-age", |
| 2550 | + "min-release-age-exclude", |
2516 | 2551 | "node-gyp", |
2517 | 2552 | "node-options", |
2518 | 2553 | "noproxy", |
@@ -2679,6 +2714,7 @@ Array [ |
2679 | 2714 | "maxsockets", |
2680 | 2715 | "message", |
2681 | 2716 | "min-release-age", |
| 2717 | + "min-release-age-exclude", |
2682 | 2718 | "node-gyp", |
2683 | 2719 | "noproxy", |
2684 | 2720 | "offline", |
@@ -2856,6 +2892,7 @@ Object { |
2856 | 2892 | "logColor": false, |
2857 | 2893 | "maxSockets": 15, |
2858 | 2894 | "message": "%s", |
| 2895 | + "minReleaseAgeExclude": Array [], |
2859 | 2896 | "name": null, |
2860 | 2897 | "nodeBin": "{NODE}", |
2861 | 2898 | "nodeGyp": "{CWD}/node_modules/node-gyp/bin/node-gyp.js", |
@@ -3284,7 +3321,7 @@ Options: |
3284 | 3321 | Comma-separated list of packages whose install-time lifecycle scripts |
3285 | 3322 |
|
3286 | 3323 | --strict-allow-scripts |
3287 | | - If \`true\`, turn the install-script policy from a silent skip into a |
| 3324 | + If \`true\`, turn the install-script policy from a warning into a hard |
3288 | 3325 |
|
3289 | 3326 | --dangerously-allow-all-scripts |
3290 | 3327 | If \`true\`, bypass the \`allowScripts\` policy entirely and run every |
@@ -3846,7 +3883,7 @@ Options: |
3846 | 3883 | Comma-separated list of packages whose install-time lifecycle scripts |
3847 | 3884 |
|
3848 | 3885 | --strict-allow-scripts |
3849 | | - If \`true\`, turn the install-script policy from a silent skip into a |
| 3886 | + If \`true\`, turn the install-script policy from a warning into a hard |
3850 | 3887 |
|
3851 | 3888 | --dangerously-allow-all-scripts |
3852 | 3889 | If \`true\`, bypass the \`allowScripts\` policy entirely and run every |
@@ -4231,8 +4268,10 @@ Options: |
4231 | 4268 | [--allow-remote <all|none|root>] |
4232 | 4269 | [--allow-scripts <package-list> [--allow-scripts <package-list> ...]] |
4233 | 4270 | [--strict-allow-scripts] [--dangerously-allow-all-scripts] [--no-audit] |
4234 | | -[--before <date>] [--min-release-age <days>] [--no-bin-links] [--no-fund] |
4235 | | -[--dry-run] [--cpu <cpu>] [--os <os>] [--libc <libc>] |
| 4271 | +[--before <date>] [--min-release-age <days>] |
| 4272 | +[--min-release-age-exclude <pkg|glob> [--min-release-age-exclude <pkg|glob> ...]] |
| 4273 | +[--no-bin-links] [--no-fund] [--dry-run] [--cpu <cpu>] [--os <os>] |
| 4274 | +[--libc <libc>] |
4236 | 4275 | [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
4237 | 4276 | [--workspaces] [--include-workspace-root] [--install-links] |
4238 | 4277 |
|
@@ -4294,7 +4333,7 @@ Options: |
4294 | 4333 | Comma-separated list of packages whose install-time lifecycle scripts |
4295 | 4334 |
|
4296 | 4335 | --strict-allow-scripts |
4297 | | - If \`true\`, turn the install-script policy from a silent skip into a |
| 4336 | + If \`true\`, turn the install-script policy from a warning into a hard |
4298 | 4337 |
|
4299 | 4338 | --dangerously-allow-all-scripts |
4300 | 4339 | If \`true\`, bypass the \`allowScripts\` policy entirely and run every |
@@ -4308,6 +4347,9 @@ Options: |
4308 | 4347 | --min-release-age |
4309 | 4348 | If set, npm will build the npm tree such that only versions that were |
4310 | 4349 |
|
| 4350 | + --min-release-age-exclude |
| 4351 | + A list of package names or \`minimatch\` glob patterns that are exempt |
| 4352 | +
|
4311 | 4353 | --bin-links |
4312 | 4354 | Tells npm to create symlinks (or \`.cmd\` shims on Windows) for package |
4313 | 4355 |
|
@@ -4373,6 +4415,7 @@ aliases: add, i, in, ins, inst, insta, instal, isnt, isnta, isntal, isntall |
4373 | 4415 | #### \`audit\` |
4374 | 4416 | #### \`before\` |
4375 | 4417 | #### \`min-release-age\` |
| 4418 | +#### \`min-release-age-exclude\` |
4376 | 4419 | #### \`bin-links\` |
4377 | 4420 | #### \`fund\` |
4378 | 4421 | #### \`dry-run\` |
@@ -4444,7 +4487,7 @@ Options: |
4444 | 4487 | Comma-separated list of packages whose install-time lifecycle scripts |
4445 | 4488 |
|
4446 | 4489 | --strict-allow-scripts |
4447 | | - If \`true\`, turn the install-script policy from a silent skip into a |
| 4490 | + If \`true\`, turn the install-script policy from a warning into a hard |
4448 | 4491 |
|
4449 | 4492 | --dangerously-allow-all-scripts |
4450 | 4493 | If \`true\`, bypass the \`allowScripts\` policy entirely and run every |
@@ -4527,8 +4570,10 @@ Options: |
4527 | 4570 | [--allow-remote <all|none|root>] |
4528 | 4571 | [--allow-scripts <package-list> [--allow-scripts <package-list> ...]] |
4529 | 4572 | [--strict-allow-scripts] [--dangerously-allow-all-scripts] [--no-audit] |
4530 | | -[--before <date>] [--min-release-age <days>] [--no-bin-links] [--no-fund] |
4531 | | -[--dry-run] [--cpu <cpu>] [--os <os>] [--libc <libc>] |
| 4573 | +[--before <date>] [--min-release-age <days>] |
| 4574 | +[--min-release-age-exclude <pkg|glob> [--min-release-age-exclude <pkg|glob> ...]] |
| 4575 | +[--no-bin-links] [--no-fund] [--dry-run] [--cpu <cpu>] [--os <os>] |
| 4576 | +[--libc <libc>] |
4532 | 4577 | [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
4533 | 4578 | [--workspaces] [--include-workspace-root] [--install-links] |
4534 | 4579 |
|
@@ -4590,7 +4635,7 @@ Options: |
4590 | 4635 | Comma-separated list of packages whose install-time lifecycle scripts |
4591 | 4636 |
|
4592 | 4637 | --strict-allow-scripts |
4593 | | - If \`true\`, turn the install-script policy from a silent skip into a |
| 4638 | + If \`true\`, turn the install-script policy from a warning into a hard |
4594 | 4639 |
|
4595 | 4640 | --dangerously-allow-all-scripts |
4596 | 4641 | If \`true\`, bypass the \`allowScripts\` policy entirely and run every |
@@ -4604,6 +4649,9 @@ Options: |
4604 | 4649 | --min-release-age |
4605 | 4650 | If set, npm will build the npm tree such that only versions that were |
4606 | 4651 |
|
| 4652 | + --min-release-age-exclude |
| 4653 | + A list of package names or \`minimatch\` glob patterns that are exempt |
| 4654 | +
|
4607 | 4655 | --bin-links |
4608 | 4656 | Tells npm to create symlinks (or \`.cmd\` shims on Windows) for package |
4609 | 4657 |
|
@@ -4669,6 +4717,7 @@ alias: it |
4669 | 4717 | #### \`audit\` |
4670 | 4718 | #### \`before\` |
4671 | 4719 | #### \`min-release-age\` |
| 4720 | +#### \`min-release-age-exclude\` |
4672 | 4721 | #### \`bin-links\` |
4673 | 4722 | #### \`fund\` |
4674 | 4723 | #### \`dry-run\` |
@@ -5115,6 +5164,7 @@ Options: |
5115 | 5164 | [-a|--all] [--json] [-l|--long] [-p|--parseable] [-g|--global] |
5116 | 5165 | [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
5117 | 5166 | [--before <date>] [--min-release-age <days>] |
| 5167 | +[--min-release-age-exclude <pkg|glob> [--min-release-age-exclude <pkg|glob> ...]] |
5118 | 5168 |
|
5119 | 5169 | -a|--all |
5120 | 5170 | Show or act on all packages, not just the ones your project directly |
@@ -5140,6 +5190,9 @@ Options: |
5140 | 5190 | --min-release-age |
5141 | 5191 | If set, npm will build the npm tree such that only versions that were |
5142 | 5192 |
|
| 5193 | + --min-release-age-exclude |
| 5194 | + A list of package names or \`minimatch\` glob patterns that are exempt |
| 5195 | +
|
5143 | 5196 |
|
5144 | 5197 | Run "npm help outdated" for more info |
5145 | 5198 |
|
@@ -5155,6 +5208,7 @@ npm outdated [<package-spec> ...] |
5155 | 5208 | #### \`workspace\` |
5156 | 5209 | #### \`before\` |
5157 | 5210 | #### \`min-release-age\` |
| 5211 | +#### \`min-release-age-exclude\` |
5158 | 5212 | ` |
5159 | 5213 |
|
5160 | 5214 | exports[`test/lib/docs.js TAP usage owner > must match snapshot 1`] = ` |
@@ -5510,7 +5564,9 @@ Options: |
5510 | 5564 | [-g|--global] |
5511 | 5565 | [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
5512 | 5566 | [--workspaces] [--include-workspace-root] [--package-lock-only] |
5513 | | -[--expect-results|--expect-result-count <count>] |
| 5567 | +[--expect-results|--expect-result-count <count>] [--before <date>] |
| 5568 | +[--min-release-age <days>] |
| 5569 | +[--min-release-age-exclude <pkg|glob> [--min-release-age-exclude <pkg|glob> ...]] |
5514 | 5570 |
|
5515 | 5571 | -g|--global |
5516 | 5572 | Operates in "global" mode, so that packages are installed into the |
@@ -5530,6 +5586,15 @@ Options: |
5530 | 5586 | --expect-results |
5531 | 5587 | Tells npm whether or not to expect results from the command. |
5532 | 5588 |
|
| 5589 | + --before |
| 5590 | + If passed to \`npm install\`, will rebuild the npm tree such that only |
| 5591 | +
|
| 5592 | + --min-release-age |
| 5593 | + If set, npm will build the npm tree such that only versions that were |
| 5594 | +
|
| 5595 | + --min-release-age-exclude |
| 5596 | + A list of package names or \`minimatch\` glob patterns that are exempt |
| 5597 | +
|
5533 | 5598 |
|
5534 | 5599 | Run "npm help query" for more info |
5535 | 5600 |
|
@@ -5544,6 +5609,9 @@ npm query <selector> |
5544 | 5609 | #### \`package-lock-only\` |
5545 | 5610 | #### \`expect-results\` |
5546 | 5611 | #### \`expect-result-count\` |
| 5612 | +#### \`before\` |
| 5613 | +#### \`min-release-age\` |
| 5614 | +#### \`min-release-age-exclude\` |
5547 | 5615 | ` |
5548 | 5616 |
|
5549 | 5617 | exports[`test/lib/docs.js TAP usage rebuild > must match snapshot 1`] = ` |
@@ -5575,7 +5643,7 @@ Options: |
5575 | 5643 | Comma-separated list of packages whose install-time lifecycle scripts |
5576 | 5644 |
|
5577 | 5645 | --strict-allow-scripts |
5578 | | - If \`true\`, turn the install-script policy from a silent skip into a |
| 5646 | + If \`true\`, turn the install-script policy from a warning into a hard |
5579 | 5647 |
|
5580 | 5648 | --dangerously-allow-all-scripts |
5581 | 5649 | If \`true\`, bypass the \`allowScripts\` policy entirely and run every |
@@ -6351,8 +6419,9 @@ Options: |
6351 | 6419 | [--ignore-scripts] |
6352 | 6420 | [--allow-scripts <package-list> [--allow-scripts <package-list> ...]] |
6353 | 6421 | [--strict-allow-scripts] [--dangerously-allow-all-scripts] [--no-audit] |
6354 | | -[--before <date>] [--min-release-age <days>] [--no-bin-links] [--no-fund] |
6355 | | -[--dry-run] |
| 6422 | +[--before <date>] [--min-release-age <days>] |
| 6423 | +[--min-release-age-exclude <pkg|glob> [--min-release-age-exclude <pkg|glob> ...]] |
| 6424 | +[--no-bin-links] [--no-fund] [--dry-run] |
6356 | 6425 | [-w|--workspace <workspace-name> [-w|--workspace <workspace-name> ...]] |
6357 | 6426 | [--workspaces] [--include-workspace-root] [--install-links] |
6358 | 6427 |
|
@@ -6393,7 +6462,7 @@ Options: |
6393 | 6462 | Comma-separated list of packages whose install-time lifecycle scripts |
6394 | 6463 |
|
6395 | 6464 | --strict-allow-scripts |
6396 | | - If \`true\`, turn the install-script policy from a silent skip into a |
| 6465 | + If \`true\`, turn the install-script policy from a warning into a hard |
6397 | 6466 |
|
6398 | 6467 | --dangerously-allow-all-scripts |
6399 | 6468 | If \`true\`, bypass the \`allowScripts\` policy entirely and run every |
@@ -6407,6 +6476,9 @@ Options: |
6407 | 6476 | --min-release-age |
6408 | 6477 | If set, npm will build the npm tree such that only versions that were |
6409 | 6478 |
|
| 6479 | + --min-release-age-exclude |
| 6480 | + A list of package names or \`minimatch\` glob patterns that are exempt |
| 6481 | +
|
6410 | 6482 | --bin-links |
6411 | 6483 | Tells npm to create symlinks (or \`.cmd\` shims on Windows) for package |
6412 | 6484 |
|
@@ -6456,6 +6528,7 @@ aliases: u, up, upgrade, udpate |
6456 | 6528 | #### \`audit\` |
6457 | 6529 | #### \`before\` |
6458 | 6530 | #### \`min-release-age\` |
| 6531 | +#### \`min-release-age-exclude\` |
6459 | 6532 | #### \`bin-links\` |
6460 | 6533 | #### \`fund\` |
6461 | 6534 | #### \`dry-run\` |
|