koa breaking changes
koa 3.3.0 (November 3, 2026) is its newest release with breaking changes, 3 of them. The first: Singleton response headers now reject multiple values in koa 3.3.0. Every breaking API change we have recorded in koa on npm: 22 breaking changes in 7 versions. Below, its 7 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.3.0, released November 3, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
koa 3.3.0 breaking changes
- Behavior changed
Setting multiple values on a singleton response header now fails instead of being accepted. Code that sends several values for such a header must send only one. github.com - Behavior changed
request.protocol
The protocol read from X-Forwarded-Proto is now lowercased. Code comparing it against an uppercase value must be updated. github.com - Behavior changed
response.type
A response body that is a Blob now keeps the Blob's content type instead of being forced to application/octet-stream. Code relying on the old octet-stream type must set the type explicitly. github.com
koa 3.1.2 breaking changes
- Behavior changed
ctx.hostname
ctx.hostname was patched against Host Header Injection, so values read from untrusted Host headers may now differ. Check code that relies on ctx.hostname for URLs or access decisions. github.com
koa 3.0.1 breaking changes
- Behavior changed
Debug logging now uses node:util debuglog instead of the debug module, so debug logging configuration may behave differently. github.com - Behavior changed
The security fix only allows same origin referer on response back; code relying on cross-origin referer handling must be checked. github.com - Behavior changed
Content type lookup now uses mime-types directly instead of cache-content-type, which may alter resolved content types. github.com
koa 3.0.0 breaking changes
- Removed
Generator functions are no longer supported and Koa no longer warns about them. Convert generator middleware to async functions. github.com - Removed
The package now requires Node.js 18 or later. Upgrade the Node.js runtime before using this version. github.com - Behavior changed
ctx.body
When body is explicitly set to null, the response sets Content-Length to 0. Check code that depends on the previous header. github.com - Signature changed
BaseContext.throw
Was throw(...properties: Array<number | string | {}>): never throw(message: string, code?: number, properties?: {}): never throw(status: number): never; now throw(...args: httpErrors.UnknownError[]): never throw(status: number, ...args... npmjs.com - Signature changed
Context.redirect
Was redirect(url: string, alt?: string): void; now redirect(url: string): void. npmjs.com - Signature changed
Context.throw
Was throw(...properties: Array<number | string | {}>): never throw(message: string, code?: number, properties?: {}): never throw(status: number): never; now throw(...args: httpErrors.UnknownError[]): never throw(status: number, ...args... npmjs.com - Signature changed
default.constructor
Was constructor(options?: {env?: string | undefined; keys?: string[] | undefined; proxy?: boolean | undefined; subdomainOffset?: number | undefined; proxyIpHeader?: string | undefined; maxIpsCount?: number | undefined; asyncLocalStorage?... npmjs.com - Signature changed
DefaultContextDelegatedResponse.redirect
Was redirect(url: string, alt?: string): void; now redirect(url: string): void. npmjs.com
koa 3.0.0-alpha.4 breaking changes
- Removed
Koa no longer handles ENOENT errors specially. Check file handling code and adapt it to handle missing files yourself. github.com - Behavior changed
ctx.body
Assigning a JSON body keeps an existing json type instead of replacing it. Code that set a different type first may now behave differently. github.com - Behavior changed
req.origin
req.origin returns req.headers.origin instead of the current hostname. Check code that relies on the old value. github.com - Behavior changed
res.set
Header values passed to res.set keep their types instead of being converted to strings. Convert values yourself where strings are required. github.com
koa 3.0.0-alpha.2 breaking changes
- Removed
createAsyncCtxStorageMiddleware
The obsolete createAsyncCtxStorageMiddleware export is removed. Stop importing or using it. github.com - Removed
res.redirect
Calling redirect with 'back' is no longer supported. Use the new ctx.back() method instead. github.com
Older versions
1 older version.
Show 1 older version
koa 2.16.4 breaking changes
- Behavior changed
ctx.hostname
A security fix changes how ctx.hostname resolves the Host header, so code that relies on its previous value should be checked. 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.