awslabs / aws-crt-nodejs

NodeJS bindings for the AWS Common Runtime.
Apache License 2.0
38 stars 24 forks source link

Buffer constructor is deprecated (node) #429

Closed jaas666 closed 1 year ago

jaas666 commented 1 year ago

The use of the Buffer constructor is deprecated in versions of Node > 4, but it's still used here in this package.

Using certain parts of this package emits this warning:

[DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

bretambrose commented 1 year ago

This has been addressed in v1.15.10