Skip to content

Commit ea9cb80

Browse files
author
GitHub Workflow
committed
Merge branch 'main' into v1
2 parents fb28059 + f0f3a1b commit ea9cb80

File tree

4 files changed

+25
-7
lines changed

4 files changed

+25
-7
lines changed

README.md

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,15 @@ Group minor and patch updates to `@types` `devDependencies`.
550550
"groupName": "@types packages",
551551
"matchPackagePrefixes": ["@types/"],
552552
"matchDepTypes": ["devDependencies"],
553-
"matchUpdateTypes": ["minor", "patch"]
553+
"matchUpdateTypes": ["minor", "patch"],
554+
"matchCurrentVersion": ">1.0.0"
555+
},
556+
{
557+
"groupName": "@types packages",
558+
"matchPackagePrefixes": ["@types/"],
559+
"matchDepTypes": ["devDependencies"],
560+
"matchUpdateTypes": ["patch"],
561+
"matchCurrentVersion": "0.x"
554562
}
555563
]
556564
}
@@ -560,6 +568,10 @@ Group minor and patch updates to `@types` `devDependencies`.
560568

561569
<!-- start extra content (EDITABLE between these comments) -->
562570

571+
`@types` packages can update frequently, and used as `devDependencies`, they're generally low risk/effort to update. So this preset groups them together to reduce noise.
572+
573+
This group excludes updates to `@types` packages with `0.x` versions since those could technically be breaking changes (and to avoid conflicting with the `dependencyDashboardMajor` preset's `0.x` rule).
574+
563575
<!-- end extra content -->
564576

565577
---
@@ -654,7 +666,7 @@ Require dependency dashboard approval for major upgrades (and minor upgrades of
654666
"dependencyDashboardApproval": true
655667
},
656668
{
657-
"matchCurrentVersion": "<1.0.0",
669+
"matchCurrentVersion": "0.x",
658670
"matchUpdateTypes": ["minor"],
659671
"dependencyDashboardApproval": true
660672
}

dependencyDashboardMajor.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dependencyDashboardApproval": true
1313
},
1414
{
15-
"matchCurrentVersion": "<1.0.0",
15+
"matchCurrentVersion": "0.x",
1616
"matchUpdateTypes": ["minor"],
1717
"dependencyDashboardApproval": true
1818
}

groupTypes.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@
88
"groupName": "@types packages",
99
"matchPackagePrefixes": ["@types/"],
1010
"matchDepTypes": ["devDependencies"],
11-
"matchUpdateTypes": ["minor", "patch"]
11+
"matchUpdateTypes": ["minor", "patch"],
12+
"matchCurrentVersion": ">1.0.0"
13+
},
14+
{
15+
"groupName": "@types packages",
16+
"matchPackagePrefixes": ["@types/"],
17+
"matchDepTypes": ["devDependencies"],
18+
"matchUpdateTypes": ["patch"],
19+
"matchCurrentVersion": "0.x"
1220
}
1321
]
1422
}

scripts/updateReadme.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function getPresetExtraTexts(presetNames, presetsSection) {
9696
.forEach((text) => {
9797
const presetName = getHeadingText(text, 4)
9898
.replace(/`/g, '')
99-
.replace(/ \(.*\)$/, ''); // remove args
99+
.replace(/\(.*\)$/, ''); // remove args
100100
if (!presetName) {
101101
console.warn('Section REMOVED since it did not match expected format:\n', text);
102102
} else if (!presetNames.includes(presetName)) {
@@ -133,11 +133,9 @@ async function updateReadme() {
133133
const newPresets = Object.entries(presets).map(([presetFile, { content, json }]) => {
134134
const presetName = path.basename(presetFile, '.json');
135135
const presetArgs = content.match(/{{arg\d}}/g);
136-
console.log(presetArgs);
137136
const presetNameWithArgs = presetArgs
138137
? `${presetName}(${presetArgs.map((arg) => `<${arg.slice(2, -2)}>`).join(', ')})`
139138
: presetName;
140-
console.log(presetNameWithArgs);
141139
const extraContent = presetExtraTexts[presetName] || '';
142140

143141
const { description, $schema, ...otherJson } = json;

0 commit comments

Comments
 (0)