Vigia

Aktualizacja lru-cache z 10.x do 11.x

Porównanie publicznego API lru-cache 10.4.3 i 11.5.3, obliczone automatycznie na podstawie typów TypeScript. Zmieniona sygnatura to możliwa zmiana niekompatybilna, a nie pewność.

Podsumowanie

Usunięte ścieżki importu1
Usunięte eksporty0
Zmienione sygnatury0
Usunięte składowe klas lub interfejsów1
Zmienione składowe klas lub interfejsów9
Nowo wycofane0
Zmiany wymagań (engines, zależności peer)1
Nowe eksporty1

Usunięte ścieżki importu

Usunięte ścieżki importu
lru-cache/min

Usunięte eksporty

Nie wykryto.

Zmienione sygnatury

Nie wykryto.

Usunięte składowe klas lub interfejsów

memberimportPrzed
ZeroArray.static __@species@45lru-cache(arrayLength?: number | undefined): any[] | <T>(arrayLength: number): T[] | <T>(...items: T[]): T[]

Zmienione składowe klas lub interfejsów

memberPrzedPo
LRUCache.set(k: K, v: V | BackgroundFetch<V> | undefined, setOptions?: SetOptions<K, V, FC> | undefined): LRUCache<K, V, FC>(k: K, v: V | undefined, setOptions?: SetOptions<K, V, FC> | undefined): LRUCache<K, V, FC>
LRUCache.memo(k: K, memoOptions: unknown extends FC ? MemoOptions<K, V, FC> : FC extends void | undefined ? MemoOptionsNoContext<K, V> : MemoOptionsWithContext<K, V, FC>): V | (k: unknown extends FC ? K : FC extends void | undefined ? K : never, memoOptions?: (unknown extends FC ? MemoOptions<K, V, FC> : FC exte…(k: K, memoOptions: unknown extends FC ? MemoOptions<K, V, FC> : FC extends void | undefined ? MemoOptionsNoContext<K, V, FC> : MemoOptionsWithContext<K, V, FC>): V | (k: unknown extends FC ? K : FC extends void | undefined ? K : never, memoOptions?: (unknown extends FC ? MemoOptions<K, V, FC> : FC …
LRUCache.fetch(k: K, fetchOptions: unknown extends FC ? FetchOptions<K, V, FC> : FC extends void | undefined ? FetchOptionsNoContext<K, V> : FetchOptionsWithContext<K, V, FC>): Promise<V | undefined> | (k: unknown extends FC ? K : FC extends void | undefined ? K : never, fetchOptions?: (unknown extends FC ? Fetch…(k: K, fetchOptions: unknown extends FC ? FetchOptions<K, V, FC> : FC extends void | undefined ? FetchOptionsNoContext<K, V, FC> : FetchOptionsWithContext<K, V, FC>): Promise<V | undefined> | (k: unknown extends FC ? K : FC extends void | undefined ? K : never, fetchOptions?: (unknown extends FC ? F…
LRUCache.forEach(fn: (v: V, k: K, self: LRUCache<K, V, FC>) => any, thisp?: any): void(fn: (v: V, k: K, self: LRUCache<K, V, FC>) => unknown, thisp?: unknown): void
LRUCache.rvalues(): Generator<V | BackgroundFetch<V> | undefined, void, unknown>(): Generator<V | undefined, void, unknown>
LRUCache.rentries(): Generator<(K | V | BackgroundFetch<V> | undefined)[], void, unknown>(): Generator<(K | V)[], void, unknown>
LRUCache.rforEach(fn: (v: V, k: K, self: LRUCache<K, V, FC>) => any, thisp?: any): void(fn: (v: V, k: K, self: LRUCache<K, V, FC>) => unknown, thisp?: unknown): void
LRUCache.forceFetch(k: K, fetchOptions: unknown extends FC ? FetchOptions<K, V, FC> : FC extends void | undefined ? FetchOptionsNoContext<K, V> : FetchOptionsWithContext<K, V, FC>): Promise<V> | (k: unknown extends FC ? K : FC extends void | undefined ? K : never, fetchOptions?: (unknown extends FC ? FetchOptions<K, V…(k: K, fetchOptions: unknown extends FC ? FetchOptions<K, V, FC> : FC extends void | undefined ? FetchOptionsNoContext<K, V, FC> : FetchOptionsWithContext<K, V, FC>): Promise<V> | (k: unknown extends FC ? K : FC extends void | undefined ? K : never, fetchOptions?: (unknown extends FC ? FetchOptions<…
LRUCache.static unsafeExposeInternals<K extends {}, V extends {}, FC extends unknown = unknown>(c: LRUCache<K, V, FC>): { starts: ZeroArray | undefined; ttls: ZeroArray | undefined; sizes: ZeroArray | undefined; keyMap: Map<K, number>; keyList: (K | undefined)[]; valList: (V | BackgroundFetch<V> | undefined)[]; next: NumberArray; prev:…<K extends {}, V extends {}, FC extends unknown = unknown>(c: LRUCache<K, V, FC>): { starts: ZeroArray | undefined; ttls: ZeroArray | undefined; autopurgeTimers: any[] | undefined; sizes: ZeroArray | undefined; keyMap: Map<K, number>; keyList: (K | undefined)[]; valList: (V | BackgroundFetch<V> | un…

Nowo wycofane

Nie wykryto.

Zmiany wymagań (engines, zależności peer)

PrzedPo
engines.node—20 || >=22
Nowe eksporty (1)
importexportkind
lru-cachePerftype

Najczęściej zadawane pytania

Jakie są zmiany niekompatybilne przy aktualizacji lru-cache z 10 do 11?

Między lru-cache 10.4.3 a 11.5.3 Vigia znalazła 0 usuniętych eksportów, 0 zmienionych sygnatur i 10 usuniętych lub zmienionych składowych klas lub interfejsów.

Co zostało wycofane w lru-cache 11?

0 eksportów lub składowych oznaczono w lru-cache 11.5.3 jako wycofane.

Dla agentów

GET https://vigia.coredls.cloud/v1/packages/npm/lru-cache/upgrade?from=10.4.3&to=11.5.3