Mrmime Versions Save

A tiny (2.8kB) and fast utility for getting a MIME type from an extension or filename

v2.0.0

4 months ago

Breaking

  • Change lookup return signature from string | void to string | undefined (#5): 3218148, 743d85b Thank you @willstott101

  • Upgrade mime-db version, which changes some extensions' values (#8): 30fb901 See here for visual diff

    Removed:

    • es

    Changed

    • asc :: application/pgp-signature => application/pgp-keys
    • js :: application/javascript => text/javascript
    • mjs :: application/javascript => text/javascript
    • rtf :: application/rtf => text/rtf
    • xml :: application/xml => text/xml

    Added

    • several... see diff :)

Chores

  • Convert source to TypeScript: b76d07e, a5d7a5b
  • Alphasort mimes keys on build: f071512
  • Simplify pnpm in CI: 50c135b

Full Changelog: https://github.com/lukeed/mrmime/compare/v1.0.1...v2.0.0

v1.0.1

1 year ago

Patches

  • Add "types" export condition (#6, #7): 0f0e3f6 Makes the TS definitions discoverable by TypeScript 4.7 Thank you @PaperStrike~!

Full Changelog: https://github.com/lukeed/mrmime/compare/v1.0.0...v1.0.1