quick-lru

Simple “Least Recently Used” (LRU) cache

MIT License

Downloads
121.4M
Stars
649
Committers
15

Bot releases are hidden (Show)

quick-lru - Latest Release

Published by sindresorhus about 1 year ago

Breaking

  • Require Node.js 18 f0bbe48

Improvements

  • Add .maxSize getter 187fa5b

https://github.com/sindresorhus/quick-lru/compare/v6.1.2...v7.0.0

quick-lru -

Published by sindresorhus about 1 year ago

  • Fix return value for set() method e964346

https://github.com/sindresorhus/quick-lru/compare/v6.1.1...v6.1.2

quick-lru -

Published by sindresorhus over 2 years ago

  • Fix internal usage of toStringTag (#39) 95593b6

https://github.com/sindresorhus/quick-lru/compare/v6.1.0...v6.1.1

quick-lru -

Published by sindresorhus over 2 years ago

  • Make QuickLRU a Map subclass (#37) 2dd5b52

https://github.com/sindresorhus/quick-lru/compare/v6.0.2...v6.1.0

quick-lru -

Published by sindresorhus almost 3 years ago

  • Fix incorrect maxAge being set when used on .set() (#36) 6a9c875

https://github.com/sindresorhus/quick-lru/compare/v6.0.1...v6.0.2

quick-lru -

Published by sindresorhus about 3 years ago

  • 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

quick-lru -

Published by sindresorhus almost 4 years ago

Breaking

  • Require Node.js 12 a408ce9
  • 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 @alloc/quick-lru.

Improvements

  • Add maxAge option (#27) 85f49e2
  • Add .resize() method (#24) debb8de
  • Improve performance of .size (#23) 608e459

https://github.com/sindresorhus/quick-lru/compare/v5.1.1...v6.0.0

quick-lru -

Published by sindresorhus over 4 years ago

  • Ensure TypeScript generics are propagated to options (#21) 0e67d68

https://github.com/sindresorhus/quick-lru/compare/v5.1.0...v5.1.1

quick-lru -

Published by sindresorhus over 4 years ago

quick-lru -

Published by sindresorhus over 4 years ago

Breaking

  • Require Node.js 10 0cf3d6b

Fixes

  • Fix .size not matching the maxSize option (#16) e5b868b

https://github.com/sindresorhus/quick-lru/compare/v4.0.1...v5.0.0

quick-lru -

Published by sindresorhus over 5 years ago

  • Fix cache size becoming double of the defined size (#13) d6c7e11

https://github.com/sindresorhus/quick-lru/compare/v4.0.0...v4.0.1

quick-lru -

Published by sindresorhus over 5 years ago

Breaking for TypeScript users only:

  • Refactor TypeScript definition to CommonJS compatible export (#12) 36d8558
    • You need to change import quickLru from 'quick-lru'; to import quickLru = require('quick-lru');

https://github.com/sindresorhus/quick-lru/compare/v3.0.0...v4.0.0

quick-lru -

Published by sindresorhus over 5 years ago

Breaking:

  • Require Node.js 8 (#11) 99cf7d4

Enhancements:

  • Add TypeScript definition (#11) 99cf7d4
quick-lru -

Published by sindresorhus almost 6 years ago

Breaking:

  • Require Node.js 6 71c71d1

Other:

  • Return a boolean from .delete() indicating whether the item was deleted (#9) afc977b
Package Rankings
Top 1.1% on Npmjs.org
Top 21.51% on Repo1.maven.org
Top 6.7% on Proxy.golang.org
Badges
Extracted from project README
Coverage Status