-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[v5] Indicate the supported Node.js version in package.json #2316
Conversation
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.
What exactly is the benefit onlf using engines?
I was under the impression it wasn't encouraged by npm anymore.
Additionally we'll be dropping Node 4 for the v5 release. For readability please use caret ranges.
^6 || ^8 || ^9 || ^10
fb8edc7
to
77ce79f
Compare
It's mostly machine readable documentation - npm will just print a warning, though yarn will actually error out when used on an unsupported Node.js version. I followed your suggestion partially and changed it to
|
The version choices seem arbitrary. Our support policy will be Active LTS and Current. We don't get to choose which minor/patch we choose to support because it's convenient to us. We either
I was unable to find a list of at what specific version a release went LTS. For now please keep it at Additionally |
Sorry, I should've mentioned how I arrived at those minor versions. 6.9 and 8.9 are the releases where those versions transitioned into LTS. See these blog posts for reference: As for the second point, at least for users using |
Nice one, I was trying to find those blog post but missed it.
This is mostly true regardless because we wouldn't have the binaries ready.
Users who want to live on the bleeding edge can use the |
77ce79f
to
34ccde1
Compare
Fair point about the binaries. Changed to |
Looks like travis was having issues. Kicked off a rebuild. |
Thanks again ❤️ |
I wonder if we shouldn't add this to 4.x. too - even when using node 10 yarn has no way of knowing it needs to install newer version than specified |
I based the range on what's indicated in
.travis.yml
but since Travis always defaults to the newest release in each series a higher minor could be selected as well.Especially Node.js 4.5 might be a good pick since it's the first release to support
Buffer.from
,Buffer.alloc
andBuffer.allocUnsafe
.In #2111 I found this mention in the summary:
But it's not currently reflected in the Travis config.
Relates to #2312