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
Remove support for Node 4 #190
Conversation
this is awesome. i'm just starting a new job but would like to put some thought into this PR so please give me a couple weeks to find some time. |
@olsonpm Sure 👍 I don't think we need to put all the work you might have in mind into this PR, though. This can simply remove support; then we can follow up with refactoring or dependency adjustments. |
@davidtheclark I agree with you. However, node.js 6 has reached end-of-life as well. Is there any reason to continue supporting node 6? |
@sudo-suhas We have some reasons to remove support for Node 4. Do we have any reasons to remove support for Node 6? (Reversing your question.) It's true that Node 6 is EOL, but it entered that state very, very recently (4/30), so I'm not inclined to remove support, especially unless we have good reasons to do so. |
dependencies moving forward is the only reason i can think of. I don't have an opinion either way though. |
@davidtheclark That makes sense, no objections from me. I suggested removing support because:
|
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
If you are going to do a major semver and drop node 4, I think you should also remove support for node 6. As @sudo-suhas pointed out it is end of life and I think libraries holding on to old versions of node are doing the community a disservice by not promoting moving forward. Also, as @olsonpm said, dependencies have already started dropping node 6 support. Already requires node 8: Soon to drop support: I think a good idea would be to support node 4 and 6 on the current version with bug fixes only. |
regardless of whether going forward with v6 or v8 support is the right choice, "doing the community a disservice" is a little strong. Bumping node versions takes time, especially for larger projects. There are pros and cons for pushing the supported version forward, and one major drawback is forcing open source devs into volunteering more time to bump the node version. |
Sorry I wasn't trying to come off as attacking, just an opinion of mine. I actually thought the same thing as @davidtheclark not long ago when a lot of my dependencies on my projects were dropping node 6 support (mainly sindresorhus's modules). But I thought about it more and think it is actually a good thing to support the community to move forward by giving it a little push where you can. Crazy to think that node 6 was released in 2016 (seems like yesterday)...
The opposite is true as well, forcing open source devs to support an old version of node. |
@chrisblossom's dependency list helps a lot. Ok, I feel fine about removing support for Node 6 — as noted above: this is stable; we could release bug fixes for older versions if pressured to; we haven't had bug reports so not too worried about that. I'll get around to this within the next couple of days, I think. |
Ok, Node 6 support is removed, also, for the next release. |
This PR removes support for Node 4 and runs tests in Node 12 on CI.
Here are some reasons I think we may as well remove Node 4 support:
@olsonpm and @sudo-suhas for review, please.
We can follow up with any changes that you think are worthwhile and unblocked by dropping Node 4 support.