Skip to content

build(metrics): replace deprecated prom-client with @prometheus-io/client - #9

Merged
iflov merged 1 commit into
mainfrom
iflov/prometheus-client
Sep 2, 2026
Merged

iflov merged 1 commit into
mainfrom
iflov/prometheus-client

Conversation

@iflov

@iflov iflov commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Replace prom-client 15.1.3 (marked deprecated on npm) with the renamed @prometheus-io/client 0.16.1 from the same maintainers. The 0.16.0 breaking changes (MetricType enum removed, AggregatorRegistry deprecated, internal hashMap replaced, Node <22 dropped) touch nothing this repository uses, so this is an import rename in 9 files plus comment updates.
  • Bump @nestjs/swagger and @nestjs/typeorm to 12.0.1.
  • Drop the unreferenced ts-loader and tsconfig-paths dev dependencies left over from the CommonJS era. ts-node stays because the TypeORM CLI runs through it.

Verification

check result
pnpm check:scaffold, lint, typecheck, build pass
pnpm test 317 passed
pnpm test:e2e (Docker Postgres, includes /v1/system/metrics scrape) 20 passed

🤖 Generated with Claude Code

https://claude.ai/code/session_01QXkjKrgep3qeXKza5ztu3r

…ient

prom-client 15.1.3 is marked deprecated on npm in favour of the renamed
@prometheus-io/client 0.16.1 from the same maintainers. The 0.16.0
breaking changes (MetricType enum removed, AggregatorRegistry deprecated,
internal hashMap replaced, Node <22 dropped) touch nothing this repository
uses; the Registry/Counter/Gauge/Histogram/collectDefaultMetrics surface
is unchanged, so this is an import rename plus comment updates.

Also bump @nestjs/swagger and @nestjs/typeorm to 12.0.1, and drop the
unreferenced ts-loader and tsconfig-paths dev dependencies left over from
the CommonJS era. ts-node stays because the TypeORM CLI runs through it.

Verified: check:scaffold, lint, typecheck, build, test (317), test:e2e (20).

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QXkjKrgep3qeXKza5ztu3r
@iflov
iflov merged commit 97144b2 into main Sep 2, 2026
1 check passed
@iflov
iflov deleted the iflov/prometheus-client branch September 2, 2026 04:35
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.

1 participant