Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/mime.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ jobs:
- name: Run tests
run: dart test

- name: "Re run 'dart tool/media_types.dart' to update doc/media_types.md"
run: dart tool/media_types.dart
- name: "Re run 'dart tool/regenerate_tables.dart' to update doc/media_types.md"
run: dart tool/regenerate_tables.dart
- run: git diff --exit-code
90 changes: 88 additions & 2 deletions pkgs/mime/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,93 @@
## 2.1.0-wip

* Switched to using the Apache httpd mime.conf table as the source of truth for
mime types.

Mime type additions:
- `application/vnd.geogebra.slides`
- `font/collection`
- `image/jxl`
- `image/vnd.dvb.subtitle`
- `video/mp2t`

Renamed mime types:
- `application/x-font-otf` => `font/otf`
- `application/x-font-ttf` => `font/ttf`
- `application/x-font-woff` => `font/woff`

Removed mime types:
- `model/vnd.mts`

Mime types where the default file extension changed:
- `application/inkml+xml`, `inkml` => `ink`
- `application/octet-stream`, `so` => `bin`
- `application/onenote`, `onetoc2` => `onetoc`
- `application/pgp-signature`, `sig` => `asc`
- `application/tei+xml`, `teicorpus` => `tei`
- `application/vnd.adobe.fxp`, `fxpl` => `fxp`
- `application/vnd.clonk.c4group`, `c4u` => `c4g`
- `application/vnd.dece.data`, `uvvf` => `uvf`
- `application/vnd.dece.ttml+xml`, `uvvt` => `uvt`
- `application/vnd.eszigno3+xml`, `et3` => `es3`
- `application/vnd.framemaker`, `maker` => `fm`
- `application/vnd.geometry-explorer`, `gre` => `gex`
- `application/vnd.grafeq`, `gqs` => `gqf`
- `application/vnd.ibm.modcap`, `listafp` => `afp`
- `application/vnd.iccprofile`, `icm` => `icc`
- `application/vnd.intercon.formnet`, `xpx` => `xpw`
- `application/vnd.kde.kpresenter`, `kpt` => `kpr`
- `application/vnd.kde.kword`, `kwt` => `kwd`
- `application/vnd.kinar`, `knp` => `kne`
- `application/vnd.koan`, `skt` => `skp`
- `application/vnd.ms-project`, `mpt` => `mpp`
- `application/vnd.palm`, `pqa` => `pdb`
- `application/vnd.quark.quarkxpress`, `qxt` => `qxd`
- `application/vnd.simtech-mindmapper`, `twds` => `twd`
- `application/vnd.stardivision.writer`, `vor` => `sdw`
- `application/vnd.sus-calendar`, `susp` => `sus`
- `application/vnd.symbian.install`, `sisx` => `sis`
- `application/vnd.ufdl`, `ufdl` => `ufd`
- `application/vnd.visio`, `vsw` => `vsd`
- `application/vnd.zul`, `zirz` => `zir`
- `application/x-authorware-bin`, `x32` => `aab`
- `application/x-blorb`, `blorb` => `blb`
- `application/x-cbr`, `cbz` => `cbr`
- `application/x-director`, `w3d` => `dir`
- `application/x-font-type1`, `pfm` => `pfa`
- `application/x-msdownload`, `msi` => `exe`
- `application/x-pkcs12`, `pfx` => `p12`
- `application/x-pkcs7-certificates`, `spc` => `p7b`
- `application/x-zmachine`, `z8` => `z1`
- `application/xv+xml`, `xvml` => `mxml`
- `audio/basic`, snd => `au`
- `audio/mpeg`, mpga => `mp3`
- `audio/vnd.dece.audio`, `uvva` => `uva`
- `image/tiff`, `tif` => `tiff`
- `image/vnd.dece.graphic`, `uvvi` => `uvi`
- `image/x-freehand`, `fhc` => `fh`
- `message/rfc822`, `mime` => `eml`
- `model/mesh`, `silo` => `msh`
- `model/x3d+binary`, `x3dbz` => `x3db`
- `model/x3d+vrml`, `x3dvz` => `x3dv`
- `model/x3d+xml`, `x3dz` => `x3d`
- `text/troff`, `tr` => `t`
- `text/uri-list`, `urls` => `uri`
- `text/x-fortran`, `for` => `f`
- `video/mj2`, `mjp2` => `mj2`
- `video/vnd.dece.hd`, `uvvh` => `uvh`
- `video/vnd.dece.mobile`, `uvvm` => `uvm`
- `video/vnd.dece.pd`, `uvvp` => `uvp`
- `video/vnd.dece.sd`, `uvvs` => `uvs`
- `video/vnd.dece.video`, `uvvv` => `uvv`
- `video/vnd.uvvu.mp4`, `uvvu` => `uvu`
- `video/x-ms-asf`, `asx` => `asf`

## 2.0.0

* **[Breaking]** `extensionFromMime(String mimeType)` returns `null` instead of `mimeType` for an unknown mime type.
* Update `extensionFromMime` to return a default extension when a MIME type maps to multiple extensions.
* **[Breaking]** `extensionFromMime(String mimeType)` returns `null` instead of
`mimeType` for an unknown mime type.
* Update `extensionFromMime` to return a default extension when a MIME type maps
to multiple extensions.

## 1.0.6

Expand Down
144 changes: 74 additions & 70 deletions pkgs/mime/doc/media_types.md

Large diffs are not rendered by default.

Loading
Loading