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

# 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

Latest version `3.3.0`, released November 3, 2026. [Source repository](https://github.com/koajs/koa)

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

- From [2.16.4](#v-2-16-4) to [3.3.0](#v-3-3-0): 21 breaking changes in 6 versions.

## koa 3.3.0 breaking changes

koa 3.3.0, released November 3, 2026: 3 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](https://github.com/koajs/koa/releases/tag/v3.3.0)
- **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](https://github.com/koajs/koa/releases/tag/v3.3.0)
- **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](https://github.com/koajs/koa/releases/tag/v3.3.0)

## koa 3.1.2 breaking changes

koa 3.1.2, released February 25, 2026: 1 breaking change.

- **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](https://github.com/koajs/koa/releases/tag/v3.1.2)

## koa 3.0.1 breaking changes

koa 3.0.1, released July 27, 2025: 3 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](https://github.com/koajs/koa/releases/tag/v3.0.1)
- **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](https://github.com/koajs/koa/releases/tag/v3.0.1)
- **Behavior changed**  

Content type lookup now uses mime-types directly instead of cache-content-type, which may alter resolved content types. [github.com](https://github.com/koajs/koa/releases/tag/v3.0.1)

## koa 3.0.0 breaking changes

koa 3.0.0, released April 28, 2025: 8 breaking changes.

- **Removed**  

Generator functions are no longer supported and Koa no longer warns about them. Convert generator middleware to async functions. [github.com](https://github.com/koajs/koa/releases/tag/v3.0.0)
- **Removed**  

The package now requires Node.js 18 or later. Upgrade the Node.js runtime before using this version. [github.com](https://github.com/koajs/koa/releases/tag/v3.0.0)
- **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](https://github.com/koajs/koa/releases/tag/v3.0.0)
- **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](https://www.npmjs.com/package/koa/v/3.0.0)
- **Signature changed** `Context.redirect`  

Was redirect(url: string, alt?: string): void; now redirect(url: string): void. [npmjs.com](https://www.npmjs.com/package/koa/v/3.0.0)
- **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](https://www.npmjs.com/package/koa/v/3.0.0)
- **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](https://www.npmjs.com/package/koa/v/3.0.0)
- **Signature changed** `DefaultContextDelegatedResponse.redirect`  

Was redirect(url: string, alt?: string): void; now redirect(url: string): void. [npmjs.com](https://www.npmjs.com/package/koa/v/3.0.0)

## koa 3.0.0-alpha.4 breaking changes

koa 3.0.0-alpha.4, released April 28, 2025: 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](https://github.com/koajs/koa/releases/tag/3.0.0-alpha.4)
- **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](https://github.com/koajs/koa/releases/tag/3.0.0-alpha.4)
- **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](https://github.com/koajs/koa/releases/tag/3.0.0-alpha.4)
- **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](https://github.com/koajs/koa/releases/tag/3.0.0-alpha.4)

## koa 3.0.0-alpha.2 breaking changes

koa 3.0.0-alpha.2, released April 28, 2025: 2 breaking changes.

- **Removed** `createAsyncCtxStorageMiddleware`  

The obsolete createAsyncCtxStorageMiddleware export is removed. Stop importing or using it. [github.com](https://github.com/koajs/koa/releases/tag/3.0.0-alpha.2)
- **Removed** `res.redirect`  

Calling redirect with 'back' is no longer supported. Use the new ctx.back() method instead. [github.com](https://github.com/koajs/koa/releases/tag/3.0.0-alpha.2)

## Older versions

1 older version.

### koa 2.16.4 breaking changes

koa 2.16.4, released February 25, 2026: 1 breaking change.

- **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](https://github.com/koajs/koa/releases/tag/v2.16.4)

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