Update to prom-client v12, requiring Node >=10

v12 drops support for versions of Node.js that are no longer supported
(as-of January, 2020), and also removes the timeout option from
collectDefaultMetrics().

Remove 6 and 8 from Travis, and add 12 and 13 (so all the non-EOL versions
of Node.js are tested).
This commit is contained in:
Sam Roberts
2020-03-05 13:43:16 -08:00
parent a21bd439cf
commit 20c6a7de24
7 changed files with 14 additions and 18 deletions

View File

@@ -36,19 +36,19 @@
"jasme": "^6.0.0",
"koa": "^2.6.2",
"koa-connect": "^2.0.1",
"prom-client": "^11.3.0",
"prom-client": "^12.0.0",
"supertest": "^3.3.0",
"supertest-koa-agent": "^0.3.0",
"typescript": "^3.4.5"
},
"peerDependencies": {
"prom-client": "^11.1.2"
"prom-client": "^12.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/jochen-schweizer/express-prom-bundle.git"
},
"engines": {
"node": ">=6.0.0"
"node": ">=10"
}
}