You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The initialization of a Buffer via new Buffer() has been deprecated in node.js
Current situation
Buffers are initialized via new Buffer()
Should
Change to Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from()
Additional context
(node:60578) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
Describe the change
The initialization of a Buffer via
new Buffer()
has been deprecated in node.jsCurrent situation
Buffers are initialized via
new Buffer()
Should
Change to
Buffer.alloc()
,Buffer.allocUnsafe()
, orBuffer.from()
Additional context
(node:60578) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
See #236
The text was updated successfully, but these errors were encountered: