scottcorgan / pushstate-server

Static file server that works with HTML5 Pushstate.
421 stars 35 forks source link

DeprecationWarning: Using Buffer without `new` will soon stop working #47

Open tproenca opened 7 years ago

tproenca commented 7 years ago

Hi,

When using with node 7.1.0, I'm getting the following warning:

Listening on port 9000 (http://localhost:9000)
(node:1) DeprecationWarning: Using Buffer without `new` will soon stop working. Use `new Buffer()`, or preferably `Buffer.from()`, `Buffer.allocUnsafe()` or `Buffer.alloc()` instead.
scottcorgan commented 7 years ago

It looks like it's one of the the dependencies (not sure which one yet). Do you have any kind of stack trace?

WuglyakBolgoink commented 6 years ago

image use anyone node7?)

Trott commented 6 years ago

The deprecation warning appeared in Node.js 7.0.0 and was reverted a few releases later. Node.js 7 is no longer supported (by Node.js) and is not receiving security updates like the currently-supported versions. This issue can likely be closed.