Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: isaacs/node-lru-cache
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v11.2.7
Choose a base ref
...
head repository: isaacs/node-lru-cache
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v11.3.0
Choose a head ref
  • 8 commits
  • 29 files changed
  • 1 contributor

Commits on Mar 23, 2026

  1. remove AbortController polyfill

    Node 14 is quite long in the tooth at this point, and hasn't been
    supported by this module's engines declaration for a long time.
    isaacs committed Mar 23, 2026
    Configuration menu
    Copy the full SHA
    5d6c8d5 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2026

  1. Configuration menu
    Copy the full SHA
    b2ad0ca View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b649130 View commit details
    Browse the repository at this point in the history
  3. Add tracing channels and diagnostic metrics

    Thanks to @logaretm for helping get this started.
    
    This is a first pass, but it significantly expands the coverage of
    `LRUCache.Status` objects, as well as hooking them into a metrics
    channel for sync operations and a set of tracingChannels for async
    operations.
    
    One thing that's lacking currently, but maybe not important, is knowing
    _which_ cache an operation is related to, if there is more than one
    cache in use. If you're just interested in overall age of cached items,
    time spent fetching, whatever, it's probably fine, but if someone asks,
    we could conceivably put a `status.cache = this` field on the status
    object, which would solve the problem.
    
    Performance impact seems minimal, as long as it's not used (ha), but
    it doesn't seem meaningfully worse than just using status objects in the
    first place, so likely the perf impact is dominated by just "creating
    and disposing of a bunch of short-lived objects".
    
    Tracing channels and metrics are added unconditionally in CommonJS, and
    using a dynamic import with top level await in ESM. Since CommonJS is
    pretty much strictly Node.js at this point, this should enable any other
    platforms to use the observability features if they support them, or
    else just get a dummy object that says `{ hasSubscribers: false }`, thus
    preventing it from ever being used.
    isaacs committed Apr 5, 2026
    Configuration menu
    Copy the full SHA
    156eecd View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2facbd0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3a2a8db View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2026

  1. changelog 11.3

    isaacs committed Apr 6, 2026
    Configuration menu
    Copy the full SHA
    fcf924b View commit details
    Browse the repository at this point in the history
  2. 11.3.0

    isaacs committed Apr 6, 2026
    Configuration menu
    Copy the full SHA
    9e87326 View commit details
    Browse the repository at this point in the history
Loading