-
-
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
Update glob for node 6 compatibility #2234
Conversation
This also removes a |
Thanks! It'll have to wait – cannot bump in mocha v2 for the same reason we cannot bump jade: #2200 (comment). |
I admire that you strictly respect semver and still support node 0.8.x users, even though it's not even maintained by the node team. However, mocha is also very important on the cutting edge part of the node ecosystem. To help adoption of Node 6, and also reduce potential for breakage for those upgrading to Node 6, and reduce pressure on you releasing a new major release, could you release just that small change as mocha 3.0.0 (bumping version just to satisfy semver for node 0.8 users), and rename the currently planned v3.0.0 to v4.0.0? |
@pornel I was actually thinking of doing something like that, or maybe What do you peps think, @mochajs/mocha? |
Try That said, as a user I'm all for having an early copy of the next "major" version though (which should be able to resolve the Jade warning among other things; updating to the latest version of all dependencies if possible might be a good idea at that point), if it isn't too much trouble to maintain both that and the current 2.x.y release line until the Mocha team is ready to switch over fully. |
@ScottFreeCode Seems to be correct that Node.js v6.x is not broken when installing from Installing from This leads me to believe we could release If I can confirm cc @mochajs/mocha |
Going to close this PR if that is the case; if that is the case, the problem has already been solved. |
Can anyone confirm a case where Mocha breaks under Node.js v6? Our test suite passes with Node.js 6. I'm having trouble understanding the trail of issues, discussion and code surrounding the deprecation of old See isaacs/node-graceful-fs#58 prompting the deprecation warning, and the linked issue in nodejs/node#5213. Hopefully one of @isaacs @ChALkeR @jasnell or @thealphanerd can help distill the conversation around those issues...? Thank you, if you can. |
@boneskull The deprecation warning upon installation in graceful-fs isn't very precise — it still works with Node.js 6 due to a temporary fix that was landed on Node.js side just for that, see nodejs/node#5102. That temporary work-around is going to be reverted in Node.js 7.0 (refs: nodejs/node#5213, nodejs/node#6413). Note that the fix also prints a warning in runtime, from Node.js side, and that warning is printed only in those situations that will throw in 7.0. |
I opened isaacs/node-graceful-fs#64 in regards to the deprecation message. Update: the deprecation message in graceful-fs was fixed. |
@ChALkeR Thanks for the explanation. I can confirm the warning is now fixed. |
To summarize for interested parties:
|
(warnings can be hidden during |
Related #2262 |
Older version of glob uses a version of graceful-fs, which is deprecated and incompatible with node v6.