---
title: "content-disposition 3.0.0 Breaking Changes on npm"
description: "What each content-disposition release removed, renamed or changed: 9 breaking changes in 3 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/content-disposition
last_updated: 2026-12-04
---

# content-disposition breaking changes

content-disposition 3.0.0 (August 13, 2026) is its newest release with breaking changes, 3 of them. The first: Rejects invalid percent-encoding in ISO-8859-1 ext-values in content-disposition 3.0.0. Every breaking API change we have recorded in content-disposition on npm: 9 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `3.1.0`, released November 18, 2026. [Source repository](https://github.com/jshttp/content-disposition)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [2.0.0](#v-2-0-0) to [3.0.0](#v-3-0-0): 3 breaking changes in 1 version.
- From [1.0.0](#v-1-0-0) to [3.0.0](#v-3-0-0): 8 breaking changes in 2 versions.

## content-disposition 3.0.0 breaking changes

content-disposition 3.0.0, released August 13, 2026: 3 breaking changes.

- **Behavior changed**  

Parsing an ISO-8859-1 ext-value with invalid percent-encoding is now rejected instead of accepted. [github.com](https://github.com/jshttp/content-disposition/releases/tag/v3.0.0)
- **Behavior changed**  

The package is now published as ESM only, so code that loads it with require() must switch to import. [github.com](https://github.com/jshttp/content-disposition/releases/tag/v3.0.0)
- **Behavior changed** `format`  

With extended: true and both param and param\* present, format now ignores param and uses param\* when encoding. With extended: false, both are still included. [github.com](https://github.com/jshttp/content-disposition/releases/tag/v3.0.0)

## content-disposition 2.0.0 breaking changes

content-disposition 2.0.0, released May 11, 2026: 5 breaking changes.

- **Removed** `basename`  

create no longer normalizes filenames with basename. Pass a plain filename rather than a full path. [github.com](https://github.com/jshttp/content-disposition/releases/tag/v2.0.0)
- **Removed** `default export`  

The default export is gone and was renamed to create. Import create instead of the default export. [github.com](https://github.com/jshttp/content-disposition/releases/tag/v2.0.0)
- **Renamed** `default export`  

The default export was renamed to create. Update imports to use create. [github.com](https://github.com/jshttp/content-disposition/releases/tag/v2.0.0)
- **Behavior changed** `create`  

Filenames passed to create are no longer normalized, so paths may leak directory structure. Use plain filenames. [github.com](https://github.com/jshttp/content-disposition/releases/tag/v2.0.0)
- **Behavior changed** `parse`  

The decoder no longer falls back on invalid UTF-8, so such headers are no longer handled as before. [github.com](https://github.com/jshttp/content-disposition/releases/tag/v2.0.0)

## content-disposition 1.0.0 breaking changes

content-disposition 1.0.0, released August 31, 2024: 1 breaking change.

- **Behavior changed**  

The package no longer supports Node.js versions older than 18. Users on older Node.js must upgrade Node.js before using this release. [github.com](https://github.com/jshttp/content-disposition/releases/tag/v1.0.0)

## Related packages

- [content-type](https://since.dev/packages/npm/content-type.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
