Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade prom-client from 12.0.0 to 15.1.3 #7

Merged
merged 1 commit into from
Nov 10, 2024

Conversation

doperiddle
Copy link
Owner

snyk-top-banner

Snyk has created this PR to upgrade prom-client from 12.0.0 to 15.1.3.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


⚠️ Warning: This PR contains major version upgrade(s), and may be a breaking change.

  • The recommended version is 15 versions ahead of your current version.

  • The recommended version was released on 4 months ago.

Release notes
Package name: prom-client
  • 15.1.3 - 2024-06-27

    What's Changed

    New Contributors

    Full Changelog: v15.1.2...v15.1.3

  • 15.1.2 - 2024-04-16

    What's Changed

    • Enable bun.js by catching NotImplemented errorby @ owlcode in #624
    • Add Registry.PROMETHEUS_CONTENT_TYPE and Registry.OPENMETRICS_CONTENT_TYPE constants to the TypeScript types by @ SimenB in #626
    • Correctly read and set contentType top level export by @ SimenB in #625

    New Contributors

    Full Changelog: v15.1.1...v15.1.2

  • 15.1.1 - 2024-03-26

    What's Changed

    • perf: improve the memory usage of histogram by @ xsbchen in #606
    • fix: avoid updating exemplar values during subsequent metric changes by @ psimk in #620

    New Contributors

    Full Changelog: v15.1.0...v15.1.1

  • 15.1.0 - 2023-12-15

    Changed

    • remove unnecessary loop from osMemoryHeapLinux
    • Improve performance of hashObject by using pre-sorted array of label names
    • Fix type of collectDefaultMetrics.metricsList

    Added

    • Allow Pushgateway to now require job names for compatibility with Gravel Gateway.
    • Allow histogram.startTime() to be used with exemplars.

    New Contributors

    Full Changelog: v15.0.0...v15.1.0

  • 15.0.0 - 2023-10-09

    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: v14.2.0...v15.0.0

  • 15.0.0-1 - 2023-03-13

    What's Changed

    • fix: correct exemplar formating (#556) 4a800f4
    • perf: improve performance of rendering metrics to Prometheus string (#549) a38aa2b
    • fix: Disable content encoding for pushgateway delete requests (#551) 0f872ff

    Full Changelog: v15.0.0-0...v15.0.0-1

  • 15.0.0-0 - 2023-03-09

    What's Changed

    Breaking changes

    • drop support for Node.js versions 10, 12 and 17

    New Contributors

    Full Changelog: v14.2.0...v15.0.0-0

  • 14.2.0 - 2023-03-06

    Changed

    • Refactor getMetricAsPrometheusString method in the Registry class to use Array.prototype.join
      instead of loop of string concatenations.
    • Also use Array.prototype.map, and object spread instead of an explicit for loop
    • changed: updated the sample output in example/default-metrics.js
    • summary metrics now has a pruneAgedBuckets config parameter
      to remove entries without any new values in the last maxAgeSeconds.
      Default is false (old behavior)

    Added

    • Add get method to type definitions of metric classes

    New Contributors

    Full Changelog: v14.1.1...v14.2.0

  • 14.1.1 - 2022-12-31

    What's Changed

    • Fix incompatibility with perf_hooks accross nodejs versions by @ Fadoli in #515

    New Contributors

    Full Changelog: v14.1.0...v14.1.1

  • 14.1.0 - 2022-08-23

    Changed

    • types: converted all the generic Metric types to be optional

    • The done() functions returned by gauge.startTimer() and
      summary.startTimer() now return the timed duration. Histograms already had
      this behavior.

    • types: fixed type for registry.getMetricsAsArray()

    • Improve performance of gague.inc() and gauge.dec() by calling hashObject() once.

    Added

    • The processResources metric was added, which keeps a track of all sorts of
      active resources. It consists of the following gauges:

      • nodejs_active_resources - Number of active resources that are currently
        keeping the event loop alive, grouped by async resource type.
      • nodejs_active_resources_total - Total number of active resources.
        It is supposed to provide the combined result of the processHandles and
        processRequests metrics along with information about any other types of
        async resources that these metrics do not keep a track of (like timers).
    • Support gzipped pushgateway requests

    New Contributors

    Full Changelog: v14.0.1...v14.1.0

  • 14.0.1 - 2021-11-02
  • 14.0.0 - 2021-09-19
  • 13.2.0 - 2021-08-09
  • 13.1.0 - 2021-01-25
  • 13.0.0 - 2020-12-16
  • 12.0.0 - 2020-02-20
from prom-client GitHub release notes

Important

  • Warning: This PR contains a major version upgrade, and may be a breaking change.
  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

Snyk has created this PR to upgrade prom-client from 12.0.0 to 15.1.3.

See this package in npm:
prom-client

See this project in Snyk:
https://app.snyk.io/org/doperiddle/project/09cea5ed-d730-4815-9858-2b92e1f152c3?utm_source=github&utm_medium=referral&page=upgrade-pr
@doperiddle doperiddle merged commit 79fac14 into master Nov 10, 2024
1 check passed
@doperiddle doperiddle deleted the snyk-upgrade-4f30bc5497b4b66a758126264d7c538f branch November 10, 2024 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants