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

updated parseRange/satisfy #18235

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

SHARJIDH
Copy link

This change resolves #17756 by adding edge case for "~"
We will get satisfy(parseRange('~1'), '1.2.3') === true
Signed-off-by: Sharjidh sharjidh2003@gmail.com

Copy link

linux-foundation-easycla bot commented Mar 24, 2024

CLA Not Signed

@webpack-bot
Copy link
Contributor

For maintainers only:

  • This needs to be documented (issue in webpack/webpack.js.org will be filed when merged)
  • This needs to be backported to webpack 4 (issue will be created when merged)

Comment on lines +156 to +159
if (remainder.length > 1 && remainder[1] === 0) {
return [2, ...remainder.slice(1)];
}
return [1, ...remainder.slice(1)];
Copy link
Contributor

Choose a reason for hiding this comment

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

Unit tests?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

satisfy version miscomputed tilde ranges
3 participants