-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
fix: Removes usage of deprecated Buffer constructor. (#5477) #5731
Conversation
Please merge. Node 10 is released and I keep seeing warning like:
|
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 a ton for doing this!
@@ -767,8 +767,8 @@ export function normalizeOS(body: string): string { | |||
return body.replace(/\r\n/g, '\n'); | |||
} | |||
|
|||
const cr = new Buffer('\r', 'utf8')[0]; |
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.
lol
Thanks! As a workaround before the next release of Yarn, I've created a
|
Has this been release? If not then when is the next planned release? |
Great work on having this out of the way. Any news on a release with the fix? Hit pretty hard, and as more people update their npm the cats will rain harder. |
@tusharmath @samtheson you can follow #5769 for the final Node 10 fix. We'll release a new version as soon as we merge that. |
Summary
Fixes #5477 and #5704.
Remove usager of deprecated
Buffer
constructor to avoid ugly warnings on Node 10.Test plan
Existing test should pass.