DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
The new Buffer() constructor is replaced with Buffer.from() to fix the deprecation warning.
Coverage remained the same at 99.034% when pulling 3fb6bc71ad4a259d0c6e1f99139a76b3a363a457 on PeasOfMind:update-buffer-construction into fc59a73cc3eefea28a0f726c02a6325e4932254c on jonkemp:master.
Coverage remained the same at 99.034% when pulling 3fb6bc71ad4a259d0c6e1f99139a76b3a363a457 on PeasOfMind:update-buffer-construction into fc59a73cc3eefea28a0f726c02a6325e4932254c on jonkemp:master.
Running
npm test
generates the following warning:The
new Buffer()
constructor is replaced withBuffer.from()
to fix the deprecation warning.See here for more info: https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/