mirror of
https://github.com/prometheus/prometheus
synced 2024-12-25 16:02:28 +00:00
Merge pull request #12829 from arukiidou/chore/bump-webui
build(deps): bump lru-cache from 7.18.3 to 11.0.1 in /web/ui
This commit is contained in:
commit
6c5e2f8fb9
@ -30,7 +30,7 @@
|
||||
"homepage": "https://github.com/prometheus/prometheus/blob/main/web/ui/module/codemirror-promql/README.md",
|
||||
"dependencies": {
|
||||
"@prometheus-io/lezer-promql": "0.300.0-beta.0",
|
||||
"lru-cache": "^7.18.3"
|
||||
"lru-cache": "^11.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@codemirror/autocomplete": "^6.17.0",
|
||||
|
@ -14,7 +14,7 @@
|
||||
import { FetchFn } from './index';
|
||||
import { Matcher } from '../types';
|
||||
import { labelMatchersToString } from '../parser';
|
||||
import LRUCache from 'lru-cache';
|
||||
import { LRUCache } from 'lru-cache';
|
||||
|
||||
export interface MetricMetadata {
|
||||
type: string;
|
||||
@ -292,7 +292,10 @@ class Cache {
|
||||
private flags: Record<string, string>;
|
||||
|
||||
constructor(config?: CacheConfig) {
|
||||
const maxAge: LRUCache.LimitedByTTL = { ttl: config && config.maxAge ? config.maxAge : 5 * 60 * 1000 };
|
||||
const maxAge = {
|
||||
ttl: config && config.maxAge ? config.maxAge : 5 * 60 * 1000,
|
||||
ttlAutopurge: false,
|
||||
};
|
||||
this.completeAssociation = new LRUCache<string, Map<string, Set<string>>>(maxAge);
|
||||
this.metricMetadata = {};
|
||||
this.labelValues = new LRUCache<string, string[]>(maxAge);
|
||||
|
11
web/ui/package-lock.json
generated
11
web/ui/package-lock.json
generated
@ -163,7 +163,7 @@
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@prometheus-io/lezer-promql": "0.300.0-beta.0",
|
||||
"lru-cache": "^7.18.3"
|
||||
"lru-cache": "^11.0.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@codemirror/autocomplete": "^6.17.0",
|
||||
@ -7050,12 +7050,11 @@
|
||||
}
|
||||
},
|
||||
"node_modules/lru-cache": {
|
||||
"version": "7.18.3",
|
||||
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz",
|
||||
"integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==",
|
||||
"license": "ISC",
|
||||
"version": "11.0.1",
|
||||
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.1.tgz",
|
||||
"integrity": "sha512-CgeuL5uom6j/ZVrg7G/+1IXqRY8JXX4Hghfy5YE0EhoYQWvndP1kufu58cmZLNIDKnRhZrXfdS9urVWx98AipQ==",
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
"node": "20 || >=22"
|
||||
}
|
||||
},
|
||||
"node_modules/lz-string": {
|
||||
|
Loading…
Reference in New Issue
Block a user