---
title: "quick-lru 8.0.0 Breaking Changes on npm | Since.dev"
description: "What each quick-lru release removed, renamed or changed: 11 breaking changes in 1 version on npm, each with its source."
canonical_url: https://since.dev/packages/npm/quick-lru
last_updated: 2026-12-04
---

# 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

Latest version `8.0.0`, released November 14, 2026. [Source repository](https://github.com/sindresorhus/quick-lru)

Its 8.0.0 release requires [Node.js 22](https://since.dev/calendar/nodejs/22.md) or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

## quick-lru 8.0.0 breaking changes

quick-lru 8.0.0, released November 14, 2026: 11 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](https://github.com/sindresorhus/quick-lru/releases/tag/v8.0.0)
- **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](https://github.com/sindresorhus/quick-lru/releases/tag/v8.0.0)
- **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](https://github.com/sindresorhus/quick-lru/releases/tag/v8.0.0)
- **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](https://github.com/sindresorhus/quick-lru/releases/tag/v8.0.0)
- **Configuration changed**  

The package now requires Node.js 22. Users on older Node.js versions must upgrade before using this release. [github.com](https://github.com/sindresorhus/quick-lru/releases/tag/v8.0.0)
- **Signature changed** `default.entriesAscending`  

Was entriesAscending(): IterableIterator<\[KeyType, ValueType\]>; now entriesAscending(): ReturnType\<Map\<KeyType, ValueType>\['entries'\]>. [npmjs.com](https://www.npmjs.com/package/quick-lru/v/8.0.0)
- **Signature changed** `default.entriesDescending`  

Was entriesDescending(): IterableIterator<\[KeyType, ValueType\]>; now entriesDescending(): ReturnType\<Map\<KeyType, ValueType>\['entries'\]>. [npmjs.com](https://www.npmjs.com/package/quick-lru/v/8.0.0)
- **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](https://www.npmjs.com/package/quick-lru/v/8.0.0)
- **Signature changed** `default.keys`  

Was keys(): IterableIterator\<KeyType>; now keys(): ReturnType\<Map\<KeyType, ValueType>\['keys'\]>. [npmjs.com](https://www.npmjs.com/package/quick-lru/v/8.0.0)
- **Signature changed** `default.values`  

Was values(): IterableIterator\<ValueType>; now values(): ReturnType\<Map\<KeyType, ValueType>\['values'\]>. [npmjs.com](https://www.npmjs.com/package/quick-lru/v/8.0.0)
- **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](https://www.npmjs.com/package/quick-lru/v/8.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
