The use of Buffer() was deprecated, the API used in this PR dates from Node version 5, and we require Node version 8+ for this SDK. So it is a safe replacement.
Coverage remained the same at 84.605% when pulling 36342dc222ac208bf9d5b3af708e8a4e2734e399 on fix-buffer into 0e649dabcacd7b97313de69d87e8415a0c528ab6 on master.
See: https://nodejs.org/api/deprecations.html#deprecations_dep0005_buffer_constructor
The use of
Buffer()
was deprecated, the API used in this PR dates from Node version 5, and we require Node version 8+ for this SDK. So it is a safe replacement.