Skip to content

Commit

Permalink
renovate: pin some packages for Node version reasons (#7954)
Browse files Browse the repository at this point in the history
Apollo Server 4 claims to support Node v14 and v16 (which are EOL), but
many of our dependencies do not in their recent versions. Tell Renovate
not to try to upgrade them.

(At some point we'll put out an AS5 which drops support for these old
Node versions, which will let us upgrade all our deps again.)
  • Loading branch information
glasser authored Oct 29, 2024
1 parent d8b7c10 commit e64f497
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,21 @@
matchPackageNames: ["^@typescript-eslint"],
allowedVersions: "5.x"
},
// cspell@7 drops support for node v14. We can take this when we drop node v14 support.
{
matchPackageNames: ["cspell"],
allowedVersions: "6.x",
},
// whatwg-mimetype@4 drops support for node v14. We can take this when we drop node v14 support.
{
matchPackageNames: ["whatwg-mimetype"],
allowedVersions: "3.x",
},
// node-fetch v3 only ships as ESM. We currently build as both CommonJS and
// ESM and we're not going to go ESM-only for a while. So let's stay on v2.
// (Perhaps we could swap to undici instead if this pin gets to be a
// problem.)
// ESM, so let's stay on v2.
// (Once we drop support for node older than v18, we can switch our default
// fetch implementation to be Node's built-in implementation and drop this
// very old node-fetch implementation.)
{
"matchPackagePatterns": ["node-fetch", "@types/node-fetch"],
"allowedVersions": "2.x"
Expand All @@ -109,6 +120,11 @@
matchUpdateTypes: ["major"],
groupName: "rollup",
},
// rollup@4 drops support for node v14. We can take this when we drop node v14 support.
{
matchPackageNames: ["rollup"],
allowedVersions: "4.x",
},
// Only needed until Jest supports prettier@3 for snapshots
{
"matchPackageNames": ["prettier-2"],
Expand Down

0 comments on commit e64f497

Please sign in to comment.