-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Not fully compatible with node 4 anymore #781
Comments
drop Node.js 4 support :) |
Not sure that's a great idea, yet. According to the last user survey from NodeJS Foundation found that most people were running version 4 in 2016. Probably that looks different today, but couldn't find anything from 2017. https://nodejs.org/static/documents/2016-survey-report.pdf || Also, version 4 is still actively in LTS and would be too soon to drop it. https://github.com/nodejs/LTS#lts-schedule The only thing I can spot (from a quick skim through it) in https://github.com/ethjs/ethjs-util that would make it incompatible is template strings, which should fairly easy to fix if we agree version 4 support is important. |
@victorbjelkholm that is not the only issue. It seems it relies on the new way of ascii and utf8 character code point handling, as some of the tests fail on the encoding methods on node@4. So it's more involved to make it work on node@4. Also template strings are available in node@4 |
@dignifiedquire thanks for clarifying, you're right. Did not run the tests myself but just read through quickly. Still, if enough people are still on version 4, it would be a bad idea to stop supporting it, even if it would take a bit of work. |
We've a couple of options in this case.
The first option would be the optimal, the second makes me sad, the third is something that was planned, but not 'now', we might reconsider next month during the gather. |
Given the comments above, I don't think it's likely Node 4 support will be merged. So I would suggest to remove eth support for the time being and discuss and decide how to move forward about Node 4 next month at the gathering. |
i think |
@dignifiedquire we are discussing this now - where can we find the test failures |
@kumavis I have a branch on my laptop but never pushed it, I can push probably in an hour or so. As far as I remember I just installed deps on node 4 and ran the test |
@kumavis https://github.com/dignifiedquire/ethjs-util/tree/node-4 this branch fails for me:
|
✅ |
While adding a
yarn.lock
file I discovered that a dependency we are using is actually only working on node 6: https://github.com/ethjs/ethjs-util. As specified in its engine field. I also checked and it actually fails its tests on node 4.The text was updated successfully, but these errors were encountered: