noble / bleno

A Node.js module for implementing BLE (Bluetooth Low Energy) peripherals
MIT License
2.12k stars 447 forks source link

Replace Buffer constructor #409

Open gabrielschulhof opened 6 years ago

gabrielschulhof commented 6 years ago

new Buffer(...) is deprecated and unsafe. Could it be replaced with Buffer.from(...) in these places?

rzr commented 5 years ago

Any feedback from upstream ?

If it helps I am considering to pick this change in forked project: https://github.com/abandonware/bleno/

Relate-to: https://github.com/noble/bleno/pull/410