spotify-web-api-node
spotify-web-api-node copied to clipboard
Deprecation Warning use new Buffer() → Buffer.from()
When using for e.g. spotifyApi.refreshAccessToken(); (which uses new Buffer()):
(node:79216) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
From what I found here this will however drop support for Node.js ≤ 5.9.x.