Skip to content

Commit

Permalink
Update devDependency renovate to v38 (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
renovate[bot] authored Aug 23, 2024
1 parent 758c353 commit ee3ecd0
Show file tree
Hide file tree
Showing 15 changed files with 1,019 additions and 962 deletions.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-oranges-chew.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@microsoft/m365-renovate-config': minor
---

Migrate configs for Renovate v38
4 changes: 2 additions & 2 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@
{
// Group updates of all deps except Renovate.
"groupName": "devDependencies",
"matchPackagePatterns": ["*"],
"matchPackageNames": ["*"],
"matchUpdateTypes": ["minor", "patch"],
"excludeDepNames": ["renovate"],
"matchDepNames": ["!renovate"],
"schedule": ["before 5am on the 5th and 20th day of the month"]
},
{
Expand Down
78 changes: 37 additions & 41 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ Group D3 updates.
"packageRules": [
{
"groupName": "D3 packages",
"matchPackagePrefixes": ["d3-", "@types/d3-"]
"matchPackageNames": ["d3-*", "@types/d3-*"]
}
]
}
Expand All @@ -281,8 +281,7 @@ Group and schedule all eslint-related updates.
"packageRules": [
{
"groupName": "eslint packages",
"matchPackagePatterns": ["eslint"],
"excludePackagePrefixes": ["@typecript-eslint/"],
"matchPackageNames": ["/eslint/", "!@typecript-eslint/*"],
"schedule": ["before 5am on the 8th and 22nd day of the month"]
},
{
Expand Down Expand Up @@ -325,7 +324,7 @@ Group, schedule, and auto-merge all dependency updates in `__fixtures__` sub-fol
"groupName": "fixture dependencies",
"schedule": ["before 5am on the 1st and 15th day of the month"],
"matchFileNames": ["**/__fixtures__/**"],
"matchPackagePatterns": ["*"],
"matchPackageNames": ["*"],
"matchDepTypes": [
"dependencies",
"devDependencies",
Expand Down Expand Up @@ -362,7 +361,7 @@ Note that this will still make separate PRs for major and non-major updates unle

To customize this rule's behavior for individual packages, you can add entries to `packageRules` in your repo. For example:

- Exclude individual packages: `{ "groupName": "fixture dependencies", "excludePackageNames": ["foo"] }` (or other [exclusion options](https://docs.renovatebot.com/configuration-options/#excludepackagenames))
- Exclude individual packages: `{ "groupName": "fixture dependencies", "matchPackageNames": ["!foo"] }` (or other [exclusion options](https://docs.renovatebot.com/configuration-options/#matchrepositories))
- Limit the allowed versions for a specific package: `{ "matchPackageNames": ["foo"], "allowedVersions": "<6.0.0 }`
<!-- end extra content -->

Expand All @@ -379,21 +378,21 @@ Group Fluent UI and related package updates.
"packageRules": [
{
"groupName": "Fluent UI React v9 packages",
"matchPackagePrefixes": ["@fluentui/"],
"matchPackageNames": ["@fluentui/*"],
"matchCurrentVersion": ">=9.0.0-alpha.0"
},
{
"groupName": "Fluent UI React v9 packages",
"matchPackagePrefixes": ["@griffel/"]
"matchPackageNames": ["@griffel/*"]
},
{
"groupName": "Fluent UI React v8 packages",
"matchPackagePrefixes": ["@fluentui/"],
"matchCurrentVersion": "/^[1234568]\\./",
"excludePackageNames": [
"@fluentui/eslint-plugin",
"@fluentui/react-conformance",
"@fluentui/react-teams"
"matchPackageNames": [
"@fluentui/*",
"!@fluentui/eslint-plugin",
"!@fluentui/react-conformance",
"!@fluentui/react-teams"
]
},
{
Expand All @@ -402,19 +401,18 @@ Group Fluent UI and related package updates.
},
{
"groupName": "Fluent UI React Northstar packages",
"matchPackagePrefixes": ["@fluentui/"],
"matchCurrentVersion": "0.x",
"excludePackageNames": [
"@fluentui/eslint-plugin",
"@fluentui/react-cards",
"@fluentui/react-conformance",
"@fluentui/public-docsite-setup"
"matchPackageNames": [
"@fluentui/*",
"!@fluentui/eslint-plugin",
"!@fluentui/react-cards",
"!@fluentui/react-conformance",
"!@fluentui/public-docsite-setup"
]
},
{
"groupName": "Fabric packages",
"matchPackageNames": ["office-ui-fabric-react"],
"matchPackagePrefixes": ["@uifabric/"]
"matchPackageNames": ["office-ui-fabric-react", "@uifabric/*"]
},
{
"groupName": "Fabric packages",
Expand Down Expand Up @@ -464,8 +462,7 @@ Group and schedule jest, ts-jest, jest types, and related packages.
},
{
"groupName": "Jest packages",
"matchPackagePrefixes": ["@types/jest-", "jest-"],
"matchPackageNames": ["@types/jest", "ts-jest"],
"matchPackageNames": ["@types/jest", "ts-jest", "@types/jest-*", "jest-*"],
"schedule": ["before 5am on the 8th and 22nd day of the month"]
}
]
Expand Down Expand Up @@ -585,8 +582,7 @@ Group all Rollup-related updates.
"packageRules": [
{
"groupName": "rollup packages",
"matchPackagePrefixes": ["@rollup"],
"matchPackagePatterns": ["^rollup"]
"matchPackageNames": ["/^@?rollup/"]
}
]
}
Expand All @@ -613,26 +609,27 @@ Group minor and patch updates to `@types` `devDependencies`.
"groupName": "@types devDependencies",
"schedule": ["before 5am on the 1st and 15th day of the month"],
"matchManagers": ["npm"],
"matchPackagePrefixes": ["@types/"],
"matchDepTypes": ["devDependencies"],
"matchUpdateTypes": ["minor", "patch"],
"matchCurrentVersion": ">1.0.0",
"excludePackagePrefixes": ["@types/d3-", "@types/jest-"],
"excludePackageNames": [
"@types/jest",
"@types/react",
"@types/react-dom",
"@types/react-is",
"@types/react-test-renderer",
"@types/scheduler",
"@types/yargs",
"@types/yargs-parser"
"matchPackageNames": [
"@types/*",
"!@types/d3-*",
"!@types/jest-*",
"!@types/jest",
"!@types/react",
"!@types/react-dom",
"!@types/react-is",
"!@types/react-test-renderer",
"!@types/scheduler",
"!@types/yargs",
"!@types/yargs-parser"
]
},
{
"groupName": "@types devDependencies",
"matchManagers": ["npm"],
"matchPackagePrefixes": ["@types/"],
"matchPackageNames": ["@types/*"],
"matchDepTypes": ["devDependencies"],
"matchUpdateTypes": ["patch"],
"matchCurrentVersion": "0.x"
Expand All @@ -654,7 +651,7 @@ If you want to exclude a package from this group, add a new `packageRules` entry
```json
{
"groupName": "@types devDependencies",
"excludePackageNames": ["some-package"]
"matchPackageNames": ["!@types/some-package"]
}
```

Expand Down Expand Up @@ -887,7 +884,7 @@ Update "noisy" (frequently-updating) packages once every other week.
{
"packageRules": [
{
"matchPackagePrefixes": ["@microsoft/api-extractor"],
"matchPackageNames": ["@microsoft/api-extractor*"],
"schedule": ["before 5am on the 8th and 22nd day of the month"]
}
]
Expand Down Expand Up @@ -925,7 +922,7 @@ Auto-merge minor and patch updates to `devDependencies` and lock file maintenanc
"automerge": true,
"platformAutomerge": true,
"internalChecksFilter": "strict",
"excludePackageNames": ["typescript"],
"matchPackageNames": ["!typescript"],
"minimumReleaseAge": "2 days"
}
]
Expand Down Expand Up @@ -954,11 +951,10 @@ Auto-merge minor and patch updates to `@types` `devDependencies` (if the build p
{
"packageRules": [
{
"matchPackagePrefixes": ["@types/"],
"matchPackageNames": ["@types/*", "!@types/react", "!@types/react-dom"],
"matchManagers": ["npm"],
"matchDepTypes": ["devDependencies"],
"matchUpdateTypes": ["minor", "patch"],
"excludePackageNames": ["@types/react", "@types/react-dom"],
"automerge": true,
"platformAutomerge": true
}
Expand Down
2 changes: 1 addition & 1 deletion automergeDevLock.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"automerge": true,
"platformAutomerge": true,
"internalChecksFilter": "strict",
"excludePackageNames": ["typescript"],
"matchPackageNames": ["!typescript"],
"minimumReleaseAge": "2 days"
}
]
Expand Down
3 changes: 1 addition & 2 deletions automergeTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@

"packageRules": [
{
"matchPackagePrefixes": ["@types/"],
"matchPackageNames": ["@types/*", "!@types/react", "!@types/react-dom"],
"matchManagers": ["npm"],
"matchDepTypes": ["devDependencies"],
"matchUpdateTypes": ["minor", "patch"],
"excludePackageNames": ["@types/react", "@types/react-dom"],
"automerge": true,
"platformAutomerge": true
}
Expand Down
2 changes: 1 addition & 1 deletion groupD3.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"packageRules": [
{
"groupName": "D3 packages",
"matchPackagePrefixes": ["d3-", "@types/d3-"]
"matchPackageNames": ["d3-*", "@types/d3-*"]
}
]
}
3 changes: 1 addition & 2 deletions groupEslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"packageRules": [
{
"groupName": "eslint packages",
"matchPackagePatterns": ["eslint"],
"excludePackagePrefixes": ["@typecript-eslint/"],
"matchPackageNames": ["/eslint/", "!@typecript-eslint/*"],
"schedule": ["before 5am on the 8th and 22nd day of the month"]
},
{
Expand Down
2 changes: 1 addition & 1 deletion groupFixtureUpdates.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"groupName": "fixture dependencies",
"schedule": ["before 5am on the 1st and 15th day of the month"],
"matchFileNames": ["**/__fixtures__/**"],
"matchPackagePatterns": ["*"],
"matchPackageNames": ["*"],
"matchDepTypes": [
"dependencies",
"devDependencies",
Expand Down
29 changes: 14 additions & 15 deletions groupFluent.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@
"packageRules": [
{
"groupName": "Fluent UI React v9 packages",
"matchPackagePrefixes": ["@fluentui/"],
"matchPackageNames": ["@fluentui/*"],
"matchCurrentVersion": ">=9.0.0-alpha.0"
},
{
"groupName": "Fluent UI React v9 packages",
"matchPackagePrefixes": ["@griffel/"]
"matchPackageNames": ["@griffel/*"]
},
{
"groupName": "Fluent UI React v8 packages",
"matchPackagePrefixes": ["@fluentui/"],
"matchCurrentVersion": "/^[1234568]\\./",
"excludePackageNames": [
"@fluentui/eslint-plugin",
"@fluentui/react-conformance",
"@fluentui/react-teams"
"matchPackageNames": [
"@fluentui/*",
"!@fluentui/eslint-plugin",
"!@fluentui/react-conformance",
"!@fluentui/react-teams"
]
},
{
Expand All @@ -29,19 +29,18 @@
},
{
"groupName": "Fluent UI React Northstar packages",
"matchPackagePrefixes": ["@fluentui/"],
"matchCurrentVersion": "0.x",
"excludePackageNames": [
"@fluentui/eslint-plugin",
"@fluentui/react-cards",
"@fluentui/react-conformance",
"@fluentui/public-docsite-setup"
"matchPackageNames": [
"@fluentui/*",
"!@fluentui/eslint-plugin",
"!@fluentui/react-cards",
"!@fluentui/react-conformance",
"!@fluentui/public-docsite-setup"
]
},
{
"groupName": "Fabric packages",
"matchPackageNames": ["office-ui-fabric-react"],
"matchPackagePrefixes": ["@uifabric/"]
"matchPackageNames": ["office-ui-fabric-react", "@uifabric/*"]
},
{
"groupName": "Fabric packages",
Expand Down
3 changes: 1 addition & 2 deletions groupJest.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
},
{
"groupName": "Jest packages",
"matchPackagePrefixes": ["@types/jest-", "jest-"],
"matchPackageNames": ["@types/jest", "ts-jest"],
"matchPackageNames": ["@types/jest", "ts-jest", "@types/jest-*", "jest-*"],
"schedule": ["before 5am on the 8th and 22nd day of the month"]
}
]
Expand Down
3 changes: 1 addition & 2 deletions groupRollup.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"packageRules": [
{
"groupName": "rollup packages",
"matchPackagePrefixes": ["@rollup"],
"matchPackagePatterns": ["^rollup"]
"matchPackageNames": ["/^@?rollup/"]
}
]
}
25 changes: 13 additions & 12 deletions groupTypes.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,27 @@
"groupName": "@types devDependencies",
"schedule": ["before 5am on the 1st and 15th day of the month"],
"matchManagers": ["npm"],
"matchPackagePrefixes": ["@types/"],
"matchDepTypes": ["devDependencies"],
"matchUpdateTypes": ["minor", "patch"],
"matchCurrentVersion": ">1.0.0",
"excludePackagePrefixes": ["@types/d3-", "@types/jest-"],
"excludePackageNames": [
"@types/jest",
"@types/react",
"@types/react-dom",
"@types/react-is",
"@types/react-test-renderer",
"@types/scheduler",
"@types/yargs",
"@types/yargs-parser"
"matchPackageNames": [
"@types/*",
"!@types/d3-*",
"!@types/jest-*",
"!@types/jest",
"!@types/react",
"!@types/react-dom",
"!@types/react-is",
"!@types/react-test-renderer",
"!@types/scheduler",
"!@types/yargs",
"!@types/yargs-parser"
]
},
{
"groupName": "@types devDependencies",
"matchManagers": ["npm"],
"matchPackagePrefixes": ["@types/"],
"matchPackageNames": ["@types/*"],
"matchDepTypes": ["devDependencies"],
"matchUpdateTypes": ["patch"],
"matchCurrentVersion": "0.x"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"jju": "^1.4.0",
"node-fetch": "^3.3.1",
"prettier": "^3.0.0",
"renovate": "37.431.0",
"renovate": "38.51.1",
"typescript": "^5.0.3"
}
}
2 changes: 1 addition & 1 deletion scheduleNoisy.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

"packageRules": [
{
"matchPackagePrefixes": ["@microsoft/api-extractor"],
"matchPackageNames": ["@microsoft/api-extractor*"],
"schedule": ["before 5am on the 8th and 22nd day of the month"]
}
]
Expand Down
Loading

0 comments on commit ee3ecd0

Please sign in to comment.