-
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 node min version to 10.13.0 #22400
Conversation
Can we explicitly set circleci to test 10.13 so we don't have regressions when upgrading packages. |
Sorry mostly talking about Line 10 in d9c6415
|
The changes lgtm. I think this PR is more about what's missing but I think we're looking good... |
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.
Do we need .yarn/releases/yarn-1.21.0.js
in our repo? It's an extra 5mb
@wardpeet Yes if we want to make sure Yarn is of correct version. |
why don't we install it in circleci instead? |
Co-Authored-By: Dan Kirkham <[email protected]>
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.
LGTM! Added a few typo fixes and @herecydev also caught one.
Co-Authored-By: Ward Peeters <[email protected]>
Heya folks (cc @freiksenet, @wardpeet), We have a project that depends on on Gatsby version Should have this bump been in a major version (3.0.0) for gatsby-cli? If so it would be helpful if you could publish some new versions to address it. I will look into the possibility of having a locked version by modifying a package-lock, and of course upgrading the project. This project is something that we're maintaining without active feature development so you can imagine this is not trivial. Just raising in case this is helpful, I may be mistaken, let me know if you'd like any more information. |
@NickColley See https://www.gatsbyjs.org/docs/upgrading-node-js/ for some further explanation. A lockfile (either yarn or npm) and constraining the version using a tilda would solve this for you, i.e. |
@NickColley Thanks for the heads up! We are very sorry for this situation, we are always trying to not do changes like that during minor releases. Unfortunately we didn't have a proper major version release process, which forced us to do this kind of change because of Node deprecation. We are changing the process so that we have a regular major version release cadence and this will let us be more stable in between those releases. I recommend locking the version in package-lock.json for now or upgrading Node - there shouldn't be any breaking changes except for node version between those versions of Gatsby. |
It would be really helpful if you could commit to your stance here:
In the meantime I'll attempt to upgrade our applications dependencies as pinning the version in the package-lock is not working out. Thanks for the reply, good luck. 👍 |
Gatsby has made a breaking change in a minor version so we need to update to avoid the build breaking. gatsbyjs/gatsby#22400 (comment)
Gatsby has made a breaking change in a minor version so we need to update to avoid the build breaking. gatsbyjs/gatsby#22400 (comment)
Drop node 8 support and bump min version to 10.13.0 Co-Authored-By: Dan Kirkham <[email protected]> Co-Authored-By: Ward Peeters <[email protected]> Co-authored-by: Michal Piechowiak <[email protected]> Co-authored-by: Dan Kirkham <[email protected]> Co-authored-by: Ward Peeters <[email protected]>
Node 8 reached end of life in December of 2019. There were deprecation warnings about it in previous Gatsby versions. Less than 3% of Gatsby users are still using Node 8. Some libraries that Gatsby or Gatsby plugins depend on have dropped Node 8. This meant that we were locked into using an older version of packages and couldn’t apply the latest bugfixes (that was a case with, e.g., sharp or got). Some performance and memory improvements were only possible with newer versions of Node too.
Evaluating all those factors, we decided that it’s better to drop Node 8 support in a minor version, rather than wait further.