Skip to content

Releases: jochen-schweizer/express-prom-bundle

7.0.0

06 Jan 10:54
Compare
Choose a tag to compare
  • bumped peer dependency prom-client to v15 (thanks to @steve1337)
  • respect pruneAgedBuckets option for Summary (thanks to @timm-stelzer-e-farm)
  • respect collectDefaultMetrics.prefix option for up metric (thanks to @gandazgul)
  • use status code 499 for requests that are closed before response is sent (thanks to @petuomin)
  • README now has an example of normalizePath() that simply uses the route instead of guessing what looks like a variable part. Yet it doesn't seem to work with subrouters (thanks to @Cellaryllis)
  • switched type-checking tool from dtslint to tsd

6.6.0

15 Dec 08:22
Compare
Choose a tag to compare
  • bypass now can take object with 2 callbacks, checking if the the request should be counted before and/or after the request was processed. ( thanks to @ineentho )

6.5.0

18 Jun 10:29
Compare
Choose a tag to compare
  • Add metricsApp option (thanks to @ath88) - see #25

6.4.1

17 Aug 07:50
Compare
Choose a tag to compare

6.3.6

17 Aug 07:32
Compare
Choose a tag to compare
  • types for metricType summary added

6.3.5

28 Mar 20:17
Compare
Choose a tag to compare
  • readme now mentions previously hidden option httpDurationMetricName

6.3.4

22 Feb 15:32
Compare
Choose a tag to compare
  • type definitions for urlValueParser now allow passing RegExp directly (thanks to @thewizarodofoz)

6.3.3

19 Feb 11:53
Compare
Choose a tag to compare
  • default metrics middleware now handles errors, see PR #78 (thanks to @FauxFaux)

6.3.2

18 Feb 14:47
Compare
Choose a tag to compare
  • peer dependency prom-client set to >=12.0.0 instead of ^13.0.0 (it was a regression), thanks to @billyjanitsch

Minor dev changes:

  • travis now run tests on node 14 instead of 13
  • added eslint test to travis build
  • dtslint now tests only the latest TS version on travis. This was a workaround for dtslint failing on travis when referencing types for prom-client in older versions of TS

6.3.1

24 Dec 11:36
Compare
Choose a tag to compare

Support for breaking changes in prom-client@13 - .metrics() and .clusterMetrics() now return a Promise. See #71