github gabriel-vasile/mimetype v1.4.10
v1.4.10 perfomance inprovements, tests and new formats

10 days ago

This release adds support for XHTML, Lotus-1-2-3, KML, shell scripts, VSDX, OneNote, CHM and Netpbm file formats.
Changes were made to make mimetype behave more file linux $ file --mime utility.

https://github.com/gabriel-vasile/mimetype_tests repo is now used for running comparisons between mimetype and $ file --mime. It contains 50 000 samples and mimetype identifies the same format as $ file --mime for ~97% of them. Results are in the Actions tab.

What's Changed

  • charset: remove dependency on x/net for parsing html in #669
  • CSV: replace stdlib reader with a parser that allocates less in #672
  • svg: make detection harder in #674
  • pdf: relax check to match file in #677
  • csv: stop mutating input byte slices; for #680 in #681
  • charset: remove dependency on mime in #684
  • mso_office: increase limit of checked entries from 4 to 100 in #685
  • jar: replace application/jar with application/java-archive in #686
  • Zip container improvements in #687
  • Jar first entry inside a zip in #688
  • svg+html: better handling for comments in #689
  • xhtml: add support in #690
  • misc: behave more like file in #691
  • lotus-1-2-3: add support in #695
  • Add support for zipped KML files by @dmlambea in #693
  • shell: add support by @scop in #694
  • ruby: add support by @scop in #700
  • python: associate with python2 and python3 shebangs by @scop in #699
  • vsdx: add support in #702
  • oneNote: add support in #703
  • chm: add support for Microsoft Compiled HTML Help in #704
  • Netpbm: add support by @kenshaw in #705

New Contributors

Full Changelog: v1.4.9...v1.4.10

Don't miss a new mimetype release

NewReleases is sending notifications on new releases.