From 1023b4940b0076a7dc342c87ef2cefe1453a22ae Mon Sep 17 00:00:00 2001 From: Raine Revere Date: Thu, 8 Aug 2024 15:49:23 +0000 Subject: [PATCH] comment --- src/lib/getIgnoredUpgradesDueToEnginesNode.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/getIgnoredUpgradesDueToEnginesNode.ts b/src/lib/getIgnoredUpgradesDueToEnginesNode.ts index 11d495cc..9a8d81c1 100644 --- a/src/lib/getIgnoredUpgradesDueToEnginesNode.ts +++ b/src/lib/getIgnoredUpgradesDueToEnginesNode.ts @@ -28,6 +28,9 @@ export async function getIgnoredUpgradesDueToEnginesNode( nodeEngineVersion: undefined, loglevel: 'silent', }) + + // Use the latest versions since getEnginesNodeFromRegistry requires exact versions. + // Filter down to only the upgraded latest versions, as there is no point in checking the engines.node for packages that have been filtered out, e.g. by options.minimal or options.filterResults. const latestVersions = keyValueBy(latestVersionResults, (dep, result) => upgradedLatestVersions[dep] && result?.version ? {