diff --git a/.tav.yml b/.tav.yml index a11b9ca68c..1b03bebbd2 100644 --- a/.tav.yml +++ b/.tav.yml @@ -231,12 +231,12 @@ express-queue: koa-router: node: '>=6.0.0' peerDependencies: koa@2 - versions: '>=5.2.0 <10' + versions: '>=5.2.0 <11' commands: node test/instrumentation/modules/koa-router/old-name.js '@koa/router': node: '>=8.0.0' peerDependencies: koa@2 - versions: '>=8 <10' + versions: '>=8 <11' commands: node test/instrumentation/modules/koa-router/new-name.js elasticsearch: diff --git a/lib/instrumentation/modules/koa-router.js b/lib/instrumentation/modules/koa-router.js index 70663aa68d..fdee436470 100644 --- a/lib/instrumentation/modules/koa-router.js +++ b/lib/instrumentation/modules/koa-router.js @@ -6,7 +6,7 @@ var shimmer = require('../shimmer') module.exports = function (Router, agent, { version, enabled }) { if (!enabled) return Router - if (!semver.satisfies(version, '>=5.2.0 <10')) { + if (!semver.satisfies(version, '>=5.2.0 <=10')) { agent.logger.debug('koa-router version %s not supported - aborting...', version) return Router }