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

Pre-release tags were compared as plain strings, so v26.1.0-experimental-10 would count as older than v26.1.0-experimental-2. burnup update would then stop telling people about newer experimental releases once the count reaches 10.

The new comparison splits each tag into runs of digits and non-digits, and compares digit runs as numbers. Unit tests cover:

  • experimental-10 vs experimental-2;
  • experimental-2 vs experimental-1;
  • a release vs its pre-release;
  • beta vs alpha.3;
  • equal tags.

burn fmt --check, burn check, the unit tests and both end-to-end runs pass with Burn 26.1.0-experimental-2.

🤖 Generated with Claude Code

https://claude.ai/code/session_01PCXUjgpGnka9y7AHKfnN3w


Generated by Claude Code

@S42yt
S42yt merged commit 434164e into master Oct 2, 2026
2 checks 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