mime breaking changes
mime 4.0.0 (November 29, 2023) is its newest release with breaking changes, 4 of them. The first: Drops CommonJS support and switches the package to TypeScript in mime 4.0.0. Every breaking API change we have recorded in mime on npm: 16 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 4.1.2, released October 27, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 3.0.0 to 4.0.0: 5 breaking changes in 2 versions.
- From 2.0.0 to 4.0.0: 9 breaking changes in 3 versions.
mime 4.0.0 breaking changes
- Removed
The package no longer supports CommonJS require. Users must switch to ESM import syntax. github.com - Removed
TypeMap
TypeMap was removed in mime 4.0.0 npmjs.com - Behavior changed
The mime command-line tool now exits with a non-zero exit code when it finds no result. Scripts that check the exit code may need to handle this. github.com - Signature changed
default
Was const mime: Mime namespace mime; now const _default: Mime. npmjs.com
mime 4.0.0-beta.0 breaking changes
- Configuration changed
The project no longer tests on Node.js versions below 18. Users on those older Node.js versions should upgrade to Node.js 18 or later. github.com
mime 3.0.0 breaking changes
- Removed
The package no longer supports Node.js older than 10.x. Users on older Node.js must stay on mime 2.x or upgrade Node.js. github.com - Removed
define
define was removed in mime 3.0.0 npmjs.com - Removed
getExtension
getExtension was removed in mime 3.0.0 npmjs.com - Removed
getType
getType was removed in mime 3.0.0 npmjs.com
mime 2.0.0 breaking changes
- Removed
charsets
charsets was removed in mime 2.0.0 npmjs.com - Removed
Charsets
Charsets was removed in mime 2.0.0 npmjs.com - Removed
default_type
default_type was removed in mime 2.0.0 npmjs.com - Removed
extension
extension was removed in mime 2.0.0 npmjs.com - Removed
load
load was removed in mime 2.0.0 npmjs.com - Removed
lookup
lookup was removed in mime 2.0.0 npmjs.com - Signature changed
define
Was function define(mimes: TypeMap): void; now function define(mimes: TypeMap, force?: boolean): void. npmjs.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.