Skip to content

Treat unstable versions with tilde specially#1247

Open
fredden wants to merge 1 commit intoergebnis:mainfrom
fredden:tilde-vs-caret-for-unstable-versions
Open

Treat unstable versions with tilde specially#1247
fredden wants to merge 1 commit intoergebnis:mainfrom
fredden:tilde-vs-caret-for-unstable-versions

Conversation

@fredden
Copy link
Contributor

@fredden fredden commented Mar 6, 2026

This pull request changes the normalisation rules for tilde (~) version ranges to cope with unstable / pre-1.0 version numbers.

For example, compare the selected versions on these two URLs:

Fixes ergebnis/composer-normalize#1473
Fixes ergebnis/composer-normalize#1584

@codecov
Copy link

codecov bot commented Mar 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.43%. Comparing base (186141e) to head (f745842).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1247      +/-   ##
============================================
+ Coverage     97.40%   97.43%   +0.02%     
  Complexity      216      216              
============================================
  Files            32       32              
  Lines           810      818       +8     
============================================
+ Hits            789      797       +8     
  Misses           21       21              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

Tilde to caret normalization issue for pre-1.0 versions Incorrect normalization of version using ~ symbol

1 participant