Mimetype Versions Save

A fast Golang library for media type and file extension detection, based on magic numbers

v1.4.3

7 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/gabriel-vasile/mimetype/compare/v1.4.2...v1.4.3

v1.4.2

1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/gabriel-vasile/mimetype/compare/v1.4.1...v1.4.2

v1.4.2-rc1

1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/gabriel-vasile/mimetype/compare/v1.4.1...v1.4.2-rc1

v1.4.1

1 year ago

What's Changed

Security fixes

New detected formats

Bug fixes

New Contributors

Full Changelog: https://github.com/gabriel-vasile/mimetype/compare/v1.4.0...v1.4.1

v1.4.1-rc1

2 years ago

New Detected Formats

.png, image/vnd.mozilla.apng .ttc, font/collection .avif, image/avif .srt, application/x-subrip, alias: application/x-srt, text/x-srt .vtt, text/vtt

What's Changed

New Contributors

Full Changelog: https://github.com/gabriel-vasile/mimetype/compare/v1.4.0...v1.4.1-rc1

v1.4.0

2 years ago

Features:

  • support for 3 new formats: .msi, .har, .jxl; #182, #174, #154
  • possibility to Extend individual MIME nodes #158

Fixes:

  • exclude weird control characters from valid UTF8 #186
  • rename x-sqlite3 to vnd.sqlite3 #170
  • single JSON value are no longer detected as JSON #175
  • fix vint-width parsing in matroska #185

Thank you for your contributions @ne1llee, @waybackarchiver, @jonsneyers, @sigma, @anthonyfok, @dennisstritzke, @IevgenLuzan, @Kycklingar.

v1.3.1

2 years ago

v1.2.0 introduced a change where error EOF was returned for empty readers. Previously, text/plain would be returned for such an input.

v1.3.1 comes back to the pre-v1.2.0 behavior.

v1.3.0

3 years ago

Add Extend function. It allows users to detect other file formats not detected by mimetype. See example for usage.

New supported formats:

  • .lnk application/x-ms-shortcut
  • .xpm image/x-xpixmap

Fixes:

  • #152 Check for zip header in chrome extensions
  • #145 Add support for other text encodings/charsets

v1.2.0

3 years ago

Add SetLimit function. It lets users set the length of the header mimetype reads from the input. Longer headers give better detection results for file formats that keep their magic numbers towards the end of the file.

New supported formats:

  • OWL application/owl+xml
  • SXC application/vnd.sun.xml.calc
  • HDR image/vnd.radiance
  • ODC application/x-vnd.oasis.opendocument.chart
  • GLB model/gltf-binary

v1.1.2

3 years ago

Add support for:

  • Adobe FDF
  • Adobe XFDF
  • P7S
  • M3U
  • CPIO
  • TZIF
  • Outlook MSG
  • GIMP XCF
  • GIMP PAT
  • GIMP GBR