Closed ChALkeR closed 6 years ago
safe-buffer is already used and provides Buffer.from polyfill, so just use Buffer.from directly to avoid hitting deprecated API.
safe-buffer
Buffer.from
Refs: https://nodejs.org/api/deprecations.html#deprecations_dep0005_buffer_constructor
Tracking: https://github.com/nodejs/node/issues/19079
This was overlooked in c9312bd24d08271687d76da0fe3c83493871cf61.
/cc @mcollina
Thanks, released!
safe-buffer
is already used and providesBuffer.from
polyfill, so just useBuffer.from
directly to avoid hitting deprecated API.Refs: https://nodejs.org/api/deprecations.html#deprecations_dep0005_buffer_constructor
Tracking: https://github.com/nodejs/node/issues/19079
This was overlooked in c9312bd24d08271687d76da0fe3c83493871cf61.
/cc @mcollina