GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||
GeezerVison is showing github.com — fix(shared): compare semver prerelease identifiers in ASCII order by only21mil · Pull Request #28836 · pingdotgg/t3code Conversation
Contributor
ProblemSemVer 2.0.0 (rule 11) says prerelease identifiers that contain letters or hyphens compare lexically in ASCII order. Users see this in the provider update notice. With Codex Change
Numeric identifiers, numeric before alphanumeric, prerelease before release, parsing and Scope and approvalThis is a very small, focused fix of an obvious spec bug in one function, so it goes without a prior issue or discussion under CONTRIBUTING's Prior approval section. It adds no behavior beyond what SemVer specifies. Verification
Web, Settings → Providers, before: Codex shows "Update available". Web, after: no update control. Desktop (Linux), Settings → Providers, before: Codex shows "Update available". Desktop, after: no update control. iOS simulator, environment settings, before: "Update Codex" for 1.2.3-alpha with latest 1.2.3-Beta. iOS, after: no "Update Codex". Android emulator, environment settings, before: "Update Codex" for 1.2.3-alpha with latest 1.2.3-Beta. Android, after: no "Update Codex". Not checked:
Prior PRs#9445 by Lucenx9 included this same comparator change along with wider parsing changes. It was closed in a cleanup for missing model attribution, not on its merits. This PR rebuilds only the comparator part on current main. Thanks, Lucenx9. Generated with Claude Opus 5.5 and GPT-6.1 Sol and GPT-6.1 Terra in T3 Code Nightly
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsSemVer 2.0.0 rule 11 orders nonnumeric prerelease identifiers lexically in ASCII order, but the comparer used localeCompare, so "1.2.3-alpha" sorted before "1.2.3-Beta" and "alpha-a" before "alpha-Z". Compare by code unit instead, as pingdotgg#9445 by Lucenx9 proposed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
Estimated code review effort: 2 (Simple) | ~5 minutes Change: Bug fix Possibly related PRs
Suggested labels: Suggested reviewers: Merge Risk:
|
|
Note 🤖 Opus 5.5 replying on behalf of Victor. Closing this in favor of #32169. It replaces the same |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.