mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08: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",
|
"homepage": "https://github.com/prometheus/prometheus/blob/main/web/ui/module/codemirror-promql/README.md",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@prometheus-io/lezer-promql": "0.300.0-beta.0",
|
"@prometheus-io/lezer-promql": "0.300.0-beta.0",
|
||||||
"lru-cache": "^7.18.3"
|
"lru-cache": "^11.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@codemirror/autocomplete": "^6.17.0",
|
"@codemirror/autocomplete": "^6.17.0",
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
import { FetchFn } from './index';
|
import { FetchFn } from './index';
|
||||||
import { Matcher } from '../types';
|
import { Matcher } from '../types';
|
||||||
import { labelMatchersToString } from '../parser';
|
import { labelMatchersToString } from '../parser';
|
||||||
import LRUCache from 'lru-cache';
|
import { LRUCache } from 'lru-cache';
|
||||||
|
|
||||||
export interface MetricMetadata {
|
export interface MetricMetadata {
|
||||||
type: string;
|
type: string;
|
||||||
|
@ -292,7 +292,10 @@ class Cache {
|
||||||
private flags: Record<string, string>;
|
private flags: Record<string, string>;
|
||||||
|
|
||||||
constructor(config?: CacheConfig) {
|
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.completeAssociation = new LRUCache<string, Map<string, Set<string>>>(maxAge);
|
||||||
this.metricMetadata = {};
|
this.metricMetadata = {};
|
||||||
this.labelValues = new LRUCache<string, string[]>(maxAge);
|
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",
|
"license": "Apache-2.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@prometheus-io/lezer-promql": "0.300.0-beta.0",
|
"@prometheus-io/lezer-promql": "0.300.0-beta.0",
|
||||||
"lru-cache": "^7.18.3"
|
"lru-cache": "^11.0.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@codemirror/autocomplete": "^6.17.0",
|
"@codemirror/autocomplete": "^6.17.0",
|
||||||
|
@ -7050,12 +7050,11 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/lru-cache": {
|
"node_modules/lru-cache": {
|
||||||
"version": "7.18.3",
|
"version": "11.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz",
|
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.0.1.tgz",
|
||||||
"integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==",
|
"integrity": "sha512-CgeuL5uom6j/ZVrg7G/+1IXqRY8JXX4Hghfy5YE0EhoYQWvndP1kufu58cmZLNIDKnRhZrXfdS9urVWx98AipQ==",
|
||||||
"license": "ISC",
|
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12"
|
"node": "20 || >=22"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/lz-string": {
|
"node_modules/lz-string": {
|
||||||
|
|
Loading…
Reference in a new issue