From 95bdc603e20b7a2228f1f4d7f184ed37e910a763 Mon Sep 17 00:00:00 2001 From: thierry Date: Wed, 10 Nov 2021 20:25:06 +0100 Subject: [PATCH] add changelog for getMetricsAsArray type fix --- CHANGELOG.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b0418d5..5f6dd2d0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,20 +17,21 @@ project adheres to [Semantic Versioning](http://semver.org/). causing vscode to think that push/pushAdd and delete didn't promise resulting in incorrect behavior. +- changed: `register.clusterMetrics()` no longer accepts a callback; it only + returns a promise. + ### Added ## [14.0.0] - 2021-09-18 ### Breaking +- types: fixed type for `registry.getMetricsAsArray()` - changed: `linearBuckets` does not propagate rounding errors anymore. Fewer bucket bounds will be affected by rounding errors. Histogram bucket labels may change. [`6f1f3b2`](https://github.com/siimon/prom-client/commit/6f1f3b24c9c21311ff33e7d4b987b40c6b304e04) -- changed: The push gateway methods `pushAdd()`, `push()` and `delete()` now - return Promises instead of accepting a callback: - ```js // Old: gateway.pushAdd({ jobName: 'test' }, (err, resp, body) => {});