-
-
Notifications
You must be signed in to change notification settings - Fork 429
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
Update node version requirement #646
Conversation
Codecov Report
@@ Coverage Diff @@
## master #646 +/- ##
=======================================
Coverage 98.69% 98.69%
=======================================
Files 11 11
Lines 306 306
Branches 59 59
=======================================
Hits 302 302
Misses 4 4 Continue to review full report at Codecov.
|
We removed that some time ago to support users with Node 6 on the CI where the package would fail the installation. We do the node version validation with “please-upgrade-node”. |
But is NodeJS 6 even tested on CI currently? Normally this should live in |
@okonet Would something like this work then? require('please-upgrade-node')(pkg, {
exitCode: process.env.CI ? 0 : 1 // Do not fail with exit code 1 on CI
}) Although I'm not really sure why we wouldn't fail, given how that package doesn't really support Node v6. |
Ah, so if this package is a dev-dependency, running With yarn, there's Maybe I'll move the engines field back to |
The lowest version of node required by explicit dependencies is ^8.12.0 specified by Execa
a01ece7
to
47d5322
Compare
Exactly. |
Related issue #515 |
I edited the commits to keep the current behaviour. The other changes are still valid, though, and required before updating |
🎉 This PR is included in version 9.0.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Too bad, breaks legacy aws builds which require 8.10 |
@IgnusG: if it’s possible for you to test this package manually and confirm it still works, we can downgrade the requirement. It’s just that execa specifies this version in their package.json, so even if lint-stage didn’t it might still not work. |
Should be ok that it requires a newer NodeJS version.
Not directly a major version but you should be fine with 8.x.x. |
|
Sure but then you should make sure that you pin it to this version in |
Yap, already done ;) |
Imho bumping a required version of Node is at least a breaking change, and should've been communicated as such (warnings in previous release, deprecation in the next one). As |
@artem-zakharchenko I agree on principle, but figured this just syncing to the correct requirement based on dependencies. If |
PR adds the lowest required node version to
package.json'sto the bin entrypoint. The requirement currently comes from execa.engines.node
It also updates the CI environments to test with node versions
8
,10
and12
, because version 9 isn't really supported.Replaces PR #525 as stale.