Skip to content

Conversation

Yaman-kumarsahu
Copy link

@Yaman-kumarsahu Yaman-kumarsahu commented Sep 24, 2025

Supporting for partial version and x-range for build metadata.
bin/semver.js 1.3.4 -r ">=1.x+build <2.x+build" will work.

Also checking and removing support for x-range pre-release.
bin/semver.js 1.3.4 -r ">=1.x.x-alpha <2.x+build" will not work.

Closes: #509

@Yaman-kumarsahu Yaman-kumarsahu requested a review from a team as a code owner September 24, 2025 08:04
@wraithgar
Copy link
Member

Ok now we're cooking. And the comment still describes what we're doing

// turn into a set of JUST comparators.

Build is not part of a comparator.

@wraithgar wraithgar changed the title x-range partial version build metadata support fix: x-range partial version build metadata support Sep 26, 2025
wraithgar
wraithgar previously approved these changes Sep 26, 2025
@wraithgar
Copy link
Member

Looks good. Those test cases probably should move to a test fixture file (i.e ./test/fixtures/range-build.js). I will merge this after the weekend regardless, we can make that change as a follow up if you don't want to.

@wraithgar wraithgar self-assigned this Sep 26, 2025
@Yaman-kumarsahu
Copy link
Author

Yaman-kumarsahu commented Sep 27, 2025

Moved the test cases to /test/fixtures/range-build.js .

Thank you for your support and help.

@wraithgar
Copy link
Member

I cleaned up the test cases this morning and made #811, you are still listed as the actual author in git

commit 94d2054633456bcd8fc3e1afa331bbeac3e215d0 (HEAD -> gar/pr810, origin/gar/pr810)
Author: i529015 <redacted>
Date:   Wed Sep 24 13:21:26 2025 +0530

    fix: x-range build metadata support

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.

[BUG] Inconsistency between X-Ranges and Partial Version
2 participants