Closed DanTup closed 3 years ago
The old Buffer(x) API is deprecated and produces a warning. The equivalent new API is Buffer.alloc (strictly for non-zero lengths Buffer.allocUnsafe is the same, but probably not what most people should use).
Buffer(x)
Buffer.alloc
Buffer.allocUnsafe
https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/#variant-1
Fixes #217.
It's spooky merging pull requests during Github degradations. I merged this in a6e889c18abad6ca8b0a517ececb631add4b39f8
The old
Buffer(x)
API is deprecated and produces a warning. The equivalent new API isBuffer.alloc
(strictly for non-zero lengthsBuffer.allocUnsafe
is the same, but probably not what most people should use).https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/#variant-1
Fixes #217.