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:
Julius Volz 2024-09-17 16:47:34 +02:00 committed by GitHub
commit 6c5e2f8fb9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 11 additions and 9 deletions

View file

@ -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",

View file

@ -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);

View file

@ -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": {