Skip to content

Latest commit

 

History

History
204 lines (172 loc) · 8.41 KB

File metadata and controls

204 lines (172 loc) · 8.41 KB

Changelog

All notable changes to this project are documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

  • Require Node JS 20+.

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 - 2024-03-27

Added

  • Add missing fields size and status to type AutonomousSystemPrefix.

5.0.1 - 2024-03-17

Fixed

  • Fix a packaging issue.

5.0.0 - 2024-03-17

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.

4.5.0 - 2022-04-15

Added

  • New is_vpn field in security object.

4.4.2 - 2022-04-03

Fixed

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

Changed

  • Upgrade dependencies.

4.4.1 - 2022-02-14

  • Upgrade dependencies.

4.4.0 - 2021-12-21

Added

  • New security.is_relay field.

4.3.0 - 2021-12-14

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.

4.2.0 - 2021-10-26

Added

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

4.1.0 - 2021-07-26

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.

4.0.0 - 2021-04-08

Changed

  • [BREAKING] Rename DefaultCache to InMemoryCache.
  • Upgrade dependencies.

3.1.0 - 2020-12-02

Changed

  • Use Authorization header instead of the key query parameter to pass API keys.

3.0.2 - 2020-10-28

Changed

  • Upgrade dependencies to fix an issue affecting TypeScript users (axios/axios#3219).

3.0.1 - 2020-10-03

Fixed

  • Access to remaining credits was always returning null due to a packaging issue.

3.0.0 - 2020-06-27

Changed

  • Caching is now optional and disabled by default.
  • Default timeout value has been increased to 15s from 3s.

2.0.1 - 2020-10-03

Fixed

  • Fix access to remaining credits due to the removal of the response header ipregistry-credits from the Ipregistry API.

2.0.0 - 2020-03-12

Changed

  • [BREAKING] All client methods use a new ApiResponse type as response. You can now access usage data (i.e. remaining credits, throttling info) in addition to IP payloads.

1.4.0 - 2020-01-12

Added

  • New field connection.route in response model.
  • Introduce new value cdn for field connection.type.

Fixed

  • Define a null union type for all fields that can have a null value.

1.3.0 - 2019-10-27

Added

  • New currency fields name_native and plural_native.

Changed

1.2.1 - 2019-10-08

Fixed

  • Fix a packaging issue.

1.2.0 - 2019-10-08

Added

  • Add examples for cache configuration, hostname lookup and fields selection.
  • Add BAD_REQUEST and FORBIDDEN_IP_ORIGIN error codes.

Changed

  • Export ipregistry as default export in client side module.

1.1.0 - 2019-08-08

Added

  • License headers.
  • Types for new fields returned by the Ipregistry API.

1.0.0 - 2019-07-24

Changed

  • All custom errors extend IpregistryError.

Fixed

  • Ignore case when checking if User-Agent is spider/bot.

0.10.1 - 2019-07-24

  • Fix deployment to NPM. No code change.

0.10.0 - 2019-07-24

Changed

  • Rename browser file to index.js from index.browser.js.

0.9.2 - 2019-07-24

Added

  • Browser support.

0.9.1 - 2019-07-23

  • First public release.