Skip to content

refactor(env): sort installed versions with node-semver - #2366

Open
jong-kyung wants to merge 1 commit into
voidzero-dev:mainfrom
jong-kyung:refactor/env-list-node-semver
Open

refactor(env): sort installed versions with node-semver#2366
jong-kyung wants to merge 1 commit into
voidzero-dev:mainfrom
jong-kyung:refactor/env-list-node-semver

Conversation

@jong-kyung

Copy link
Copy Markdown
Collaborator

Description

vp env list sorted installed Node.js versions with a hand-rolled compare_versions helper, even though node-semver is already a direct dependency of this crate and is used in nearby modules (upgrade_check.rs, doctor.rs, pin.rs).

This replaces the helper with a single sort_by_cached_key call using node_semver::Version::parse.

Replace the hand-rolled compare_versions helper in env list with
node_semver::Version, which is already a direct dependency of this
crate. Unparseable directory names still sort first, and prerelease
versions now order correctly per semver.
@netlify

netlify Bot commented Aug 6, 2026

Copy link
Copy Markdown

Deploy Preview for viteplus-preview canceled.

Name Link
🔨 Latest commit be4c650
🔍 Latest deploy log https://app.netlify.com/projects/viteplus-preview/deploys/6a748c0e012d480008976f80

@jong-kyung jong-kyung self-assigned this Aug 6, 2026
@jong-kyung

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: be4c65068e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@jong-kyung
jong-kyung marked this pull request as ready for review August 6, 2026 13:32
@jong-kyung
jong-kyung requested a review from fengmk2 August 6, 2026 13:33
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