Skip to content

Releases: ipregistry/ipregistry-javascript

6.0.0

04 Jun 11:33
Compare
Choose a tag to compare

Changed

  • Modify the library packaging to make ECMAScript modules (ESM) optional.
  • Substitute the 'ky' dependency with native fetch API.
  • Reduce the default timeout setting to 5 seconds.
  • Implement retries, up to two times, with exponential backoff in the event of a timeout.

5.0.2

27 Mar 09:03
Compare
Choose a tag to compare

Added

  • Add missing fields size and status to type AutonomousSystemPrefix.

5.0.1

17 Mar 17:18
Compare
Choose a tag to compare

Fixed

  • Fix a packaging issue.

v5.0.0

17 Mar 12:05
Compare
Choose a tag to compare

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.

v4.5.0

14 Apr 22:57
Compare
Choose a tag to compare

Added

  • New is_vpn field in security object.

v4.4.2

03 Apr 19:55
Compare
Choose a tag to compare

Fixed

  • Invalid field name security.is_tor_exit_node has been renamed to security.is_tor_exit.

Changed

  • Upgrade dependencies.

4.4.1

14 Feb 14:27
Compare
Choose a tag to compare

Upgrade dependencies

v4.3.0

14 Dec 23:06
Compare
Choose a tag to compare

Added

  • New parse method in IpregistryClient for parsing user-agent header values.

Deprecated

  • Deprecate IpregistryConfigBuilder.withApiUrl in favor of IpregistryConfigBuilder.withBaseUrl.

Fixed

  • Replace invalid operating_system field in UserAgent by os.

v4.2.0

26 Oct 21:22
Compare
Choose a tag to compare

Added

  • IpInfo responses have a new company field.
  • The Connection type field includes a new value of INACTIVE.

v4.1.0

26 Jul 22:04
Compare
Choose a tag to compare

Added

  • New connection type government.

Changed

  • Improve utility function to detect bots/crawlers/spiders based on user-agent value.

Fixed

  • Fix invalid property names: language.name_native -> language.native and time_zone.daylight_saving -> time_zone.in_daylight_saving.

Removed

  • Merge connection type cdn with hosting.