@koa/router breaking changes
Updated December 4, 2026
On this page
Latest version 15.7.1, released November 1, 2026. Source repository
Its 14.0.0 release requires Node.js 20 or later. Node.js end of life dates.
- From 14.0.0 to 15.7.1: 75 breaking changes in 7 versions.
- From 13.0.0 to 15.7.1: 77 breaking changes in 8 versions.
@koa/router 15.7.1 breaking changes
- Signature changed
RouterContext
Was type RouterContext<StateT = DefaultState, ContextT = DefaultContext, BodyT = unknown> = ParameterizedContext<StateT, ContextT & RouterParameterContext<StateT, ContextT>, BodyT> & {request: {params: Record<string, string>;}... npmjs.com
@koa/router 15.6.0 breaking changes
- Signature changed
LayerOptions
Was type LayerOptions = {name?: string | null; sensitive?: boolean; strict?: boolean; trailing?: boolean; end?: boolean; prefix?: string; ignoreCaptures?: boolean; pathAsRegExp?: boolean; [key: string]: unknown;}; now type LayerOptions =... npmjs.com
@koa/router 15.5.0 breaking changes
- Signature changed
RouterOptions
Was type RouterOptions = {exclusive?: boolean; prefix?: string; host?: string | string[] | RegExp; methods?: string[]; routerPath?: string; sensitive?: boolean; strict?: boolean; [key: string]: unknown;}; now type RouterOptions =... npmjs.com - Signature changed
RouterOptions.exclusive
Was exclusive?: boolean; now exclusive?: boolean | 'specificity'. npmjs.com
@koa/router 15.4.0 breaking changes
- Signature changed
RouterContext
Was type RouterContext<StateT = DefaultState, ContextT = DefaultContext, BodyT = unknown> = ParameterizedContext<StateT, ContextT & RouterParameterContext<StateT, ContextT>, BodyT> & {request: {params: Record<string, string>;}... npmjs.com
@koa/router 15.1.2 breaking changes
- Removed
RouterInstance.__index
RouterInstance.__index was removed in @koa/router 15.1.2 npmjs.com - Removed
RouterInstance.constructor
new RouterInstance() was removed in @koa/router 15.1.2 npmjs.com - Signature changed
default
Was const RouterExport: RouterConstructor; now const Router: RouterConstructor type Router<StateT = koa.DefaultState, ContextT = koa.DefaultContext> = RouterInstance<StateT, ContextT>. npmjs.com - Signature changed
Router
Was const RouterExport: RouterConstructor; now const Router: RouterConstructor type Router<StateT = koa.DefaultState, ContextT = koa.DefaultContext> = RouterInstance<StateT, ContextT>. npmjs.com - Signature changed
RouterInstance
Was class Router<StateT = koa.DefaultState, ContextT = koa.DefaultContext>; now type RouterInstance<StateT = koa.DefaultState, ContextT = koa.DefaultContext> = RouterImplementation<StateT, ContextT>. npmjs.com - Signature changed
RouterInstance.all
The signature of RouterInstance.all changed in @koa/router 15.1.2 npmjs.com - Signature changed
RouterInstance.del
The signature of RouterInstance.del changed in @koa/router 15.1.2 npmjs.com - Signature changed
RouterInstance.delete
The signature of RouterInstance.delete changed in @koa/router 15.1.2 npmjs.com - Signature changed
RouterInstance.get
The signature of RouterInstance.get changed in @koa/router 15.1.2 npmjs.com - Signature changed
RouterInstance.head
The signature of RouterInstance.head changed in @koa/router 15.1.2 npmjs.com
And 8 more in this version. Sign up to see every change
@koa/router 15.1.1 breaking changes
- Signature changed
RouterMiddleware
Was type RouterMiddleware<StateT = DefaultState, ContextT = DefaultContext, BodyT = unknown> = (context: RouterContext<StateT, ContextT, BodyT>, next: () => Promise<unknown>) => unknown | Promise<unknown>; now type RouterMiddleware<StateT... npmjs.com
Older versions
3 older versions, each with its first changes. Sign up to see every change
Show 3 older versions
@koa/router 15.1.0 breaking changes
- Removed
Router._registerMethod
Router._registerMethod was removed in @koa/router 15.1.0 npmjs.com - Removed
Router.all
Router.all was removed in @koa/router 15.1.0 npmjs.com
And 49 more in this version.
@koa/router 14.0.0 breaking changes
- Renamed
pathIsRegex
The pathIsRegex option was renamed to pathIsRegEx in this release. Code that passes pathIsRegex must switch to the new name. github.com - Configuration changed
The release supports Node.js v20 and above, so older Node.js versions are no longer supported. Upgrade Node.js to 20 or later before using this release. github.com
@koa/router 13.0.0 breaking changes
- Removed
The package now supports Node.js 18 and later. Upgrade Node.js to 18 or newer before upgrading this package. 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.