Skip to content

Releases: szmarczak/cacheable-lookup

v5.0.1

09 May 18:06
Compare
Choose a tag to compare

Forgot to update the TypeScript typings (yet again)

v5.0.0

09 May 17:39
Compare
Choose a tag to compare
  • Rewrite main logic (#31) 6f799a8
    • Dropped 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).
    • Added support for Map-compatible instances.
      For example, you can pass an instance of QuickLRU as the cache option.
    • Updating cacheable.servers no longer triggers cacheable.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!).

v4.3.0

08 May 10:08
Compare
Choose a tag to compare

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 to false, so the hosts file is not being watched by default.

Cacheable Lookup

  • Fix inconsistencies with the Node.js API b2348d5
  • Optimize ticks 44ca84e

🎉

Thanks goes to: @cesarfd @dylang @fluffynuts @hoilc and @kaatt for the discovery of new bugs! 🎉

v4.2.3

04 May 09:11
Compare
Choose a tag to compare
  • Fix incorrect example in documentation (#20) 6c5f5d5
  • Fix incompatibility with Electron renderer process (#22) 4b2cf8f

v4.2.2

28 Apr 14:19
Compare
Choose a tag to compare
  • Revert back to fs.watchFile(...) + options.persistent = false e0a2e95

v4.2.1

27 Apr 16:14
Compare
Choose a tag to compare
  • Workaround for unreffed fs.watchFile(...) 68d8b77

v4.2.0

27 Apr 13:26
Compare
Choose a tag to compare
  • Accept Windows installations on other drives than C: (#14) 2161745
  • Add a fallback to dns.lookup(...) (#15) dfefae2
    • Improve TS types
    • Improve TS tests
    • Improve Node.js compatibility
  • Prevent overloading DNS servers a40009a
  • Performance improvements (up to +500k op/s)

v4.1.2

20 Mar 10:44
Compare
Choose a tag to compare
  • Forgot to remove import Keyv from the definitions file afb85ab

v4.1.1

15 Mar 20:49
Compare
Choose a tag to compare

Due to the new Hosts resolver the performance dropped by 2x (4M op/s -> 2M op/s).

v4.1.0

14 Mar 20:36
Compare
Choose a tag to compare
  • Revert back custom cache support 331235a