Closed silverwind closed 8 years ago
Replaced all instances of Buffer(num) with Buffer.allocUnsafe(num) and all other instances with Buffer.from(arg). This fixes deprecation warnings introduced in Node.js 7.0 and bumps the required Node.js version to 4.0.
Buffer(num)
Buffer.allocUnsafe(num)
Buffer.from(arg)
bumps the required Node.js version to 4.0.
Would be better to use safe-buffer
safe-buffer
What @ReklatsMasters said. Otherwise LGTM.
Added safe-buffer and reinstated 0.10 compatibilty.
👍
1.1.1
Replaced all instances of
Buffer(num)
withBuffer.allocUnsafe(num)
and all other instances withBuffer.from(arg)
. This fixes deprecation warnings introduced in Node.js 7.0 and bumps the required Node.js version to 4.0.