cloudhead / node-static

rfc 2616 compliant HTTP static-file server module, with built-in caching.
MIT License
2.17k stars 245 forks source link

Latest version of mime module requires ES6 support #195

Closed gouldingken closed 7 years ago

gouldingken commented 7 years ago

The latest version of the "mime" module requires ES6 support (just released 9/12/2017).

The simplest solution to continue to allow broad Node.js support would be to update package.json to use more specific versioning (currently just > "mime": ">=1.2.9").

I guess 1.x.x would do the trick and prevent these kinds of breaking changes.

cpsubrian commented 7 years ago

Also, there are breaking changes in the 2.0.0 API.

jishi commented 7 years ago

Installing mime@1.4.0 manually in my own project pegged node-static to use the same version (because of the range) which is a workaround for now at least.

fmalk commented 7 years ago

I had to peg mine at 1.3.6

cloudhead commented 7 years ago

Fixed & published.