forked from apollographql/federation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
renovate.json5
118 lines (118 loc) · 4.66 KB
/
renovate.json5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"extends": [
// Our default configuration. See
// https://github.com/apollographql/renovate-config-apollo-open-source/blob/master/package.json
"apollo-open-source",
// Bundle together Jest/TS-Jest updates (even major ones).
"group:jestMonorepo",
"group:jestPlusTSJest",
// Bundle together graphql-codegen updates (even major ones).
"group:graphqlcodegeneratorMonorepo",
],
schedule: null,
// "Past" major version branches, preserved as
// "version-" branches, should be added here to ensure they get
// important updatets.
"baseBranches": [
"main",
"version-0.x",
],
"dependencyDashboard": true,
// The "circleci" manager is intentionally disabled right now (e.g., not
// included in this list). While we do benefit from its updating of "Orb"
// versions, the CircleCI manager also attempts to update Docker images using
// its "Docker" datasource. This is really handy, in theory, but we have
// intentionally varying major Node.js docker image identifiers in our
// CircleCI configuration to test on each major Node.js platform. Enabling
// the "circleci" manager would cause all of these to update to the latest
// version (e.g., 16) when we want them to be intentionally different!
// I'm going to try to craft an fix for this, but I might do it upstream
// on Renovate itself using its Regex manager. It's also worth noting that
// there is other configuration that could be used to _only_ renovate "orbs"
// on this file, but I'm taking the short-cut route and not juggling with
// that right now. I can test the repository locally with my own copy of
// Renovate and come up with another solution given some free time. -Jesse
"enabledManagers": ["npm", "cargo"],
postUpdateOptions: ["npmDedupe"],
"packageRules": [
// We set this to the lowest supported Node.js version to ensure we don't
// use newer Node.js APIs unknowingly during development which are going to
// fail in CI anyway when they're run against the full range of Node.js
// versions we support.
{
"matchPackageNames": ["@types/node"],
"allowedVersions": "12.x"
},
// make-fetch-happen is used by the HttpRequestCache in gateway, which uses
// a cache API that is removed in v9.
{
"matchPackageNames": ["make-fetch-happen"],
"allowedVersions": "8.x"
},
// node-fetch v3 only ships as ESM. We currently build to CommonJS and even
// if we start publishing as ESM we're not going to go ESM-only for a while.
// (Plus it requires Node v12.20 and we support v12.13.) So let's stay on
// v2. (Perhaps we could swap to undici instead if this pin gets to be a
// problem.)
{
"matchPackageNames": ["node-fetch", "@types/node-fetch"],
"allowedVersions": "2.x"
},
// strip-indent v4 can only be imported from ESM modules, and we don't currently
// build as ESM. Maybe we'll change our build strategy eventually, but until then
// we can continue using an old version of a simple indentation stripper in our tests.
// See https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c
{
matchPackageNames: ["strip-indent"],
allowedVersions: "3.x",
},
// chalk v5 is pure ESM. The recommendation in the changelog suggests this should
// be usable in TS v4.6.
// ref: https://github.com/chalk/chalk/releases/v5.0.0
{
matchPackageNames: ["chalk"],
allowedVersions: "4.x",
},
// Bunch up all non-major npm dependencies into a single PR. In the common case
// where the upgrades apply cleanly, this causes less noise and is resolved faster
// than starting a bunch of upgrades in parallel for what may turn out to be
// a suite of related packages all released at once.
{
groupName: "all non-major dependencies",
matchUpdateTypes: ["patch", "minor"],
groupSlug: "all-npm-minor-patch",
matchManagers: [ "npm" ],
},
{
"matchPaths": [
"docs/package.json"
],
"extends": [
"apollo-docs"
],
// "Past" major version branches, preserved as
// "version-" branches, should be added here!
"baseBranches": [
"main",
"version-0.x",
]
},
// The current Apollo Gatsby theme does not support a version of Gatsby
// that supports React 17.
{
"matchPaths": [
"docs/package.json"
],
"matchPackageNames": ["react", "react-dom"],
"allowedVersions": "16.x",
},
// The current Apollo Gatsby theme does not support gatsby v3
{
"matchPaths": [
"docs/package.json"
],
"matchPackageNames": ["gatsby"],
"allowedVersions": "2.x",
},
]
}