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
On this page
Latest version 2.1.1, released December 1, 2025. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
finalhandler 1.0.0 breaking changes
- Removed
Options.message
Options.message was removed in finalhandler 1.0.0 npmjs.com - Removed
Options.stacktrace
Options.stacktrace was removed in finalhandler 1.0.0 npmjs.com - Behavior changed
The 404 message includes only the pathname, so code that relies on the old message contents may need updating. github.com - 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 - 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 - Behavior changed
Responses now set a Content-Security-Policy header of default-src 'self', which can block resources that were previously loaded. github.com - 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 - 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
finalhandler 0.5.0 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 - 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 - 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
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.