Vigia

Nâng cấp lru-cache từ 10.x lên 11.x

So sánh API công khai của lru-cache 10.4.3 và 11.5.3, được tính tự động từ kiểu TypeScript. Chữ ký thay đổi là thay đổi có thể không tương thích, không phải điều chắc chắn.

Tóm tắt

Đường dẫn import bị xóa1
Export bị xóa0
Chữ ký thay đổi0
Thành viên lớp hoặc interface bị xóa1
Thành viên lớp hoặc interface thay đổi9
Mới bị ngừng hỗ trợ0
Thay đổi yêu cầu (engines, phụ thuộc peer)1
Export mới1

Đường dẫn import bị xóa

Đường dẫn import bị xóa
lru-cache/min

Export bị xóa

Không phát hiện.

Chữ ký thay đổi

Không phát hiện.

Thành viên lớp hoặc interface bị xóa

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

Thành viên lớp hoặc interface thay đổi

memberTrướcSau
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…

Mới bị ngừng hỗ trợ

Không phát hiện.

Thay đổi yêu cầu (engines, phụ thuộc peer)

TrướcSau
engines.node—20 || >=22
Export mới (1)
importexportkind
lru-cachePerftype

Câu hỏi thường gặp

Nâng cấp lru-cache từ 10 lên 11 có những thay đổi không tương thích nào?

Giữa lru-cache 10.4.3 và 11.5.3, Vigia tìm thấy 0 export bị xóa, 0 chữ ký thay đổi và 10 thành viên lớp hoặc interface bị xóa hay thay đổi.

Những gì bị ngừng hỗ trợ trong lru-cache 11?

0 export hoặc thành viên mới bị đánh dấu ngừng hỗ trợ trong lru-cache 11.5.3.

Dành cho tác tử

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