chore: Don't use the deprecated Buffer constructor#979
chore: Don't use the deprecated Buffer constructor#979honzajavorek merged 1 commit intoapiaryio:masterfrom
Conversation
|
Uh-oh. Without this patch, |
|
@ChALkeR Only if |
|
@honzajavorek The tests on Node 8 failed. Could you restart that job? |
|
@realityking Just did :) |
Can we just always coerce it to a string in the configuration? |
That'd be possible. Behaviour with the patch as it is would be to throw the error |
🚀 Why this change?
The
Bufferconstructor is deprecated (it will likely start throwing warnings in Node.js 10), insteadBuffer.{from|alloc|allocUnsafe}should be used.Discussion of the API change: https://medium.com/@jasnell/node-js-buffer-api-changes-3c21f1048f97
Runtime deprecation planning: nodejs/node#19079
📝 Related issues and Pull Requests
This is also preparation for #975.
✅ What didn't I forget?
npm run lint