denoland / deno_std

The Deno Standard Library
https://jsr.io/@std
MIT License
2.83k stars 581 forks source link

media_types: incorrect mime for javascript - does not match mime-db #5186

Closed FergoTheGreat closed 1 day ago

FergoTheGreat commented 4 days ago

The documentation for media_type claims the mime database comes from mime-db v1.52, yet in deno ".mjs" and ".js" map to "application/javascript" where as in the actual mime-db v1.52 db.json it appears that they map to the correct "text/javascript".

0f-0b commented 4 days ago

The database does come from mime-db v1.52.0, but there have been many unreleased changes since, including a fix for this issue.