Releases: szmarczak/cacheable-lookup
Releases · szmarczak/cacheable-lookup
v5.0.1
v5.0.0
- Rewrite main logic (#31) 6f799a8
- Dropped
HostsResolver
in favor of the new DNS resolution system.
From now on, it will usedns.lookup(...)
for hostnames that only exist on the OS-side.
You can modify the duration via thefallbackDuration
option. By default it's set to3600
(1 hour). - Added support for Map-compatible instances.
For example, you can pass an instance ofQuickLRU
as thecache
option. - Updating
cacheable.servers
no longer triggerscacheable.updateInterfaceInfo()
.
Instead, it clears the cache directly. - Removed
cacheable.tick()
in favor of the new mechanism to remove outdated entries.
It's just an unreffed Timeout. - Calling
cacheable.updateInterfaceInfo()
will now only clear the cache on interface removal.
For example, when your IPv4 interface has disconnected. - Up to +400k op/s performance increase when compared to previous version of
cacheable-lookup
. - Fixed docs (finally!).
- Dropped
v4.3.0
Changelog
Hosts Resolver
- Fix whitespace normalization (#26) 17d03fd
- Test CRLF style 615412c
- Only one HostsResolver per hosts file (#28) 93a2025
- Fix hanging HostsResolver promises dad5d73
- Document
options.watchingHostsFile
e912543
Note: it defaults tofalse
, so thehosts
file is not being watched by default.
Cacheable Lookup
🎉
Thanks goes to: @cesarfd @dylang @fluffynuts @hoilc and @kaatt for the discovery of new bugs! 🎉