Skip to content

[Deps] update mime-types #581

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

sroucheray
Copy link

Update mime-types to support latest transient dependency mime-db which includes some newer mime types like mjs for text/javascript

@ljharb
Copy link
Member

ljharb commented Jul 29, 2025

This would be a breaking change. Unfortunately mime-types v3 did not update their engines declaration when dropping compat for older node versions.

@ljharb ljharb marked this pull request as draft July 29, 2025 18:22
@sroucheray
Copy link
Author

Hi @ljharb , what would be the right path for form-data to benefit from the newest mime types then ? Is there an action I can take ?

@ljharb
Copy link
Member

ljharb commented Jul 29, 2025

Unfortunately the best approach there would be for mime-types v2 to backport those changes, or for v3 to restore engines.node support.

@sroucheray
Copy link
Author

Tell me if I am wrong but as I can see it, the engines.node has been updated 8 days ago. Long after my PR. mime-type did not even produce a new version since this change. So maybe a solution would be to pin your dependency to mime-type to "3.0.1", removing the caret.

What do you think ?

(NB: I check stuff on my mobile from holidays, so it's not handy and I may have missed something, sorry if that's the case)

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.

3 participants