-
-
Notifications
You must be signed in to change notification settings - Fork 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
Drop node.js v4 support #3364
Drop node.js v4 support #3364
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.
thanks. see suggestions
docs/index.md
Outdated
@@ -92,7 +92,7 @@ or as a development dependency for your project: | |||
$ npm install --save-dev mocha | |||
``` | |||
|
|||
> To install Mocha v3.0.0 or newer with `npm`, you will need `npm` v2.14.2 or newer. Additionally, to run Mocha, you will need Node.js v4 or newer. | |||
> To install Mocha v3.0.0 or newer with `npm`, you will need `npm` v2.14.2 or newer. Additionally, to run Mocha, you will need Node.js v6 or newer. |
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.
We should just change this whole thing to "Mocha currently requires Node.js v6 or newer".
we do need to get that netlify issue (#3206) addressed though.
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.
I have no experience with Netlify. I will test netify as well.
docs/index.md
Outdated
@@ -92,7 +92,7 @@ or as a development dependency for your project: | |||
$ npm install --save-dev mocha | |||
``` | |||
|
|||
> To install Mocha v3.0.0 or newer with `npm`, you will need `npm` v2.14.2 or newer. Additionally, to run Mocha, you will need Node.js v4 or newer. | |||
> To install Mocha v3.0.0 or newer with `npm`, you will need `npm` v2.14.2 or newer. Additionally, to run Mocha, you will need Node.js v6 or newer. | |||
|
|||
Mocha can also be installed via [Bower](https://bower.io) (`bower install mocha`), and is available at [cdnjs](https://cdnjs.com/libraries/mocha). |
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.
We should zap the note about Bower while we're here.
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.
I didn't understand what you mean
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.
I mean that we should remove line 97, because new Mocha versions are no longer installable via Bower.
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.
I suppose that can be a separate PR.
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.
I got it. I will make another PR.
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.
thanks. see suggestions
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.
thanks. see suggestions
0ca7c30
to
3bbfadd
Compare
For Mocha-6, I think that's fine to drop Node-4. But I think we should maybe have one last Mocha-5.x release that supports Node-4 prior to doing so. Certainly some of problems already fixed could be helpful to those who cannot drop Node-4 yet. |
I agreed that dropping v4 in mocha v6. And that's why |
BTW, why was "appveyor.yml" left out of this PR? |
No reason. I just missed it. updated! |
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.
For what it's worth, I think we should make our Node requirements against what we test against. As such, don't specify the entire semver - we never test against 6.0.0; we test against the latest 6.x release. So the "package.json" engines
field should reflect that. And "README.md" should maybe just reference Node-6 (latest version).
Agreed. |
4547268
to
7613521
Compare
Signed-off-by: Outsider <[email protected]>
I updated v6.x on docs. |
Description of the Change
As Node.js announcement and Node.js release schedule, Node.js v4 is end of life April 30th.
Mocha can drop Node.js v4 support.
I checked "Breaking changes between v4 LTS and v6 LTS", but I didn't find anything to change in code level.
Alternate Designs
N/A
Why should this be in core?
It's minimum Node.js version.
Benefits
Mocha doesn't care issues with Node.js v4 anymore.
Possible Drawbacks
N/A
Applicable issues
close #3149