Socket
Socket
Sign inDemoInstall

koa-router

Package Overview
Dependencies
Maintainers
2
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-router - npm Package Versions

1
10

6.0.0

Diff

amingoia
published 5.2.3 •

Changelog

Source

5.2.3

  • Fix for middleware running twice when nesting routes #184
amingoia
published 5.2.2 •

Changelog

Source

5.2.2

  • Register routes without params before those with params #183
  • Fix for allowed methods #182
amingoia
published 5.2.1 •

amingoia
published 5.2.0 •

Changelog

Source

5.2.0

  • Add support for async/await. Resolves #130.
  • Add support for array of paths by Router#use(). Resolves #175.
  • Inherit param middleware when nesting routers. Fixes #170.
  • Default router middleware without path to root. Fixes #161, #155, #156.
  • Run nested router middleware after parent's. Fixes #156.
  • Remove dependency on koa-compose.
amingoia
published 5.1.2 •

amingoia
published 5.1.1 •

Changelog

Source

5.1.1

  • Match routes in order they were defined. Fixes #131.
amingoia
published 5.1.0 •

Changelog

Source

5.1.0

  • Support mounting router middleware at a given path.
amingoia
published 5.0.1 •

Changelog

Source

5.0.1

  • Fix bug with missing parameters when nesting routers.
amingoia
published 5.0.0 •

Changelog

Source

5.0.0

  • Remove confusing API for extending koa app with router methods. Router#use() does not have the same behavior as app#use().
  • Add support for nesting routes.
  • Remove support for regular expression routes to achieve nestable routers and enable future trie-based routing optimizations.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc