Skip to content

Releases: tinovyatkin/is-localhost-ip

v2.0.0: V2 (#244)

03 Aug 20:22
f6df238
Compare
Choose a tag to compare
  • Drops Node < 12
  • Fixed license in package.json to MIT

v1.4.0

07 Apr 20:26
2225dcb
Compare
Choose a tag to compare

Added the second parameter to force check whether a physical interface with such an address exists on the local machine (doing so by creating lightweight UDP socked and binding to that address).
The hostname checking is stricter now by using the same logic as above.

v1.3.0

26 Aug 15:15
c3e4795
Compare
Choose a tag to compare
  • [PERFORMANCE] Optimized RegExes
  • [PERFORMANCE] Joined all IP checking RegEx into one
  • [PERFORMANCE] Check local addresses Set first, as it O(1)
  • [TEST] Added edge cases testing with mocked dns module

v1.2.0

25 Aug 19:04
2780445
Compare
Choose a tag to compare
  • Validate string for a correctness as a host name (via very nice RegEx) before attempting to resolve it
  • Use native promisified versions of dns.lookup (utils.promisify on Node < 11.14 and dns.promises on latest)
  • Pick just one of IP addresses families (IPv4 or IPv6) if any of them are available on all local network interfaces
  • Added types for TypeScript and Flow
  • Tests on Node 10.x and 12.x
  • Re-licensed under MIT license

v1.1.0

23 Aug 06:47
79ef978
Compare
Choose a tag to compare
  • Lowered NodeJS version requirement to 10.x, thank you @azu