NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm
npm, #1076 most downloaded on npm
Simple “Least Recently Used” (LRU) cache
Latest stable
7.3.0
Last release 1 years ago
10 Oct 2025
Release timing varies
gaps range from 2 weeks to 1.6 years
Nearly every release is documented
notes for 18 of 20 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
20 releases · first in 2017
Drag across the ruler to compare, or tap a release to open it.
Add .maxAge getter (#54) 9cc10b4
.maxAge getter (#54) 9cc10b4https://github.com/sindresorhus/quick-lru/compare/v7.2.0...v7.3.0
Add evict() method to remove least recently used items 647fdea
evict() method to remove least recently used items 647fdeahttps://github.com/sindresorhus/quick-lru/compare/v7.1.0...v7.2.0
Add `.expiresIn()` method (#53) 6c0efa5
.expiresIn() method (#53) 6c0efa5https://github.com/sindresorhus/quick-lru/compare/v7.0.1...v7.1.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fix logging the class instance when there are circular objects cc1f31a
https://github.com/sindresorhus/quick-lru/compare/v7.0.0...v7.0.1
https://github.com/sindresorhus/quick-lru/compare/v6.1.2...v7.0.0
.maxSize getter 187fa5bhttps://github.com/sindresorhus/quick-lru/compare/v6.1.2...v7.0.0
Fix return value for set() method e964346
set() method e964346https://github.com/sindresorhus/quick-lru/compare/v6.1.1...v6.1.2
Fix internal usage of toStringTag (#39) 95593b6
toStringTag (#39) 95593b6https://github.com/sindresorhus/quick-lru/compare/v6.1.0...v6.1.1
Make QuickLRU a Map subclass (#37) 2dd5b52
QuickLRU a Map subclass (#37) 2dd5b52https://github.com/sindresorhus/quick-lru/compare/v6.0.2...v6.1.0
Fix incorrect maxAge being set when used on .set() (#36) 6a9c875
maxAge being set when used on .set() (#36) 6a9c875https://github.com/sindresorhus/quick-lru/compare/v6.0.1...v6.0.2
Fix expiration time not being set when setting the value the second time (#33) 6033bb7
https://github.com/sindresorhus/quick-lru/compare/v6.0.0...v6.0.1
This package is now pure ESM. Please read this. If you cannot move to ESM and want the new improvements, there's a fork that backports them: npm i @al
npm i @alloc/quick-lru.maxAge option (#27) 85f49e2.resize() method (#24) debb8de.size (#23) 608e459https://github.com/sindresorhus/quick-lru/compare/v5.1.1...v6.0.0
Ensure TypeScript generics are propagated to options (#21) 0e67d68
https://github.com/sindresorhus/quick-lru/compare/v5.1.0...v5.1.1
Add `onEviction` option (#20) b941c2f
onEviction option (#20) b941c2fhttps://github.com/sindresorhus/quick-lru/compare/v5.0.0...v5.1.0
Fix .size not matching the maxSize option (#16) e5b868b
.size not matching the maxSize option (#16) e5b868bhttps://github.com/sindresorhus/quick-lru/compare/v4.0.1...v5.0.0
Fix cache size becoming double of the defined size (#13) d6c7e11
https://github.com/sindresorhus/quick-lru/compare/v4.0.0...v4.0.1
Breaking for TypeScript users only:
Breaking for TypeScript users only:
import quickLru from 'quick-lru'; to import quickLru = require('quick-lru');https://github.com/sindresorhus/quick-lru/compare/v3.0.0...v4.0.0
Require Node.js 8 (#11) 99cf7d4
Breaking:
Enhancements:
Return a boolean from .delete() indicating whether the item was deleted (#9) afc977b
Breaking:
Other:
.delete() indicating whether the item was deleted (#9) afc977bNothing published for this version
Nothing published for this version
One column per quarter.