Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use arrow function introduced in 2.4.1 #225

Merged
merged 1 commit into from Apr 7, 2019
Merged

Don't use arrow function introduced in 2.4.1 #225

merged 1 commit into from Apr 7, 2019

Conversation

vladholubiev
Copy link
Contributor

@vladholubiev vladholubiev commented Apr 5, 2019

There is ES6 syntax introduced in the latest release 2.4.1. Meanwhile the whole package is written in ES5 (var instead of const, etc).

Introducing this tiny use of arrow function renders usage of this module in browsers like IE11 impossible.

I hope it's not a big deal to stick with older syntax to remain consistent with code style and browser/node support

See #221 (comment)

If you have an issue with a specific extension or type

Locate the definition for your extension/type in the db.json file in the mime-db project. Does it look right?

There is ES6 syntax introduced in the latest release 2.4.1. Meanwhile the whole package is written in ES5 (`var` instead of `const`, etc).

Introducing this tiny use of arrow function renders usage of this module in browsers like IE11 impossible.

I hope it's not a big deal to stick with older syntax to remain consistent with code style and browser/node support
@broofa broofa merged commit 4d59d76 into broofa:master Apr 7, 2019
@broofa
Copy link
Owner

broofa commented Apr 7, 2019

Whups, my bad! 'Been writing ES6 almost exclusively for over a year now and muscle memory took over. Thanks for the catch and fix.

Published in 2.4.2

@vladholubiev vladholubiev deleted the patch-1 branch April 8, 2019 08:24
@vladholubiev
Copy link
Contributor Author

Thanks @broofa for a prompt release!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants