Skip to content

fix(supported-version): handle semver-ish values from old magento ver…#309

Merged
rhoerr merged 1 commit intomainfrom
fix_usable
Dec 16, 2025
Merged

fix(supported-version): handle semver-ish values from old magento ver…#309
rhoerr merged 1 commit intomainfrom
fix_usable

Conversation

@damienwebdev
Copy link
Copy Markdown
Member

…isons

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Other... Please describe:

What is the current behavior?

Currently, when using "usable" you get an error like https://github.com/mage-os/generate-mirror-repo-js/actions/runs/20271742450/job/58212349808

image

Error: Invalid Version: 1. This is because the old Magento versions just label the composer versions as "1".

Fixes: N/A

What is the new behavior?

We handle these old versions using semver.coerce

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@damienwebdev damienwebdev requested a review from a team as a code owner December 16, 2025 16:44
Copy link
Copy Markdown
Contributor

@rhoerr rhoerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for the find and fix

@rhoerr rhoerr merged commit b860bf9 into main Dec 16, 2025
41 of 142 checks passed
@mage-os-ci mage-os-ci mentioned this pull request Dec 16, 2025
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