fix(frontend): allow npm 11 so Renovate can refresh the lock file - #8519
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe frontend package now accepts npm versions Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to The package metadata broadens npm support as intended, with the supplied installation checks showing compatibility for npm 10 and 11. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Docker builds report
|
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #20426 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
🗂️ Previous results✅ private-cloud · depot-ubuntu-latest-16 — run #20426 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
✅ oss · depot-ubuntu-latest-arm-16 — run #20426 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
✅ oss · depot-ubuntu-latest-16 — run #20426 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-16)Details
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #20425 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
Skipped testsfirefox › tests/onboarding-tests.pw.ts › Onboarding › New user connects via the single-page onboarding flow @oss ✅ private-cloud · depot-ubuntu-latest-16 — run #20425 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
✅ oss · depot-ubuntu-latest-arm-16 — run #20425 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
✅ oss · depot-ubuntu-latest-16 — run #20425 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-16)Details
|
Visual Regression19 screenshots compared. See report for details. |
npm 10 cannot resolve $-prefixed override references when building a lock file from scratch, failing with "Unable to resolve reference $<name>". It resolves them correctly whenever a lock file is already present, so normal installs and CI are unaffected. Renovate's lock file maintenance is the only path that deletes the lock file before regenerating it. Because engines.npm pinned npm to 10.x, Renovate installed npm 10.9.9 and the regeneration failed, so frontend/package-lock.json was silently skipped and never received transitive security updates. Widening the range lets Renovate pick npm 11, which handles $-refs, while leaving developers on the npm 10 that node 22 bundles. The upper bound keeps us on a version we have actually verified. The lock file records engines, so it is updated to match. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
57884a4 to
20935e1
Compare
Thanks for submitting a PR! Please check the boxes below:
docs/if required so people know about the feature.Changes
Contributes to #7697
Renovate silently fails to refresh
frontend/package-lock.json(see #8518, which covers every other lock file). It deletes the lock file before regenerating, and npm 10 — whichengines.npmpinned us to — can't resolve$-prefixed overrides from scratch:npm 11 resolves them correctly, and npm 10 is fine whenever a lock file is present, so normal installs and CI were never affected.
Widening the range lets Renovate pick npm 11. It does not force an upgrade — node 22 bundles npm 10, which still satisfies the range. The upper bound keeps us on a major we've verified.
The lock file records
engines, so it's updated to match.How did you test this code?
Against a copy of
frontend/using Renovate's toolchain (node 22.18.0):enginesline🤖 Generated with Claude Code