Skip to content

fix(update): compare prerelease identifiers numerically, not lexicogr… - #315

Merged
yaojin3616 merged 1 commit into
dataelement:mainfrom
HuangLeijiana:pr/fix-update-prerelease-compare
Sep 5, 2026
Merged

fix(update): compare prerelease identifiers numerically, not lexicogr…#315
yaojin3616 merged 1 commit into
dataelement:mainfrom
HuangLeijiana:pr/fix-update-prerelease-compare

Conversation

@HuangLeijiana

Copy link
Copy Markdown
Contributor

…aphically

compareVersions ('rc.10' < 'rc.9' under string comparison) mis-ordered any prerelease that reached a two-digit counter in three places that must stay in lockstep: the update feed filter, the preload's picker newer/older + downgrade split (pendingDowngrade skips the downgrade confirm dialog on a mislabeled upgrade), and the release-script index generator that feeds dshdesktop.com/updates/versions.json.

Implement semver-style precedence (numeric identifiers compared numerically and below alphanumeric ones, fewer identifiers sort below more) in all three copies and pin rc.10 > rc.9 plus identifier rules in both test suites.

…aphically

compareVersions ('rc.10' < 'rc.9' under string comparison) mis-ordered
any prerelease that reached a two-digit counter in three places that must
stay in lockstep: the update feed filter, the preload's picker
newer/older + downgrade split (pendingDowngrade skips the downgrade
confirm dialog on a mislabeled upgrade), and the release-script index
generator that feeds dshdesktop.com/updates/versions.json.

Implement semver-style precedence (numeric identifiers compared
numerically and below alphanumeric ones, fewer identifiers sort below
more) in all three copies and pin rc.10 > rc.9 plus identifier rules in
both test suites.
@yaojin3616
yaojin3616 merged commit cb3e358 into dataelement:main Sep 5, 2026
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.

2 participants