Skip to content

Upgrading mime 1 to 2

Breaking1.0.6 → 2.1.0Breaking3New1Changed55

BreakingUpgrade verdict

3 breaking changes.

  • Three font file types now use new names, so code looking up the old names will no longer find them.
  • The model/vnd.mts file type is no longer recognized.
  • If you ask for a file extension for a MIME type the package does not recognize, you now get nothing back instead of getting the MIME type string itself.
3 items need code or config changes
Breaking3
Renames application/x-font-otf, application/x-font-ttf and application/x-font-woff to font/otf, font/ttf and font/woff.
application/x-font-otffont/otfapplication/x-font-ttffont/ttfapplication/x-font-wofffont/woff
Removes the model/vnd.mts mime type.
model/vnd.mts
extensionFromMime(String mimeType) returns null instead of mimeType for an unknown mime type.
extensionFromMime