-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Quick-fix for stdin being broken in 1.19.0 #6894
Conversation
Closes #6891. This downgrades the get-stream package from 5.x to 4.x, which does not use `async` functions which works around the problem of `regeneratorRuntime` not being defined (it shouldn’t be needed). This is an alternative solution to #6893 because I don’t know yet if we want to enable `corejs` given that we will most likely drop support for Node.js 8 and older in the next version. Just like #6893 this PR comes without tests, but I verified locally that `--stdin` works after this change.
Do you want me send a pr transform async to promies? I can do that |
I'm thinking differently, instead of removing things, we should let babel(mostly corejs) to take care of any syntax problem. Yes, we drop old version of node support, but node 10 will be old someday, we don't want start adding thing again. |
Let’s take that decision when Node.js 10 is old (in a year or so). |
Are we going to remove babel, when we start 2.0? |
I don’t know yet. |
Sorry, I don’t understand what you mean. |
please reopen #6866, we can discuss there |
* 'master' of github.com:prettier/prettier: (31 commits) Bump jest-watch-typeahead from 0.4.0 to 0.4.2 (#6923) Bump unified from 8.4.1 to 8.4.2 (#6927) refactoring: Babel's error recovery superseded option combinations (#6930) Update `fsevents` in yarn.lock (#6909) Run CI on the `next` branch Fix bin permissions (#6902) Add missing headings to changelog Fix code block in changelog Bump Prettier dependency to 1.19.1 Release 1.19.1 Quick-fix for stdin being broken in 1.19.0 (#6894) Fix `since` version for `vueIndentScriptAndStyle` (#6897) Remove out-of-date comment fix formatting of union type as arrow function return type (#6896) Try to fix some code blocks in 1.19.0 blog post Blog post, changelog and docs for 1.19 (#6787) Bump Prettier dependency to 1.19.0 Release 1.19.0 prettier 1.19.0-beta.1 deduplicate entries in yarn.lock - part 2 (#6884) ...
Closes #6891.
This downgrades the get-stream package from 5.x to 4.x, which does not
use
async
functions which works around the problem ofregeneratorRuntime
not being defined (it shouldn’t be needed).This is an alternative solution to #6893 because I don’t know yet if we
want to enable
corejs
given that we will most likely drop support forNode.js 8 and older in the next version.
Just like #6893 this PR comes without tests, but I verified locally that
--stdin
works after this change./cc @fisker @evilebottnawi