Skip to content

Commit

Permalink
fix(koa-router): use new package and router inst (#364)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Nov 20, 2024
1 parent 74c88dc commit 67b946a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion benchmarks/koa-router.cjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
'use strict'

const Koa = require('koa')
const router = require('koa-router')()
const Router = require('@koa/router')

const app = new Koa()
const router = new Router()

router.get('/', async function (ctx) {
ctx.body = { hello: 'world' }
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"@adonisjs/logger": "^6.0.3",
"@hapi/hapi": "^21.1.0",
"@hono/node-server": "^1.3.0",
"@koa/router": "^13.1.0",
"@leizm/web": "^2.7.3",
"@tinyhttp/app": "^2.2.1",
"@trpc/server": "^10.7.0",
Expand All @@ -65,7 +66,6 @@
"inquirer": "^12.1.0",
"koa": "^2.14.1",
"koa-isomorphic-router": "^1.0.1",
"koa-router": "^13.0.1",
"micro": "^10.0.1",
"micro-route": "^2.5.0",
"microrouter": "^3.1.3",
Expand Down

0 comments on commit 67b946a

Please sign in to comment.