mime 2.1.0
mime: ^2.1.0 copied to clipboard
Utilities for handling media (MIME) types, including determining a type from a file extension and file contents.
2.1.0 #
- Switched to using the Apache httpd mime.conf table as the source of truth for mime types.
Mime type additions:
application/vnd.geogebra.slidesfont/collectionimage/jxlimage/vnd.dvb.subtitlevideo/mp2t
Renamed mime types:
application/x-font-otf=>font/otfapplication/x-font-ttf=>font/ttfapplication/x-font-woff=>font/woff
Removed mime types:
model/vnd.mts
Mime types where the default file extension changed:
application/inkml+xml,inkml=>inkapplication/octet-stream,so=>binapplication/onenote,onetoc2=>onetocapplication/pgp-signature,sig=>ascapplication/tei+xml,teicorpus=>teiapplication/vnd.adobe.fxp,fxpl=>fxpapplication/vnd.clonk.c4group,c4u=>c4gapplication/vnd.dece.data,uvvf=>uvfapplication/vnd.dece.ttml+xml,uvvt=>uvtapplication/vnd.eszigno3+xml,et3=>es3application/vnd.framemaker,maker=>fmapplication/vnd.geometry-explorer,gre=>gexapplication/vnd.grafeq,gqs=>gqfapplication/vnd.ibm.modcap,listafp=>afpapplication/vnd.iccprofile,icm=>iccapplication/vnd.intercon.formnet,xpx=>xpwapplication/vnd.kde.kpresenter,kpt=>kprapplication/vnd.kde.kword,kwt=>kwdapplication/vnd.kinar,knp=>kneapplication/vnd.koan,skt=>skpapplication/vnd.ms-project,mpt=>mppapplication/vnd.palm,pqa=>pdbapplication/vnd.quark.quarkxpress,qxt=>qxdapplication/vnd.simtech-mindmapper,twds=>twdapplication/vnd.stardivision.writer,vor=>sdwapplication/vnd.sus-calendar,susp=>susapplication/vnd.symbian.install,sisx=>sisapplication/vnd.ufdl,ufdl=>ufdapplication/vnd.visio,vsw=>vsdapplication/vnd.zul,zirz=>zirapplication/x-authorware-bin,x32=>aabapplication/x-blorb,blorb=>blbapplication/x-cbr,cbz=>cbrapplication/x-director,w3d=>dirapplication/x-font-type1,pfm=>pfaapplication/x-msdownload,msi=>exeapplication/x-pkcs12,pfx=>p12application/x-pkcs7-certificates,spc=>p7bapplication/x-zmachine,z8=>z1application/xv+xml,xvml=>mxmlaudio/basic, snd =>auaudio/mpeg, mpga =>mp3audio/vnd.dece.audio,uvva=>uvaimage/tiff,tif=>tiffimage/vnd.dece.graphic,uvvi=>uviimage/x-freehand,fhc=>fhmessage/rfc822,mime=>emlmodel/mesh,silo=>mshmodel/x3d+binary,x3dbz=>x3dbmodel/x3d+vrml,x3dvz=>x3dvmodel/x3d+xml,x3dz=>x3dtext/troff,tr=>ttext/uri-list,urls=>uritext/x-fortran,for=>fvideo/mj2,mjp2=>mj2video/vnd.dece.hd,uvvh=>uvhvideo/vnd.dece.mobile,uvvm=>uvmvideo/vnd.dece.pd,uvvp=>uvpvideo/vnd.dece.sd,uvvs=>uvsvideo/vnd.dece.video,uvvv=>uvvvideo/vnd.uvvu.mp4,uvvu=>uvuvideo/x-ms-asf,asx=>asf
2.0.0 #
- [Breaking]
extensionFromMime(String mimeType)returnsnullinstead ofmimeTypefor an unknown mime type. - Update
extensionFromMimeto return a default extension when a MIME type maps to multiple extensions.
1.0.6 #
- Add
topicssection topubspec.yaml. - Move to
dart-lang/toolsmonorepo.
1.0.5 #
- Update
video/mp4mimeType lookup by header bytes. - Add
image/heicmimeType lookup by header bytes. - Add
image/heifmimeType lookup by header bytes. - Add m4b mimeType lookup by extension.
- Add
text/markdownmimeType lookup by extension. - Require Dart 3.2.0.
1.0.4 #
- Changed
.jstotext/javascriptper https://datatracker.ietf.org/doc/html/rfc9239. - Added
.mjsastext/javascript. - Add
application/dicommimeType lookup by extension. - Require Dart 2.18.
1.0.3 #
- Add application/manifest+json lookup by extension.
- Add application/toml mimeType lookup by extension.
- Add audio/aac mimeType lookup by header bytes.
- Add audio/mpeg mimeType lookup by header bytes.
- Add audio/ogg mimeType lookup by header bytes.
- Add audio/weba mimeType lookup by header bytes.
- Add font/woff2 lookup by extension and header bytes.
- Add image/avif mimeType lookup by extension.
- Add image/heic mimeType lookup by extension.
- Add image/heif mimeType lookup by extension.
- Change audio/x-aac to audio/aac when detected by extension.
1.0.2 #
- Add audio/x-aiff mimeType lookup by header bytes.
- Add audio/x-flac mimeType lookup by header bytes.
- Add audio/x-wav mimeType lookup by header bytes.
- Add audio/mp4 mimeType lookup by file path.
1.0.1 #
- Add image/webp mimeType lookup by header bytes.
1.0.0 #
- Stable null safety release.
1.0.0-nullsafety.0 #
- Update to null safety.
0.9.7 #
- Add
extensionFromMimeutility function.
0.9.6+3 #
- Change the mime type for Dart source from
application/darttotext/x-dart. - Add example.
- Fix links and code in README.
0.9.6+2 #
- Set max SDK version to
<3.0.0, and adjust other dependencies.
0.9.6+1 #
- Stop using deprecated constants from the SDK.
0.9.6 #
-
Updates to support Dart 2.0 core library changes (wave 2.2). See issue 31847 for details.
0.9.5 #
- Add support for the WebAssembly format.
0.9.4 #
-
Updated Dart SDK requirement to
>= 1.8.3 <2.0.0 -
Strong-mode clean.
-
Added support for glTF text and binary formats.
0.9.3 #
- Fixed erroneous behavior for listening and when pausing/resuming stream of parts.
0.9.2 #
- Fixed erroneous behavior when pausing/canceling stream of parts but already listened to one part.
0.9.1 #
- Handle parsing of MIME multipart content with no parts.