neumino / rethinkdbdash

An advanced Node.js driver for RethinkDB with a connection pool, support for streams etc.
MIT License
848 stars 109 forks source link

Fix Buffer DeprecationWarning in Node 7 #307

Closed abalabahaha closed 7 years ago

abalabahaha commented 7 years ago

Just a basic fix for #304. Without this, Node >=7.0.0 prints the following warning to console:

(node:9443) DeprecationWarning: Using Buffer without `new` will soon stop working. Use `new Buffer()`, or preferably `Buffer.from()`, `Buffer.allocUnsafe()` or `Buffer.alloc()` instead.
neumino commented 7 years ago

Err sorry just saw that. I submitted the same fix a few hours ago :) Thanks!