-
-
Notifications
You must be signed in to change notification settings - Fork 318
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
Help understanding change from application/xml to text/xml #158
Comments
Hi @focusaurus, my apologies for the trouble. The long-winded explanation of what happened follows, but the tl;dr: is "mime-db changed". Long version: I'll start by noting that this module is just a thin API that sits on top of the canoncial Unfortunately, the world of mime types is not without contradictions. E.g. IANA says that This has always bugged me, because it means resolving inconsistencies is non-deterministic. It depends on the order entries appear in the ... except where Where you're issue is concerned that's where the problem was introduced. (See shell output below) In the past, I have always treated updates to mime type mappings as a semver patch since the API of this library doesn't change, and such changes usually "felt" trivial in nature. So... historically, yeah, that's been the normal process. Was that appropriate in this case? I honestly don't know. The semver spec speaks to software API's... but an API isn't a dataset. I ran into a similar issue recently when we restructured node-uuid's internal file layout w/out changing the API. Any thoughts you have on how to quantify the impact of mime-db changes so as to predictably map those to the appropriate semver changes here are welcome.
|
Thanks for the detailed and informative reply. I'm at least relieved to understand that the upstream sources aren't revising their mapping of what Thus for a module that combines both a dataset that is really prominent and a small wrapper API, I'd say:
|
…xml to text/xml in mime version 1.3.6. More details here broofa/mime#158
Hi! I help maintain superagent and we had some tests that broke/changed between mime 1.3.5 and 1.3.6 where
mime.types.xml
changed fromapplication/xml
totext/xml
. I'm just curious if those with more mime DB experience understand the back story as to why this changed. I'm not requesting any change to node-mime with this issue, just asking a question. I would think these types would have been stable for many many years. Anyone know why this change came about? Is it normal for a change like this to be released as semver patch?The text was updated successfully, but these errors were encountered: