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
Old test is failing on master
#1828
Comments
I opted to extract this functionality into a dedicated module for two of my projects: https://github.com/voxpelli/version-guard If we want to avoid maintaining the version guard then we can use that one here as well? |
Putting this logic in a dedicated module, only move the problem. I think this is best to exit code 1 when a Node.js version is not supported or simply not care. Also, it might be worth to add in the FAQ in the |
The reason why its done like this is to allow easy upgrades to newer versions without it breaking projects that feel they need to support a wider set of Node.js versions than we do. There is no reason for Related PR:s and comments in this project:
Related PR:s and comments in other projects of mine:
I think that separating it out into its own module help for two reasons:
On top of |
Added a suggested solution in #1829 |
Projects wanting to support a wider set of Node.js than As said in #1829 (review), I don't mind for the moment, if we still do "version guards" and fail silently, the priority now is to restore green CI and keep the same behavior as before, so we can close this issue. But then once this issue is resolved, I think, it might be worth opening a new issue (with reference to this one), to discuss and debate the need for version guards, and actually "don't care", if run on a Node.js version that we don't support, basically, we are not responsible if it doesn't work and exit with status code 1. |
The old test (GitHub Actions) on
master
is currently failing, it seems like a npm issue, not able to install dependencies.I think it's worth removing this test as this doesn't really "test" the usage of StandardJS.
There was already a discussion about that in this PR: #1681
We can also remove the workaround with
eval
andimport
inbin/cmd.js
, it makes the code ugly and I don't think it is worth it.And instead to check the version with
process.version
, we can actually start usingengines
property inpackage.json
(ref: standard/eslint-config-standard#211).Basically
bin/cmd.js
becomes:Thoughts?
Much cleaner, isn't it? Why adding code, we don't need and that actually break over time?
The text was updated successfully, but these errors were encountered: