cloudhead / node-static

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

bugfix: node-mime 2.0.0 has breaking changes on apis #197

Closed hoperyy closed 7 years ago

hoperyy commented 7 years ago

FYI: https://github.com/broofa/node-mime/blob/master/README.md

Version 2 is a breaking change from 1.x, as the semver implies. Specifically:

ES6 support required (requires Node 6+)
lookup() renamed to getType()
extension() renamed to getExtension()
charset() and load() methods have been removed
gedefran commented 7 years ago

Hi @cloudhead, do you have a timeline to merge this and publish a new npm module? Also would you consider adding a step to npm shrinkwrap before publishing to npm?

cloudhead commented 7 years ago

Thanks!

hoperyy commented 7 years ago

@cloudhead Thanks too for your tools