lru-cache breaking changes
Updated December 4, 2026
On this page
Latest version 11.5.4, released November 29, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 10.0.0 to 11.5.1: 39 breaking changes in 5 versions.
- From 8.0.0 to 11.5.1: 43 breaking changes in 7 versions.
lru-cache 11.5.1 breaking changes
- Signature changed
LRUCache.FetchOptionsNoContext.context
Was context?: undefined; now context?: FC. npmjs.com - Signature changed
LRUCache.MemoOptionsNoContext.context
Was context?: undefined; now context?: FC. npmjs.com
lru-cache 11.4.0 breaking changes
- Signature changed
LRUCache.fetch
Was fetch(k: K, fetchOptions: unknown extends FC ? LRUCache.FetchOptions<K, V, FC> : FC extends undefined | void ? LRUCache.FetchOptionsNoContext<K, V> : LRUCache.FetchOptionsWithContext<K, V, FC>): Promise<undefined | V> fetch(k: unknown... npmjs.com - Signature changed
LRUCache.FetcherFetchOptions.status
Was status?: Status<K, V>; now status?: Status<K, V, FC>. npmjs.com - Signature changed
LRUCache.FetchOptionsNoContext
Was interface FetchOptionsNoContext<K, V> extends FetchOptions<K, V, undefined>; now interface FetchOptionsNoContext<K, V, FC extends undefined | void = undefined> extends FetchOptions<K, V, FC>. npmjs.com - Signature changed
LRUCache.forceFetch
Was forceFetch(k: K, fetchOptions: unknown extends FC ? LRUCache.FetchOptions<K, V, FC> : FC extends undefined | void ? LRUCache.FetchOptionsNoContext<K, V> : LRUCache.FetchOptionsWithContext<K, V, FC>): Promise<V> forceFetch(k: unknown... npmjs.com - Signature changed
LRUCache.GetOptions.status
Was status?: Status<K, V>; now status?: Status<K, V, FC>. npmjs.com - Signature changed
LRUCache.HasOptions.status
Was status?: Status<K, V>; now status?: Status<K, V, FC>. npmjs.com - Signature changed
LRUCache.memo
Was memo(k: K, memoOptions: unknown extends FC ? LRUCache.MemoOptions<K, V, FC> : FC extends undefined | void ? LRUCache.MemoOptionsNoContext<K, V> : LRUCache.MemoOptionsWithContext<K, V, FC>): V memo(k: unknown extends FC ? K : FC extends... npmjs.com - Signature changed
LRUCache.MemoizerMemoOptions.status
Was status?: Status<K, V>; now status?: Status<K, V, FC>. npmjs.com - Signature changed
LRUCache.MemoOptions.status
Was status?: Status<K, V>; now status?: Status<K, V, FC>. npmjs.com - Signature changed
LRUCache.MemoOptionsNoContext
Was interface MemoOptionsNoContext<K, V> extends MemoOptions<K, V, undefined>; now interface MemoOptionsNoContext<K, V, FC extends undefined | void = undefined> extends MemoOptions<K, V, FC>. npmjs.com
And 3 more in this version. Sign up to see every change
lru-cache 11.3.1 breaking changes
- Signature changed
LRUCache.Status.get
Was get?: 'stale' | 'hit' | 'miss'; now get?: 'stale' | 'hit' | 'miss' | 'fetching' | 'stale-fetching'. npmjs.com
lru-cache 11.3.0 breaking changes
- Signature changed
LRUCache.FetcherFetchOptions.status
Was status?: Status<V>; now status?: Status<K, V>. npmjs.com - Signature changed
LRUCache.forEach
Was forEach(fn: (v: V, k: K, self: LRUCache<K, V, FC>) => any, thisp?: any): void; now forEach(fn: (v: V, k: K, self: LRUCache<K, V, FC>) => unknown, thisp?: unknown): void. npmjs.com - Signature changed
LRUCache.GetOptions.status
Was status?: Status<V>; now status?: Status<K, V>. npmjs.com - Signature changed
LRUCache.HasOptions.status
Was status?: Status<V>; now status?: Status<K, V>. npmjs.com - Signature changed
LRUCache.MemoizerMemoOptions.status
Was status?: Status<V>; now status?: Status<K, V>. npmjs.com - Signature changed
LRUCache.MemoOptions.status
Was status?: Status<V>; now status?: Status<K, V>. npmjs.com - Signature changed
LRUCache.rforEach
Was rforEach(fn: (v: V, k: K, self: LRUCache<K, V, FC>) => any, thisp?: any): void; now rforEach(fn: (v: V, k: K, self: LRUCache<K, V, FC>) => unknown, thisp?: unknown): void. npmjs.com - Signature changed
LRUCache.set
Was set(k: K, v: V | BackgroundFetch<V> | undefined, setOptions?: LRUCache.SetOptions<K, V, FC>): this; now set(k: K, v: V | undefined, setOptions?: LRUCache.SetOptions<K, V, FC>): this. npmjs.com - Signature changed
LRUCache.SetOptions.status
Was status?: Status<V>; now status?: Status<K, V>. npmjs.com - Signature changed
LRUCache.Status
Was interface Status<V>; now interface Status<K, V>. npmjs.com
And 2 more in this version. Sign up to see every change
lru-cache 11.2.6 breaking changes
- Renamed
min:BackgroundFetch
Use BackgroundFetch instead. npmjs.com - Renamed
min:DisposeTask
Use DisposeTask instead. npmjs.com - Renamed
min:Index
Use Index instead. npmjs.com - Renamed
min:LRUCache
Use LRUCache instead. npmjs.com - Renamed
min:NumberArray
Use NumberArray instead. npmjs.com - Renamed
min:Perf
Use Perf instead. npmjs.com - Renamed
min:PosInt
Use PosInt instead. npmjs.com - Renamed
min:Stack
Use Stack instead. npmjs.com - Renamed
min:StackLike
Use StackLike instead. npmjs.com - Renamed
min:UintArray
Use UintArray instead. npmjs.com
And 1 more in this version. Sign up to see every change
lru-cache 10.0.0 breaking changes
- Signature changed
BackgroundFetch
Was type BackgroundFetch<V> = Promise<V | undefined | void> & {__returned: BackgroundFetch<V> | undefined; __abortController: AbortController; __staleWhileFetching: V | undefined;}; now type BackgroundFetch<V> = Promise<V | undefined> &... npmjs.com - Signature changed
LRUCache.fetch
The public method type signature changed so fetch resolves to undefined instead of void; code relying on the old type may need updating. npmjs.com - Signature changed
LRUCache.Fetcher
Was type Fetcher<K, V, FC = unknown> = (key: K, staleValue: V | undefined, options: FetcherOptions<K, V, FC>) => Promise<V | void | undefined> | V | void | undefined; now type Fetcher<K, V, FC = unknown> = (key: K, staleValue: V |... npmjs.com
Older versions
2 older versions, each with its first changes. Sign up to see every change
Show 2 older versions
lru-cache 9.0.0 breaking changes
- Removed
default
The package no longer has a default export, so code that imports the default must switch to a named import. npmjs.com
lru-cache 8.0.0 breaking changes
- Removed
The AbortController/AbortSignal polyfill is gone, so the runtime must provide these natively. github.com - Removed
default.del
Use delete instead. npmjs.com
And 69 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.