- code now uses
standard
as linter var
has been replaced withconst
andlet
- code now executed in strict mode
- Buffers are now required to be passed as arguments. In 1.x,
the arguments were assumed to be strings, and were always run through
String()
. - Starting with Node.js v6.6.0, use
crypto.timingSafeEqual()
(if available).