Skip to content

Commit

Permalink
Replace promjs with promjs-plus
Browse files Browse the repository at this point in the history
`promjs` is deprecated. Moving to `promjs-plus` instead.
  • Loading branch information
thibmeu committed Mar 10, 2025
1 parent a3928ce commit 5ad40e8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@sentry/cli": "2.26.0",
"@sentry/types": "7.95.0",
"cron-parser": "4.9.0",
"promjs": "0.4.2",
"promjs-plus": "0.5.4",
"toucan-js": "3.3.1",
"typescript": "5.3.3"
}
Expand Down
3 changes: 1 addition & 2 deletions src/context/metrics.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
// Copyright (c) 2023 Cloudflare, Inc.
// SPDX-License-Identifier: Apache-2.0

import { CounterType, HistogramType, Labels, RegistryType } from 'promjs';
import { Registry } from 'promjs/registry';
import { CounterType, HistogramType, Labels, RegistryType, Registry } from 'promjs-plus';
import { Bindings } from '../bindings';

export const KeyError = {
Expand Down
2 changes: 1 addition & 1 deletion src/errors.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) 2023 Cloudflare, Inc.
// SPDX-License-Identifier: Apache-2.0

import { Labels } from 'promjs';
import { Labels } from 'promjs-plus';
import { Context } from './context';
import { JSONResponse } from './utils/jsonResponse';

Expand Down
2 changes: 1 addition & 1 deletion src/utils/promises.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) 2023 Cloudflare, Inc.
// SPDX-License-Identifier: Apache-2.0

import { Labels } from 'promjs';
import { Labels } from 'promjs-plus';
import { Context } from '../context';

export const DEFAULT_RETRIES = 2;
Expand Down

0 comments on commit 5ad40e8

Please sign in to comment.