Releases: tinovyatkin/is-localhost-ip
Releases · tinovyatkin/is-localhost-ip
v2.0.0: V2 (#244)
- Drops Node < 12
- Fixed license in
package.json
to MIT
v1.4.0
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
- [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
- 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 anddns.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