NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm
npm, #1692 most downloaded on npm
A cacheable dns.lookup(…) that respects TTL
Latest stable
7.0.0
Last release 4 years ago
no release in 18 months
Release timing varies
gaps range from 9 days to 10 months
Most releases are documented
notes for 28 of 34 stable releases
Nothing withdrawn
no release was ever pulled
8 years old
34 releases · first in 2019
Drag across the ruler to compare, or tap a release to open it.
Require Node.js 14 (#69) 08a6478
query and cache requests (#65) ab8d286https://github.com/szmarczak/cacheable-lookup/compare/v6.1.0...v7.0.0
Add entry source, either cache or query (#63) 185a8a4d06f3b663aa69cbe2d297d5758f91cd81 @monkbroc
Handle ENOENT Windows lookup failures (#50) @pimterry
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Fix a regression introduced in #43 (see #48)
Fallback to dns.lookup for IPv4 & IPv6 separately (#43) fdf95326cd41383053c9abcd12e4dc8a72f0f53d
Fix typings 06fd8fca0c7b9067c18d52e8e7d82fcec96b0744
Fix #36 (Allow fallbackDuration = 0 without disabling fallback) 41f6229cc09c298b3588d9b5fc81b54b1dfac0d6
Fix promise not being removed from queue on fallback query (#34) da10b58475ab89e944ec112f521e86402c344fc1
Do not dns.lookup() in background to prevent memory leaks ae7c02ff7dae76e06cce607a02ad98b5afc60691
dns.lookup() in background to prevent memory leaks ae7c02ff7dae76e06cce607a02ad98b5afc60691Wait for lookup if no entries received from the server 8abe3158a0cd0c85816b4a1f163e496f1fce2869
Forgot to update the TypeScript typings (yet again)
Forgot to update the TypeScript typings (yet again)
Rewrite main logic (#31) 6f799a8db42778b0b811f6130dd4fec4b7c63671
HostsResolver in favor of the new DNS resolution system.
From now on, it will use dns.lookup(...) for hostnames that only exist on the OS-side.
You can modify the duration via the fallbackDuration option. By default it's set to 3600 (1 hour).QuickLRU as the cache option.cacheable.servers no longer triggers cacheable.updateInterfaceInfo().
Instead, it clears the cache directly.cacheable.tick() in favor of the new mechanism to remove outdated entries.
It's just an unreffed Timeout.cacheable.updateInterfaceInfo() will now only clear the cache on interface removal.
For example, when your IPv4 interface has disconnected.cacheable-lookup.Fix whitespace normalization (#26) 17d03fdf670f6d64367b8ed8f5bf19efa053c56c
options.watchingHostsFile e9125439e9be2bd6bf9b510fbe0ffb04c503d031
Note: it defaults to false, so the hosts file is not being watched by default.Thanks goes to: @cesarfd @dylang @fluffynuts @hoilc and @kaatt for the discovery of new bugs! :tada:
Fix incorrect example in documentation (#20) 6c5f5d5eed568240ac5b6febe913d5befd8bf5f3
Revert back to fs.watchFile(...) + options.persistent = false e0a2e95e29adc9cee6d1155a9629cb50efebf19f
fs.watchFile(...) + options.persistent = false e0a2e95e29adc9cee6d1155a9629cb50efebf19fWorkaround for unreffed fs.watchFile(...) 68d8b77608f9304a3138302364de3b30aa806b07
fs.watchFile(...) 68d8b77608f9304a3138302364de3b30aa806b07Accept Windows installations on other drives than C: (#14) 21617450a80722ada06235d6544609c91b7e5387
dns.lookup(...) (#15) dfefae26f67b5d78be6aaace795b3cb8fccf27d4
Forgot to remove import Keyv from the definitions file afb85ab6e66576745864b9e5d715987f51ea406c
import Keyv from the definitions file afb85ab6e66576745864b9e5d715987f51ea406cRebase the Hosts resolver 7b6c4f5da2fffc430896f38cbe0b8ace49581bae
Due to the new Hosts resolver the performance dropped by 2x (4M op/s -> 2M op/s).
Revert back custom cache support 331235ad8737551be84201f116df8779dec6c846
Fix parsing tabs in hosts files 111f163a03bc499dd5e6d971ed686f0c39b40a23
hosts files 111f163a03bc499dd5e6d971ed686f0c39b40a23options.throwNotFound now defaults to true
options.throwNotFound now defaults to truehosts file resolverNothing published for this version
Forgot to include the create-hosts-resolver.js file in the package
Forgot to include the create-hosts-resolver.js file in the package
Respect IPv4 file entries baea349c74fb7bfd0ea30aa6204c5532fdfe844e
Implement tick() 5a12b7bda27c187e64f9431e533eaae196ce596e
tick() 5a12b7bda27c187e64f9431e533eaae196ce596eAccept async Resolver d2e228c4588f816da22f826c17f5468852e017da
Nothing published for this version
Optimize ADDRCONFIG hint used by the http module
ADDRCONFIG hint used by the http moduleMake it possible to attach CacheableLookup to an Agent 2fb14cf391fa4f42adaabdb5d0ce3c8191bc63a8
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.