-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
chore: bump yargs parser version to avoid flagged vulnerable dependencies #23839
Conversation
…arnings. 'npm audit' complains for: - yargs > os-locale > mem (https://npmjs.com/advisories/1084) - yargs > yargs-parser (https://npmjs.com/advisories/1500) This is obviously a big jump in major version numbers, but the usage looks reasonably vanilla, so I'm hoping it's obvious whether this breaks anything.
…ing in yargs-parser. 'npm audit' complains about 'yargs > yargs-parser' (https://npmjs.com/advisories/1500).
We will need more changes than just bump - there were some breaking changes that we need to account for. I didn't do full check yet but few that I found so far that needs to be addressed: Per https://github.com/yargs/yargs/releases/tag/v15.0.0
Which we use in gatsby/packages/gatsby-cli/package.json Lines 86 to 88 in b9836da
That no longer has effect and we need to find a way to apply it in different way or adjust code to not need it. I was actually going over those right now and working on it - but might as well use your pull request ;) |
Thanks for checking more closely. Happy to leave it with you, but if I can be of any assistance, please let me know. |
I will be updating this PR - if you want to do additional research on breaking changes and manual testing - I will for sure welcome another set of eyes and hands on this |
…upport package.json field)
Also note - we will need to track webpack/webpack-dev-server#2566 as well because that's dependency of
For comparison - using
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Holy buckets, @ashokdelphia — we just merged your PR to Gatsby! 💪💜 Gatsby is built by awesome people like you. Let us say “thanks” in two ways:
If there’s anything we can do to help, please don’t hesitate to reach out to us: tweet at @gatsbyjs and we’ll come a-runnin’. Thanks again! |
Description
Update the version of
yargs
used ingatsby-dev-cli
andgatsby-cli
.Bump the yargs version to address some 'low' security vulnerability warnings. (01df9d4)
'npm audit' complains for:
This is obviously a big jump in major version numbers, but the usage looks reasonably vanilla, so I'm hoping it's obvious whether this breaks anything.
Bump the yargs version to address a 'low' security vulnerability warning in yargs-parser. (65b09f0)
'npm audit' complains about 'yargs > yargs-parser' (https://npmjs.com/advisories/1500).
Documentation
N/A
Related Issues
This should fix the yargs-parser part of #23004.