Back to Explore

wellwelwel/lru.min

GitHub
1 watchersOpen source

Last release:

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 activity (latest upstream push on 2026-05-09) and a new package update (v1.1.4 on 2026-02-02) focused on correctness and efficiency.
  • Update cadence is fairly regular recently, with updates in 2025 (v1.1.3 on 2025-11-13, v1.1.2 on 2025-03-09) and again in early 2026, suggesting ongoing evolution rather than maintenance mode.

AI summary generated

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

Recent updates

  • v1.1.4

    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

    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

    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

    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

    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

    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