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

# finalhandler breaking changes

finalhandler 1.0.0 (February 16, 2017) is its newest release with breaking changes, 8 of them. The first: Removed Options.message. Every breaking API change we have recorded in finalhandler on npm: 11 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `2.1.1`, released December 1, 2025. [Source repository](https://github.com/pillarjs/finalhandler)

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

- From [0.5.0](#v-0-5-0) to [1.0.0](#v-1-0-0): 8 breaking changes in 1 version.

## finalhandler 1.0.0 breaking changes

finalhandler 1.0.0, released February 16, 2017: 8 breaking changes.

- **Removed** `Options.message`  

Options.message was removed in finalhandler 1.0.0 [npmjs.com](https://www.npmjs.com/package/finalhandler/v/1.0.0)
- **Removed** `Options.stacktrace`  

Options.stacktrace was removed in finalhandler 1.0.0 [npmjs.com](https://www.npmjs.com/package/finalhandler/v/1.0.0)
- **Behavior changed**  

The 404 message includes only the pathname, so code that relies on the old message contents may need updating. [github.com](https://github.com/pillarjs/finalhandler/releases/tag/v1.0.0)
- **Behavior changed**  

The 404 message fully URL-encodes the request pathname, so code that matches the exact old message text may need updating. [github.com](https://github.com/pillarjs/finalhandler/releases/tag/v1.0.0)
- **Behavior changed**  

The default error response body is now a complete HTML document, which changes the output that existing clients and tests receive. [github.com](https://github.com/pillarjs/finalhandler/releases/tag/v1.0.0)
- **Behavior changed**  

Responses now set a Content-Security-Policy header of default-src 'self', which can block resources that were previously loaded. [github.com](https://github.com/pillarjs/finalhandler/releases/tag/v1.0.0)
- **Signature changed** `default`  

Was function finalHandler(req: IncomingMessage, res: ServerResponse, options?: finalHandler.Options): (err: any) => void namespace finalHandler; now function finalhandler(req: IncomingMessage, res: ServerResponse, options?... [npmjs.com](https://www.npmjs.com/package/finalhandler/v/1.0.0)
- **Signature changed** `Options.onerror`  

Was onerror?: (err: any, req: IncomingMessage, res: ServerResponse) => void; now onerror?: ((err: any, req: IncomingMessage, res: ServerResponse) => void) | undefined. [npmjs.com](https://www.npmjs.com/package/finalhandler/v/1.0.0)

## finalhandler 0.5.0 breaking changes

finalhandler 0.5.0, released June 15, 2016: 3 breaking changes.

- **Behavior changed**  

An invalid or non-numeric status code is now sent as 500. Code that relied on the previous status for such errors should check its status values. [github.com](https://github.com/pillarjs/finalhandler/releases/tag/v0.5.0)
- **Behavior changed**  

The response status message is overwritten to match the status code that is set, so custom status messages are no longer kept. [github.com](https://github.com/pillarjs/finalhandler/releases/tag/v0.5.0)
- **Behavior changed** `err.status`  

When err.status is not a valid status, err.statusCode is used instead. Code that sets only err.status with an invalid value will now get a different response. [github.com](https://github.com/pillarjs/finalhandler/releases/tag/v0.5.0)

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