-
Notifications
You must be signed in to change notification settings - Fork 37
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: upgrade yargs
to latest version
#314
Conversation
supporting node 4 seems important while we support eslint versions that support node 4. |
Having also stumbled on the I understand @ljharb, but wouldn't it possible to make a major version dropping at least the node 4 and 6 that are EOL for long. I can give a hand if needed. cc @sarbbottam |
Of course it’s possible - the question is, is it desirable, given that this isn’t a particularly problematic CVE? Separately, EOL status is irrelevant; tools should support what people use. |
@ljharb I Totally agree your points However we can also fix it, and took the opportunity to bump many libraries of eslint-find-rules (5 out of 7 of prod dependencies can have a major update available) About your concern about breaking support for existing user, I think it can be addressed: Tell me what your mind about this. =) |
Only vulnerability staying is the eslint-find-rules plugin related one: sarbbottam/eslint-find-rules#314 (comment)
…nter 🌬️ Minor refresh PR with no expected change to current plugin behavior: - Scoped bump dependencies (excluding major we can upgrade too) - Npm audit fix to get ride of most vuln but [one not fixable right now, but not a real issue](sarbbottam/eslint-find-rules#314)
I think you should follow the supported node versions of eslint. If users need older node support, they can use a older version of this plugin. eslint 6 dropped support for node 6 (https://eslint.org/docs/user-guide/migrating-to-6.0.0) and eslint 7 dropped support for node 8 (https://eslint.org/blog/2020/05/eslint-v7.0.0-released). Having support for very old node versions while eslint doesn't even support them is less important then all users of this plugin having 2 npm audit messages. |
@NextNebula we do, but we support down to eslint 3, so we support whatever nodes any of eslint 3-7 support. npm audit messages are almost always false positives; they're unimportant. |
This change should fix a security vulnerability (mem v^1.1.0) from the version of
yargs
used by this project. Here is the warning we are getting from our repo that useseslint-find-rules
:Here's the chain of dependencies that lead to the insecure package.
I ran tests after upgrading and seemed ok, however there are quite a few breaking changes between yargs v8.0.1 and the current v14.2.0, so i've listed them below for your reference.
Breaking Changes
since v8.0.1
previously hidden options were simply implied using a falsy description