Skip to content

Commit

Permalink
deps: bump prom-client from 14.2.0 to 15.0.0 (#2142)
Browse files Browse the repository at this point in the history
Bumps [prom-client](https://github.com/siimon/prom-client) from 14.2.0 to 15.0.0.
- [Release notes](https://github.com/siimon/prom-client/releases)
- [Changelog](https://github.com/siimon/prom-client/blob/master/CHANGELOG.md)
- [Commits](siimon/prom-client@v14.2.0...v15.0.0)

---
updated-dependencies:
- dependency-name: prom-client
  dependency-type: direct:production
  update-type: version-update:semver-major
...

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: achingbrain <alex@achingbrain.net>
  • Loading branch information
dependabot[bot] and achingbrain committed Oct 25, 2023
1 parent ab2c1f6 commit f9d1c07
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@libp2p/tcp": "^8.0.0",
"aegir": "^41.0.2",
"libp2p": "^0.46.0",
"prom-client": "^14.2.0"
"prom-client": "^15.0.0"
},
"private": true
}
2 changes: 1 addition & 1 deletion packages/metrics-prometheus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@libp2p/logger": "^3.0.3",
"it-foreach": "^2.0.3",
"it-stream-types": "^2.0.1",
"prom-client": "^14.2.0"
"prom-client": "^15.0.0"
},
"devDependencies": {
"@libp2p/interface-compliance-tests": "^4.1.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/metrics-prometheus/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@

import { logger } from '@libp2p/logger'
import each from 'it-foreach'
import { collectDefaultMetrics, type DefaultMetricsCollectorConfiguration, register, type Registry } from 'prom-client'
import { collectDefaultMetrics, type DefaultMetricsCollectorConfiguration, register, type Registry, type RegistryContentType } from 'prom-client'
import { PrometheusCounterGroup } from './counter-group.js'
import { PrometheusCounter } from './counter.js'
import { PrometheusMetricGroup } from './metric-group.js'
Expand Down Expand Up @@ -126,7 +126,7 @@ export interface PrometheusMetricsInit {
/**
* prom-client options to pass to the `collectDefaultMetrics` function
*/
defaultMetrics?: DefaultMetricsCollectorConfiguration
defaultMetrics?: DefaultMetricsCollectorConfiguration<RegistryContentType>

/**
* All metrics in prometheus are global so to prevent clashes in naming
Expand Down

0 comments on commit f9d1c07

Please sign in to comment.