lichen-community-systems / Flocking

Flocking - Creative audio synthesis for the Web
GNU General Public License v2.0
692 stars 60 forks source link

nodejs: s/new Buffer\(/Buffer.alloc\( #255

Closed MylesBorins closed 5 years ago

MylesBorins commented 5 years ago

The new Buffer() pattern has been deprecated in Node.js for security reasons. Buffer.alloc is backported as far back as 4.x, which is currently EOL.

This gets rid of a pesky deprecation warning too 😇

colinbdclark commented 5 years ago

Node.js support has been removed from Flocking with #258, so this PR is now no longer needed. Thanks for the fix, @MylesBorins!