-
Notifications
You must be signed in to change notification settings - Fork 237
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
switch from new Buffer() to Buffer.from() #259
Conversation
Nice, thanks! I think we'd need to update the package.json definition to declare that from now on, Needle requires at least Node v4.4.x (that's when I believe |
https://nodejs.org/api/buffer.html#buffer_class_method_buffer_from_string_encoding from: 5.10.0 is that OK? |
updated package.json |
That's weird, according to earlier docs it was added in 3.0.0? https://nodejs.org/docs/v4.5.0/api/buffer.html#buffer_class_method_buffer_from_array |
that is Buffer.from(array); we will need Buffer.from(string, encoding?) |
Sorry, wrong link. I meant https://nodejs.org/docs/v4.5.0/api/buffer.html#buffer_class_method_buffer_from_str_encoding |
huh, weird! i can update the PR to reflect this. thanks! |
avoids deprecation failures in nodejs 10 Fixes tomas#256
done. it's sad i guess that we have to drop support for older releases, but the alternative is failures on node 10 :( |
When do you guys plan to merge this PR? |
Next week! :) |
Hi, any chance we get a new release including this merge? |
Yes! Sorry, I've been a bit super busy with other stuff lately. |
Done! Just published 2.3.0 |
avoids deprecation failures in nodejs 10
Fixes #256