Skip to content

[Deps] update mime-types - #581

Draft
sroucheray wants to merge 1 commit into
form-data:masterfrom
PerfectMemory:master
Draft

sroucheray wants to merge 1 commit into
form-data:masterfrom
PerfectMemory:master

Conversation

@sroucheray

Copy link
Copy Markdown

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

@ljharb

ljharb commented Jul 29, 2025

Copy link
Copy Markdown
Member

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
Copy Markdown
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

ljharb commented Jul 29, 2025

Copy link
Copy Markdown
Member

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
Copy Markdown
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