Closed jblancogl closed 7 years ago
Think its need to use Buffer.from(). https://nodejs.org/api/buffer.html#buffer_buffer_from_buffer_alloc_and_buffer_allocunsafe
Hi @p0vidl0, you are right, but i don't want to break the backward compatibility. Buffer.from() appears from v6.0.0 but the project supports from v.0.10.0
@jblancogl Well we could always do a major version with this PR, and branch into <0.12 and >4.0.0 and maintain both branches.
We've got to make the change sometime!
DeprecationWarning: Using Buffer without
new
will soon stop working. Usenew Buffer()
, or preferablyBuffer.from()
,Buffer.allocUnsafe()
orBuffer.alloc()
instead.