prom-client
Advanced tools
Comparing version 10.2.3 to 11.0.0
@@ -16,2 +16,11 @@ # Changelog | ||
## [11.0.0] - 2018-03-10 | ||
### Breaking | ||
* Fixed `gauge.setToCurrentTime()` to use seconds instead of milliseconds | ||
* This conforms to Prometheus | ||
[best practices](https://prometheus.io/docs/practices/naming/#base-units) | ||
* Dropped support for node 4 | ||
## [10.2.3] - 2018-02-28 | ||
@@ -18,0 +27,0 @@ |
@@ -172,3 +172,3 @@ /** | ||
return () => { | ||
const now = Date.now(); | ||
const now = Date.now() / 1000; | ||
if (labels === undefined) { | ||
@@ -175,0 +175,0 @@ this.set(now); |
{ | ||
"name": "prom-client", | ||
"version": "10.2.3", | ||
"version": "11.0.0", | ||
"description": "Client for prometheus", | ||
"main": "index.js", | ||
"files": [ | ||
"lib/", | ||
"index.js", | ||
"index.d.ts" | ||
], | ||
"files": ["lib/", "index.js", "index.d.ts"], | ||
"engines": { | ||
"node": ">=4" | ||
"node": ">=6" | ||
}, | ||
@@ -25,7 +21,3 @@ "scripts": { | ||
}, | ||
"keywords": [ | ||
"Prometheus", | ||
"Metrics", | ||
"Client" | ||
], | ||
"keywords": ["Prometheus", "Metrics", "Client"], | ||
"author": "Simon Nyberg", | ||
@@ -54,14 +46,5 @@ "license": "Apache-2.0", | ||
"lint-staged": { | ||
"*.js": [ | ||
"eslint --fix", | ||
"git add" | ||
], | ||
"*.{ts,md,json}": [ | ||
"prettier --write", | ||
"git add" | ||
], | ||
".eslintrc": [ | ||
"prettier --write", | ||
"git add" | ||
] | ||
"*.js": ["eslint --fix", "git add"], | ||
"*.{ts,md,json}": ["prettier --write", "git add"], | ||
".eslintrc": ["prettier --write", "git add"] | ||
}, | ||
@@ -68,0 +51,0 @@ "prettier": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103174