-
Notifications
You must be signed in to change notification settings - Fork 371
Permalink
Choose a base ref
{{ refName }}
default
Choose a head ref
{{ refName }}
default
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
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
...
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
Could not load branches
Nothing to show
Loading
Could not load tags
Nothing to show
{{ refName }}
default
Loading
- 8 commits
- 29 files changed
- 1 contributor
Commits on Mar 23, 2026
-
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.
Configuration menu - View commit details
-
Copy full SHA for 5d6c8d5 - Browse repository at this point
Copy the full SHA 5d6c8d5View commit details
Commits on Apr 5, 2026
-
Configuration menu - View commit details
-
Copy full SHA for b2ad0ca - Browse repository at this point
Copy the full SHA b2ad0caView commit details -
Configuration menu - View commit details
-
Copy full SHA for b649130 - Browse repository at this point
Copy the full SHA b649130View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 156eecd - Browse repository at this point
Copy the full SHA 156eecdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2facbd0 - Browse repository at this point
Copy the full SHA 2facbd0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3a2a8db - Browse repository at this point
Copy the full SHA 3a2a8dbView commit details
Commits on Apr 6, 2026
-
Configuration menu - View commit details
-
Copy full SHA for fcf924b - Browse repository at this point
Copy the full SHA fcf924bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e87326 - Browse repository at this point
Copy the full SHA 9e87326View commit details
Loading
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff v11.2.7...v11.3.0