Skip to content

v5.0.0

Compare
Choose a tag to compare
@lpellegr lpellegr released this 17 Mar 12:05
· 21 commits to main since this release

Added

  • New IpregistryClient#batchLookupAsns method.
  • New IpregistryClient#lookupAsn method.
  • New IpregistryClient#originLookupAsn method.
  • New IpregistryConfigBuilder.withEuBaseUrl method. Once configured, requests will be handled by nodes deployed in the European Union only.
  • New IpregistryRequestHandler#batchLookupAsns method.
  • New IpregistryRequestHandler#lookupAsn method.
  • New IpregistryRequestHandler#originLookupAsn method.

Changed

  • Rename IpregistryClient#batchLookup to IpregistryClient#batchLookupIps.
  • Rename IpregistryClient#lookup to IpregistryClient#lookupIp.
  • Rename IpregistryClient#originLookup to IpregistryClient#originLookupIp.
  • Rename IpregistryClient#parse to IpregistryClient#parseUserAgents.
  • Rename IpregistryConfigBuilder.withApiUrl to IpregistryConfigBuilder.withBaseUrl.
  • Rename IpregistryRequestHandler#batchLookup to IpregistryRequestHandler#batchLookupIps.
  • Rename IpregistryRequestHandler#lookup to IpregistryRequestHandler#lookupIp.
  • Rename IpregistryRequestHandler#originLookup to IpregistryRequestHandler#originLookupIp.
  • Rename IpregistryRequestHandler#parse to IpregistryRequestHandler#parseUserAgents.
  • Rename utility class UserAgent to UserAgents.
  • Replace Axios by ky to bring support to Cloudflare Workers in addition to browser and NodeJS environments.
  • Require NodeJS 18+.

Fixed

  • Fixed origin requests returning wrong information when caching is enabled. Cache is now automatically disabled for
    origin requests since it is incompatible.