MariusRumpf / node-lifx

Node.js implementation of the LIFX LAN protocol :bulb:
MIT License
144 stars 28 forks source link

Using Buffer is deprecated #72

Open Sawtaytoes opened 5 years ago

Sawtaytoes commented 5 years ago

In newer versions of Node.js, using new Buffer is now deprecated. https://nodejs.org/en/docs/guides/buffer-constructor-deprecation/

Instead, you should use new Buffer.alloc(size) or new Buffer.from('c469ea095c6adf13', 'hex'). Changing it might cause compatibility issues in older versions of Node.js though. You can always write around it, but you could also upgrade the minimum version.