Back to Explore

wellwelwel/lru.min

GitHub
1 watchersOpen source

Last release: 4 months ago

lru.min is a fast, lightweight LRU cache for JavaScript that supports Node.js (8+), Bun, Deno, and browser environments. It provides key-value caching with O(1) operations like get, set, peek, has, delete, and eviction via a max size, including an optional onEviction callback.

Project status

  • The source appears actively maintained, with recent pushes and tagged version updates continuing through 2026 (last upstream push 2026-05-09, latest shown update v1.1.4 on 2026-02-02).
  • Update cadence looks moderate, with v1.1.3 in 2025-11-13 and v1.1.4 in 2026-02-02 (about 2.5 to 3 months), and v1.1.2 in 2025-03-09 (about 8 months before v1.1.3).

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v1.1.4

    4 months ago

    v1.1.4 focuses on correctness and efficiency improvements in the internal linked-list management used by the LRU cache. The update refactors how entries are reordered on get/set and how resize eviction/removal is performed, alongside performance tweaks to reduce redundant writes and resize allocations.

  • v1.1.3

    6 months ago

    v1.1.3 focuses on a performance optimization to reduce overhead in the cache .clear() eviction path. The repo also updates benchmarks and CI configuration, and bumps several development dependencies.

  • v1.1.2

    3/9/2025

    Release v1.1.2 focuses on a small internal performance-oriented refactor. However, the repo also includes several non-release-noted changes to contributor tooling (test scripts), dev tooling configuration (Biome), and dependency version bumps.

  • v1.1.1

    9/20/2024

    v1.1.1 ships a bug fix aimed at improving browser compatibility and a performance improvement to the cache `clear` behavior. The release notes only mention those two items, but the code diff also shows changes to the published package export map and a major refactor of the browser build pipeline.

  • v1.1.0

    8/28/2024

    v1.1.0 primarily adds a publicly exported TypeScript type, `CacheOptions`, for typing the options passed to `createLRU`. The code and repo docs/tests also indicate an iteration-order change for cache iteration methods, but that behavior change is not mentioned in the release notes.

    Features
  • v1.0.0

    8/27/2024

    v1.0.0 is the initial release of the project, introducing the "lru.min" functionality. The provided release notes do not describe the API surface or behavior changes in detail.

    Features