---
title: "serve-static 2.1.0 Breaking Changes on npm | Since.dev"
description: "What each serve-static release removed, renamed or changed: 6 breaking changes in 3 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/serve-static
last_updated: 2026-12-04
---

# serve-static breaking changes

serve-static 2.1.0 (September 10, 2024) is its newest release with breaking changes. The first: Redirect responses no longer include a link in their HTML body in serve-static 2.1.0. Every breaking API change we have recorded in serve-static on npm: 6 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 `2.2.1`, released December 15, 2025. [Source repository](https://github.com/expressjs/serve-static)

Its 2.0.0-beta.1 release drops Node.js 0.8. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [2.0.0](#v-2-0-0) to [2.1.0](#v-2-1-0): 1 breaking change in 1 version.

## serve-static 2.1.0 breaking changes

serve-static 2.1.0, released September 10, 2024: 1 breaking change.

- **Behavior changed**  

When serving a redirect, the generated HTML no longer renders a link to the target. Code that parses or depends on that HTML link must be updated. [github.com](https://github.com/expressjs/serve-static/releases/tag/2.1.0)

## serve-static 2.0.0 breaking changes

serve-static 2.0.0, released August 23, 2024: 2 breaking changes.

- **Removed** `mime`  

mime was removed in serve-static 2.0.0 [npmjs.com](https://www.npmjs.com/package/serve-static/v/2.0.0)
- **Removed** `RequestHandlerConstructor.mime`  

RequestHandlerConstructor.mime was removed in serve-static 2.0.0 [npmjs.com](https://www.npmjs.com/package/serve-static/v/2.0.0)

## serve-static 2.0.0-beta.1 breaking changes

serve-static 2.0.0-beta.1, released August 23, 2024: 3 breaking changes.

- **Removed**  

Node.js 0.8 is no longer supported. Code running on it must upgrade the Node.js version. [github.com](https://github.com/expressjs/serve-static/releases/tag/v2.0.0-beta.1)
- **Removed** `hidden`  

The hidden option is removed. Use the dotfiles option instead. [github.com](https://github.com/expressjs/serve-static/releases/tag/v2.0.0-beta.1)
- **Default changed** `dotfiles`  

The dotfiles option now defaults to 'ignore'. Code that relied on the old default must set dotfiles explicitly. [github.com](https://github.com/expressjs/serve-static/releases/tag/v2.0.0-beta.1)

## 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.
