Skip to content

refactor: split up ModuleVersionInfo - #537

Merged
fregante merged 2 commits into
mainfrom
claude/refactor-module-version-info
Oct 10, 2026
Merged

fregante merged 2 commits into
mainfrom
claude/refactor-module-version-info

Conversation

@fregante

@fregante fregante commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

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

Part of #475: ModuleVersionInfo is flagged by react-doctor (no-high-complexity-react-function). Moves the version comparison into a pure getVersionStatus() in lib/version-status.ts (with tests); the component now only maps the result to a class and a message. No behavior change.

Checked locally: react-doctor no longer flags it, plus format, lint, types, unit tests (incl. the new ones) and build. Not run: smoke tests or a manual browser check, so the version badges in the module pane are worth a quick look.

getVersionStatus() works out how far behind latest a version is, and
which dist-tag it is, without any rendering. The component only maps the
result to a class and a message. Adds tests for it. No behavior change.

react-doctor: no-high-complexity-react-function
@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 10, 2026 12:33pm UTC

Request Review

@fregante
fregante marked this pull request as ready for review October 10, 2026 12:33
@fregante

Copy link
Copy Markdown
Member Author

✅ Tested. Still works.

This will be useful for my other request:

@fregante
fregante enabled auto-merge (squash) October 10, 2026 12:34
@fregante
fregante merged commit 98be5af into main Oct 10, 2026
7 checks passed
@fregante
fregante deleted the claude/refactor-module-version-info branch October 10, 2026 12:34

This branch was successfully deployed

1 active deployment
Preview — 0d3e1360 Deployed Oct 10, 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.

1 participant