Skip to content

✨ feat(mq-lang): support hyphen ranges and || (OR) in semver ranges - #2333

Merged
harehare merged 1 commit into
mainfrom
feat/semver-hyphen-range-or
Sep 13, 2026
Merged

✨ feat(mq-lang): support hyphen ranges and || (OR) in semver ranges#2333
harehare merged 1 commit into
mainfrom
feat/semver-hyphen-range-or

Conversation

@harehare

Copy link
Copy Markdown
Owner

Summary

semver::semver_satisfies / semver_max_satisfying now accept hyphen ranges ("1.2.3 - 2.3.4", inclusive) and "||"-separated OR groups of comparators, in addition to the existing comparator/^/~/comma-AND syntax. X-ranges remain out of scope.

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor
  • 📝 Documentation
  • ⚡ Performance
  • ✅ Test
  • 📦 Build / dependencies
  • 👷 CI

Checklist

  • I ran cargo fmt and cargo clippy and addressed any warnings
  • I ran just test-all and all tests pass
  • I added or updated tests covering this change
  • I updated relevant documentation (/docs, crate README.md) if needed
  • I added a changelog entry if this is a user-facing change

Additional Context

semver::semver_satisfies / semver_max_satisfying now accept hyphen
ranges ("1.2.3 - 2.3.4", inclusive) and "||"-separated OR groups of
comparators, in addition to the existing comparator/^/~/comma-AND
syntax. X-ranges remain out of scope.
@codspeed-hq

codspeed-hq Bot commented Sep 13, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 51 untouched benchmarks


Comparing feat/semver-hyphen-range-or (1ab74a7) with main (625c8f9)

Open in CodSpeed

@harehare
harehare merged commit c6e3e1d into main Sep 13, 2026
12 checks passed
@harehare
harehare deleted the feat/semver-hyphen-range-or branch September 13, 2026 01:30
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