Download Latest Version v15.1.3 source code.tar.gz (64.9 kB)
Email in envelope

Get an email when there's a new version of Prom-Client

Home / v15.0.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2023-10-09 1.7 kB
v15.0.0 source code.tar.gz 2023-10-09 62.2 kB
v15.0.0 source code.zip 2023-10-09 103.3 kB
Totals: 3 Items   167.3 kB 0

Added

  • Support for OpenMetrics and Exemplars

Breaking

  • 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

New Contributors

Full Changelog: https://github.com/siimon/prom-client/compare/v14.2.0...v15.0.0

Source: README.md, updated 2023-10-09