mafintosh / torrent-stream

The low level streaming torrent engine that peerflix uses
MIT License
1.94k stars 227 forks source link

Deprecation warning for 7.x with Buffer #175

Closed sam3d closed 7 years ago

sam3d commented 7 years ago

Node 7.x doesn't have support for using Buffer without the new keyword:

(node:72942) DeprecationWarning: Using Buffer without `new` will soon stop working. Use `new Buffer()`, or preferably `Buffer.from()`, `Buffer.allocUnsafe()` or `Buffer.alloc()` instead.

After running a deprecation stack trace I found the source of this problem was with the random-access-file package. I've submitted an upstream PR to fix this warning, but I just wanted to put down that this is the cause.