The constructor new Buffer is deprecated in modern versions of Node.js. We replaced these by Buffer.from and Buffer.alloc in secret-stack, but now we should do it here too. This PR also requires Node.js to be at least 5.10.0 (so does secret-stack already do that) in order to guarantee that we can use these Buffer factory functions.
The constructor
new Buffer
is deprecated in modern versions of Node.js. We replaced these byBuffer.from
andBuffer.alloc
in secret-stack, but now we should do it here too. This PR also requires Node.js to be at least5.10.0
(so does secret-stack already do that) in order to guarantee that we can use these Buffer factory functions.