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(npm): Widen range only if necessary #9630

Merged
merged 2 commits into from Apr 19, 2021

Conversation

zharinov
Copy link
Collaborator

Changes:

Additional check and early return if current newVersion satisfies existing range

Context:

Closes #9628

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 tick one)

I have verified these changes via:

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

@zharinov zharinov requested a review from rarkins April 19, 2021 15:27
@zharinov
Copy link
Collaborator Author

@zharinov zharinov marked this pull request as draft April 19, 2021 15:46
@zharinov zharinov marked this pull request as ready for review April 19, 2021 15:47
@@ -198,7 +198,7 @@ describe(getName(__filename), () => {
currentVersion: '1.2.3',
newVersion: '2.0.7',
})
).toEqual('>= 1.0.0 or <= 2.0.7');
).toEqual('>= 1.0.0 or <= 2.0.0');
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Need to rewrite this tests later maybe, it seems like copy-paste from handles and

@rarkins rarkins merged commit 8b8d776 into renovatebot:master Apr 19, 2021
@rarkins rarkins deleted the fix/npm-widen-guard branch April 19, 2021 16:15
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 24.119.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 20, 2021
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.

NPM: multiple versions in peer dependencies lead to endless PR loop
4 participants