mimetype breaking changes
mimetype 0.29.0 (December 2, 2026) is its newest release with breaking changes, 4 of them. The first: Behavior changed accept.negotiate. Every breaking API change we have recorded in mimetype on Hex: 57 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 0.29.1, released December 2, 2026. MIT license. Source repository
mimetype 0.29.0 breaking changes
- Behavior changed
accept.negotiate
A wildcard range with parameters, such as charset, no longer matches offers lacking those parameters; charset values are compared case-insensitively. github.com - Behavior changed
accept.prefer
Among wildcard ranges of the same kind, one with more parameters is now ranked before one with fewer. github.com - Signature changed
AnyType
AnyType becomes AnyType(parameters:), so code that matches or constructs it without parameters must be updated. github.com - Signature changed
TypeWildcard
TypeWildcard gains a parameters field, so code that pattern matches on it must be updated. github.com
mimetype 0.28.0 breaking changes
- Removed
accept.AcceptItem.extensions
Code reading the extensions field of AcceptItem no longer compiles; parameters after q now belong to the media range. github.com - Removed
mimetype.is_xml_based
Calls to mimetype.is_xml_based must switch to mimetype.is_a checked against application/xml. github.com - Removed
mimetype.is_zip_based
Calls to mimetype.is_zip_based must switch to mimetype.is_a checked against application/zip. github.com - Behavior changed
accept.negotiate
text/html;level=1 matches only offers with level=1 and takes precedence over text/html; check negotiated results that relied on the old matching. github.com - Behavior changed
accept.negotiate_value
identity is acceptable only unless identity;q=0 or *;q=0 rules it out, and language ranges now match by prefix per RFC 4647. github.com - Behavior changed
accept.parse_values
The failing entry is now put in InvalidQValue, and InvalidMediaRange holds the whole entry; error handling that matched the old values must be updated. github.com - Behavior changed
detect
Documents starting with an XML declaration are now reported as application/xml rather than text/xml. github.com - Behavior changed
extension_to_mime_type
Extension lookup for deb and udeb now returns application/vnd.debian.binary-package instead of application/octet-stream. github.com - Behavior changed
mimetype.is_a
is_a(mime, text/xml) now returns False for image/svg+xml and other +xml types, which are kinds of application/xml. github.com
mimetype 0.27.0 breaking changes
- Removed
accept.AcceptError.Malformed
The Malformed variant of accept.AcceptError is removed because no input produced it. github.com - Removed
accept.negotiate_charset_strings
Parse the header and the offers, then call accept.negotiate. github.com - Removed
accept.negotiate_encoding_strings
Parse the header and the offers, then call accept.negotiate. github.com - Removed
accept.negotiate_language_strings
Parse the header and the offers, then call accept.negotiate. github.com - Removed
accept.negotiate_strings
Parse the header and the offers, then call accept.negotiate. github.com - Removed
accept.NegotiateError
Parse the header and the offers, then call accept.negotiate. github.com - Removed
accept.parse_charset
accept.parse_charset is replaced by accept.parse_values. github.com - Removed
accept.parse_encoding
accept.parse_encoding is replaced by accept.parse_values. github.com - Removed
accept.parse_language
accept.parse_language is replaced by accept.parse_values. github.com - Removed
accept.prefer_values
Parse the header and the offers, then call accept.negotiate. github.com
And 31 more in this version. Sign up to see every change
mimetype 0.26.0 breaking changes
- Behavior changed
accept.negotiate
An offer's q-value is now taken from the most specific matching media range instead of the highest matching q. Code relying on the old selection may get different results. github.com - Behavior changed
accept.negotiate_strings
An offer's q-value is now taken from the most specific matching media range instead of the highest matching q. Code relying on the old selection may get different results. github.com - Behavior changed
charset_of
Byte sequences that were invalid UTF-8 (overlong sequences, encoded surrogates, code points above U+10FFFF) used to be reported as utf-8 and now return Error(NoMatch). Code that expects Ok for these inputs must handle the error. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.