fix(scorecard): replace uuid dependency with Node.js built-in crypto.randomUUID#3371
Conversation
Changed Packages
|
|
🤖 Finished Review · ✅ Success · Started 8:33 AM UTC · Completed 8:37 AM UTC |
PR Summary by QodoScorecard: bump uuid to v14 and remove unused dependency WalkthroughsDescription• Bump uuid dependency in scorecard backend from v9 to v14. • Remove unused uuid dependency from scorecard node package. • Add changesets to release patch versions for affected packages. Diagramgraph TD
E["Changesets"] --> A["scorecard-backend (pkg)"] --> B(("uuid v14")) --> F{{"npm registry"}}
E --> C["scorecard-node (pkg)"] --> D["uuid removed"]
subgraph Legend
direction LR
_pkg["Package"] ~~~ _dep(("Dependency")) ~~~ _ext{{"External"}}
end
High-Level AssessmentThe following are alternative approaches to this PR: 1. Use Node.js built-in `crypto.randomUUID()`
2. Centralize UUID generation behind a shared helper (scorecard-common)
Recommendation: The current approach (bump backend to uuid v14 and remove the unused node dependency) is the right minimal-change fix for deprecation. Consider File ChangesOther (4)
|
ReviewFindingsInfo
The correctness sub-agent (opus) confirmed a clean, correct replacement of Previous runReviewFindingsNo findings. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3371 +/- ##
=======================================
Coverage 54.02% 54.02%
=======================================
Files 2409 2409
Lines 87733 87733
Branches 24284 24283 -1
=======================================
Hits 47400 47400
Misses 38752 38752
Partials 1581 1581
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
…randomUUID The uuid package is no longer needed — Node.js provides crypto.randomUUID natively. This removes the dependency from both scorecard-backend and scorecard-node. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Christoph Jerolimov <jerolimov+git@redhat.com>
65e65c9 to
bfe8864
Compare
|
|
🤖 Finished Review · ✅ Success · Started 7:53 AM UTC · Completed 7:57 AM UTC |
dzemanov
left a comment
There was a problem hiding this comment.
Tested that this works fine, thank you!



Hey, I just made a Pull Request!
Closes task https://redhat.atlassian.net/browse/RHIDP-14849
Update deprecated and 3 year old uuid library. This replaces #2884
The uuid package is no longer needed — Node.js provides crypto.randomUUID natively.
This removes the dependency from both scorecard-backend and scorecard-node.
This is aligned with backstage/backstage#34035
✔️ Checklist