GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix: sync node-semver 7.8.6 fixtures and fix range compat by ryuapp · Pull Request #135 · ryuapp/js-semver

Conversation

@ryuapp

@ryuapp ryuapp commented Nov 10, 2026

Copy link
Copy Markdown
Owner

Sync the compatibility tests with node-semver v7.8.6 by importing all default-option range parsing fixtures and fixing the compatibility differences they expose.

The following table shows the behavior changes:

Input Before After
<\uFEFF2.0.0 Rejected Accepted as <2.0.0
1.2\t-\n2.3 Rejected Accepted as >=1.2.0 <2.4.0-0
~ +build 1, ~> +build 1, ^ +build 1 Rejected Accepted as >=1.0.0 <2.0.0-0
1 +a +b = 2 Accepted Rejected
1.2.3 +build = 1.2.3 Accepted Rejected
1.2.3-dev +build = 1.2.3-dev Accepted Rejected

Additional changes:

  • Handle all 25 ECMAScript whitespace characters, including vertical tabs.
  • Normalize >=0.0.0 to *, remove duplicate comparators, and discard impossible OR branches when other branches remain.
  • Preserve explicit upper bounds with different prereleases, such as both <0.3.0-0 and <0.3.0.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ryuapp
fix: sync node-semver 7.8.6 fixtures and fix range compat
8991037
@codecov

codecov Bot commented Nov 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/range.rs 100.00% <100.00%> (ø)
src/range/expand.rs 100.00% <100.00%> (ø)
src/range/tests.rs 100.00% <100.00%> (ø)
tests/range.rs 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ryuapp
test: cover pathological range whitespace and build metadata
07c87ff
@ryuapp
ryuapp marked this pull request as ready for review November 11, 2026 15:04
@ryuapp
ryuapp merged commit 86f84ca into main Nov 15, 2026
9 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@ryuapp
ryuapp deleted the sync/node-semver-7.8.6 branch November 15, 2026 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@ryuapp
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.