TheThingsArchive / node-app-sdk

The Things Network Application SDK for Node.JS
https://www.thethingsnetwork.org/docs/node-js/
MIT License
41 stars 28 forks source link

DeprecationWarning on Buffer() #85

Closed mariusvw closed 3 years ago

mariusvw commented 6 years ago

After upgrading to NodeJS 10.1 when receiving a message I get the following warning.

Currently it does not break anything yet.

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

Probably related to this https://github.com/yarnpkg/yarn/issues/5477

wachunei commented 6 years ago

Yarn 1.7.0 solves this. https://github.com/yarnpkg/yarn/issues/5477#issuecomment-391504801