quick-lru breaking changes
quick-lru 8.0.0 (November 14, 2026) is its newest release with breaking changes, 11 of them. The first: Behavior changed maxAge. Every breaking API change we have recorded in quick-lru on npm: 11 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 8.0.0, released November 14, 2026. Source repository
Its 8.0.0 release requires Node.js 22 or later. Node.js end of life dates.
quick-lru 8.0.0 breaking changes
- Behavior changed
maxAge
A negative or NaN maxAge now throws a TypeError instead of being accepted. Code passing such values must be corrected. github.com - Behavior changed
maxSize
A maxSize that is not a whole number greater than 0 or Infinity now throws a TypeError, including in .resize(). Fractions and strings no longer work. github.com - Behavior changed
onEviction
The onEviction callback is now called after the item is removed from the cache rather than right before. Code relying on the item still being present during the callback must change. github.com - Behavior changed
quick-lru.keys
The .keys(), .values() and iterator now go from the oldest item to the newest. Code that depended on the previous order must be updated. github.com - Configuration changed
The package now requires Node.js 22. Users on older Node.js versions must upgrade before using this release. github.com - Signature changed
default.entriesAscending
Was entriesAscending(): IterableIterator<[KeyType, ValueType]>; now entriesAscending(): ReturnType<Map<KeyType, ValueType>['entries']>. npmjs.com - Signature changed
default.entriesDescending
Was entriesDescending(): IterableIterator<[KeyType, ValueType]>; now entriesDescending(): ReturnType<Map<KeyType, ValueType>['entries']>. npmjs.com - Signature changed
default.forEach
Was forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void; now forEach(callbackFunction: (value: ValueType, key: KeyType, map: QuickLRU<KeyType, ValueType>) => void, thisArgument?: any): void. npmjs.com - Signature changed
default.keys
Was keys(): IterableIterator<KeyType>; now keys(): ReturnType<Map<KeyType, ValueType>['keys']>. npmjs.com - Signature changed
default.values
Was values(): IterableIterator<ValueType>; now values(): ReturnType<Map<KeyType, ValueType>['values']>. npmjs.com - Signature changed
Options
Was type Options<KeyType, ValueType> = {readonly maxAge?: number; readonly maxSize: number; onEviction?: (key: KeyType, value: ValueType) => void;}; now type Options<KeyType = unknown, ValueType = unknown> = {readonly maxAge?: number... npmjs.com
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.