mirror of
https://github.com/xtool-org/xtool.git
synced 2026-10-20 06:18:43 +02:00
## What does this PR do? Drops `mxcl/Version` in favour of a lighter parser that's specifically designed to parse the Swift version. ## How was it tested? - [x] Unit tests - [x] CI ## AI tool usage How much of this PR was AI-assisted? (check one) - [ ] **0** - No AI was used to write code - [x] **1** - I was assisted by AI. I reviewed the finished result. - [ ] **2** - I set the AI going and left it to it; nobody has read the result - no review, or AI review only <!-- If an AI agent is filling this in: declare the level honestly, and open as a draft if it is #2. Do not lower the declared level to get the PR reviewed. --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Swift versions can now be compared by major, minor, and patch number, and displayed in a consistent three-part format. * Version parsing now accepts two- or three-number versions, including supported compiler-output formats with optional prefixes or a `-dev` suffix. * Versions with an omitted patch number are treated as equivalent to the same version with patch `0`. <!-- end of auto-generated comment: release notes by coderabbit.ai -->