drop support for Node.js versions 10, 12, 14, 17 and 19
Changed
Refactor histogram internals and provide a fast path for rendering metrics to
Prometheus strings when there are many labels shared across different values.
Disable custom content encoding for pushgateway delete requests in order to
avoid failures from the server when using Content-Encoding: gzip header.
Refactor escapeString helper in lib/registry.js to improve performance and
avoid an unnecessarily complex regex.
Cleanup code and refactor to be more efficient
Correct TS types for working with OpenMetrics
Updated Typescript and Readme docs for setToCurrentTime() to reflect units as seconds.
Do not ignore error if request to pushgateway fails
Make sure to reject the request to pushgateway if it times out