Skip to content

Conversation

@MatteoGabriele
Copy link
Contributor

@MatteoGabriele MatteoGabriele commented Jan 26, 2026

Uses the built-in compare method from the semver package.

before
Screenshot 2026-01-26 at 20 46 20

after
Screenshot 2026-01-26 at 20 45 44

closes #139

uses the built-in compare method from the semver package.
@vercel
Copy link

vercel bot commented Jan 26, 2026

@MatteoGabriele is attempting to deploy a commit to the danielroe Team on Vercel.

A member of the Team first needs to authorize it.

@@ -47,19 +47,7 @@ export function parseVersion(version: string): ParsedVersion {
* @returns Comparison result for sorting
*/
export function compareVersions(a: string, b: string): number {
Copy link
Member

Choose a reason for hiding this comment

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

can we just use compare wherever compareVersions is used instead of wrapping it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Definitely! I thought about keeping the wrapper for future changes, but it's indeed cleaner to use the package's method where needed, which also eliminates the need for tests.

Copy link
Member

@danielroe danielroe left a comment

Choose a reason for hiding this comment

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

💯

@vercel
Copy link

vercel bot commented Jan 26, 2026

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

Project Deployment Review Updated (UTC)
npmx.dev Ready Ready Preview, Comment Jan 26, 2026 8:46pm

Request Review

@danielroe danielroe merged commit 1dbf2c2 into npmx-dev:main Jan 26, 2026
8 checks passed
vinnymac pushed a commit to vinnymac/npmx.dev that referenced this pull request Jan 28, 2026
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.

versions aren't quite sorted per SemVer spec

2 participants