Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(versioning/composer): support range versions normalization #20558

Merged
merged 5 commits into from
Feb 22, 2023
Merged

fix(versioning/composer): support range versions normalization #20558

merged 5 commits into from
Feb 22, 2023

Conversation

Lctrs
Copy link
Contributor

@Lctrs Lctrs commented Feb 21, 2023

Changes

With composer versioning, you can specify range versions in the form of eg. ^7.4|^8. Actually, composer2npm() function does not normalize this to the valid semver equivalent ||. This PR fixes this.

Context

Ref #20217 (comment)

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@rarkins rarkins changed the title fix(versioning): support range versions normalization for composer fix(versioning/composer): support range versions normalization Feb 22, 2023
Copy link
Member

@viceice viceice left a comment

Choose a reason for hiding this comment

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

please add a test

@Lctrs
Copy link
Contributor Author

Lctrs commented Feb 22, 2023

please add a test

@viceice Done.

@viceice viceice enabled auto-merge February 22, 2023 10:21
@Lctrs
Copy link
Contributor Author

Lctrs commented Feb 22, 2023

@viceice Don't know why this doesn't get merged. I signed the CLA.

@viceice
Copy link
Member

viceice commented Feb 22, 2023

PR was outdated, I've updated now. it should automerge after ci checks succeeds

@viceice viceice added this pull request to the merge queue Feb 22, 2023
Merged via the queue into renovatebot:main with commit 27eda56 Feb 22, 2023
@Lctrs Lctrs deleted the fix/versioning/composer-range branch February 22, 2023 13:37
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 34.151.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants