-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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 4 support (and Node 6 and Node 8) #3919
Comments
Already discussed: #3503 (comment) |
I still think we should do this, although we might want to give people a little time to migrate away from the soon-to-be-insecure Node 4. On the other hand, since Prettier doesn’t go into production code (unless I’m missing something), we could move on and say that people who need Node 4 support can just use an older version of Prettier with Node 4 support until they can migrate. |
I agree, some parsers can require minimum nodejs |
I think we can "oficially" drop support for node 4, but not necessarily we have to make it stop working for node 4. |
How about switching Travis to 6/node instead of 4/node? |
|
Thanks for pointing that out @TrySound! Fixed. |
@j-f1 Actually I was thinking about still running node 4 tests, but maybe installing the dependencies with |
A concern is that libs using Prettier still support Node 4, and they'll be running Prettier in their CI on Node 4. |
Maybe this users should just use current major instead of the next one? |
I don't think it's safe to drop node 4 support without bumping to 2.0. |
That sounds reasonable. Then we could transpile for npm, but only have the src in the git repo. Great solution |
I don't even mean transpiling our own code, just our dependencies (so we'd still use node 4 supported syntax). If users want to install directly from the repo they can use the "ignore engine" yarn feature (or npm if they have that too) - if the dependency still works. |
Babel has already dropped Node 4 support so we'll have to do something because we'll eventually need to upgrade babylon |
I am looking forward to this idea, which would need to be done in a major release such as 2.0 (#3503). I find it really |
@brodybits why is it ugly? I believe our current solution works fine |
Let me rephrase it to "cryptic (non-obvious)" then (I already updated my comment). I am looking forward to the new release, with no Node.js 4 support baggage. A side point is that Node.js 6 maintenance will end pretty soon, as I reported in #5711. |
We’ll probably drop Node 6 support when Node does, but not for the production version. |
I believe the majority of our users won't even know (or care) that we have different configurations. I'm obviously biased but I don't see any downsides in doing that (or benefits removing it). I don't have any data on Node 4 usage, but if it's not too much trouble to continue supporting it for the near future, I don't see a problem with it EDIT: there are a few problems, like updating libs (like Jest) but we were able to workaround them. |
@fisker We have explained this numerous times already but here it is:
@fisker Why not? |
get-stream@5.1.0 was one; I thought there were some others. I would have to check again. Outdated dependencies can miss security updates and other bug fixes. Outdated dependencies can also be harder to update in the future.
I would personally favor we support this functionality for recent Node.js versions only. |
Agree, last time when I try to upgrade |
why not fork, change, build, install from bundle? this is what I would do, if I want to change something |
@brodybits Maybe, but practically that hasn't happened. All the "security updates" GitHub warned so far didn't affect us at all. Specially since this project is just a formatter.
@brodybits There may be people running a forked Prettier in CI's with old Node.js versions.
@fisker Was it necessary to update rollup though? Did we have any benefits from upgrading it?
@fisker How to install from bundle? Where will you keep this bundle? |
@duailibe some parsers can drop support node@4 and it will be problem for us |
@fisker Forgot about that 👍 The comment is valid for everything else @evilebottnawi There are some dependencies that have dropped support and that doesn't affect us because we transpile everything. And I'll repeat:
I'll release 1.19 soon and then start the necessary changes for 2.0. |
@duailibe You dropped Node 4 support for installing Prettier directly from GitHub. Do you think it would be reasonable to also drop Node 6 support for direct-from-GitHub installs? |
I really hope we can start targeting the new major release and update the dependencies soon. Supporting the old Node.js versions seems to divert attention and resources away from highly desired updates and bug fixes. P.S. I am taking back my comment about the breaking change since install from GitHub is an undocumented feature (typescript-eslint/typescript-eslint#1108 (comment)). But my comment about supporting old Node.js versions continues to stand. |
The official support for Node 4 is ending soon (April 2018) and from time to time we have quite a few issues like #3875 with the failed automated tests.
What can possibly go wrong?!
(It was also discussed in the #3503, but I'm not sure how far we are with that one)
The text was updated successfully, but these errors were encountered: