Skip to content

Compare pre-release versions number by number - #4

Merged
S42yt merged 1 commit into
masterfrom
fix/prerelease-order
Oct 2, 2026
Merged

S42yt merged 1 commit into
masterfrom
fix/prerelease-order

Conversation

@S42yt

@S42yt S42yt commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Package versions such as 1.0.0-rc.10 and 1.0.0-rc.2 were compared as plain strings, so rc.10 counted as older. The new comparison splits each pre-release into runs of digits and non-digits and compares digit runs as numbers. burnlang/burnup gets the same fix.

New unit tests cover rc.10 vs rc.2, beta vs alpha.3, and equal tags.

These all pass with Burn 26.1.0-experimental-2:

  • burn fmt --check, burn check and the unit tests;
  • burn build;
  • the end-to-end tests, both natively and on the interpreter.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PCXUjgpGnka9y7AHKfnN3w


Generated by Claude Code

@S42yt
S42yt merged commit 4742ae9 into master Oct 2, 2026
1 check passed
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