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

Unpin mime and update to v4 or latest #301

Open
ankittrehan2000 opened this issue Jan 2, 2024 · 0 comments
Open

Unpin mime and update to v4 or latest #301

ankittrehan2000 opened this issue Jan 2, 2024 · 0 comments

Comments

@ankittrehan2000
Copy link
Contributor

Currently mime remains stuck on v3 since it requires us to use ESM imports. Once we have this repository able to support ESM imports we should update mime to v4 or latest

From their docs:

Note

mime@4 is now latest. If you're upgrading from mime@3, note the following:

mime@4 is API-compatible with mime@3, with one two exceptions:
Direct imports of mime properties https://github.com/broofa/mime/issues/295
mime.define() cannot be called on the default mime object
ESM module support is required. [ESM Module FAQ](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).
Requires an [ES2020](https://caniuse.com/?search=es2020) or newer runtime
Built-in Typescript types (@types/mime no longer needed)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant