Skip to content
Evergreen Evergreen
Documentation

koa-router is deprecated

Deprecated. The source gives no day. Replacement: @koa/router. Source: koa-router on npm.

Check a version:

evergreen check pkg:npm/koa-router

npm marks koa-router as deprecated: “Please use @koa/router instead, starting from v9!”

Look up another package or runtime · <form action="../lookup.html" method="get" role="search"> </form>

   
Status Deprecated
Severity medium
Ecosystem npm
Component pkg:npm/koa-router
Affected versions vers:npm/*
Date from the source The source gives no day
Replacement @koa/router
Evidence last seen 2026-10-19
Reviewed 2026-10-19 by arminazimi, drafted by the npm-deprecated importer
Review due 2027-10-19 (365 days after the last review)
Rule ID npm.package.koa-router.deprecated

Sources

Migration

Constraints

  • Preserve route paths, parameter names, middleware order, allowed methods, and error handling.

Steps

  1. Replace koa-router. Move the dependency and imports from koa-router to @koa/router and keep the current constructor and middleware usage.
  2. Verify routing behavior. Exercise every route, parameter pattern, and allowed method to confirm dispatch and error handling are unchanged.

Verification

  • npm run test --if-present: Run the routing and repository tests when defined.

Detected by

The npm detector. See Detectors and Compatibility.

Same ecosystem

Data

This page is generated from registry/npm.json, rule npm.package.koa-router.deprecated, in the ebb.registry.v2 format (how rules are written). A CLE (ECMA-428) export is not published yet. The same facts are embedded in this page as schema.org structured data.

Last updated