Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v2 Feedback request] Resolving conflicts over extensions #162

Closed
broofa opened this issue Jun 16, 2017 · 2 comments
Closed

[v2 Feedback request] Resolving conflicts over extensions #162

broofa opened this issue Jun 16, 2017 · 2 comments
Labels

Comments

@broofa
Copy link
Owner

broofa commented Jun 16, 2017

After waaay too long, I'm rolling out a v2 to address some long-standing issues with this module. One of which is how to resolve the occasional conflict where more than one type is associated with an extension.

mime-types has a partial solution for this, but this doesn't resolve all conflicts. In v2, I'm planning to do use this approach when compiling type maps to insure they're consistent.

See also jshttp/mime-types#23

FYI, What it looks like when resolving the inconsistencies currently in mime-db:

dmg: Keeping application/octet-stream (941.76), dropping application/x-apple-diskimage (221.71)
bdoc: Keeping application/bdoc (931.84), dropping application/x-bdoc (231.82)
deb: Keeping application/octet-stream (941.76), dropping application/x-debian-package (221.72)
iso: Keeping application/octet-stream (941.76), dropping application/x-iso9660-image (221.73)
exe: Keeping application/octet-stream (941.76), dropping application/x-msdos-program (231.73)
exe: Keeping application/x-msdos-program (231.73), dropping application/x-msdownload (221.76)
dll: Keeping application/octet-stream (941.76), dropping application/x-msdownload (221.76)
msi: Keeping application/octet-stream (941.76), dropping application/x-msdownload (221.76)
wmz: Keeping application/x-ms-wmz (221.8), dropping application/x-msmetafile (221.76)
prc: Keeping application/x-mobipocket-ebook (221.7), dropping application/x-pilot (211.81)
pdb: Keeping application/vnd.palm (441.8), dropping application/x-pilot (211.81)
mp3: Keeping audio/mpeg (940.9), dropping audio/mp3 (930.91)
wav: Keeping audio/wav (930.91), dropping audio/wave (930.9)
m4a: Keeping audio/mp4 (940.91), dropping audio/x-m4a (210.89)
ra: Keeping audio/x-pn-realaudio (220.8), dropping audio/x-realaudio (210.83)
wav: Keeping audio/wave (930.9), dropping audio/x-wav (220.89)
otf: Keeping font/opentype (930.87), dropping application/x-font-otf (221.78)
bmp: Keeping image/bmp (940.91), dropping image/x-ms-bmp (210.86)
rtf: Keeping application/rtf (941.85), dropping text/rtf (940.92)
sub: Keeping text/vnd.dvb.subtitle (440.79), dropping image/vnd.dvb.subtitle (440.78)
xml: Keeping application/xml (941.85), dropping text/xml (940.92)
3gpp: Keeping audio/3gpp (940.9), dropping video/3gpp (920.9)
@dougwilson
Copy link

Oddly enough I looked at that recently, and it makes sense from what I recall. Yes, the mime-types method is rudimentary :) I'll try to take a closer look, but from what I recall of the changes it makes a lot of sense.

@broofa
Copy link
Owner Author

broofa commented Sep 15, 2017

v2 is out. closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants