Skip to content

feat: add outdated modules to the Report - #540

Merged
fregante merged 8 commits into
mainfrom
claude/outdated-modules-report
Oct 13, 2026
Merged

fregante merged 8 commits into
mainfrom
claude/outdated-modules-report

Conversation

@fregante

@fregante fregante commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

Created by Claude, will be reviewed by @fregante first.

Fixes #536.

  • Collect outdated modules in analyzeModules (no extra requests: packuments are already loaded), with tests
  • Add the "Outdated modules" warning item to the Report tab

The new item is a warning in the Report tab, listing each outdated module with its latest version, most outdated first (major, then minor, then patch). Local and stub modules are skipped, like in the Outdated Level colorizer.

Each module already comes with its packument, so no extra requests are
needed. Reuses getVersionStatus(), and skips local and stub modules like
the Outdated Level colorizer does.
@vercel

vercel Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
npmgraph Ready Ready Preview Oct 13, 2026 11:37pm UTC

Request Review

Lists the modules that are behind their latest version, most outdated
first, as requested in #536.
@fregante
fregante marked this pull request as ready for review October 10, 2026 17:31
@fregante

Copy link
Copy Markdown
Member Author

✅ Looking very good and very nice

I'm open to tweaks and changes of style. But it works

It's too noisy for a list. Each row now only shows the latest version,
and the shared message helper isn't needed anymore.
@fregante

Copy link
Copy Markdown
Member Author
IMG_4174

@broofa broofa left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like these are sorted by outdatedness, but that's not immediately obvious in the UI. It'd be nice to have some indication of the major v. minor v. patch outdated severity. Maybe use dots like in the legend for the colorizer?

CleanShot 2026-10-10 at 16 37 58@2x

@fregante

Copy link
Copy Markdown
Member Author

I think if we use those we also have to include that legend. Might be easier to:

  • group by severity
  • highlight the difference (patch gets .7 in bold, minor gets .1.7 in bold, etc) like npm-check-dependencies does

I think the grouping is clearest and cleanest. Will see how that looks

The tests fail on purpose, the implementation follows.

Co-authored-by: Claude <[email protected]>
@fregante

fregante commented Oct 13, 2026 •

Copy link
Copy Markdown
Member Author

@broofa broofa left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@fregante
fregante enabled auto-merge (squash) October 13, 2026 23:37
@fregante
fregante merged commit d742037 into main Oct 13, 2026
7 checks passed
@fregante
fregante deleted the claude/outdated-modules-report branch October 13, 2026 23:38

This branch was successfully deployed

1 active deployment
Preview — baade8b1 Deployed Oct 13, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add "outdated modules" section to Report

2 participants