Releases: ipregistry/ipregistry-javascript
Releases · ipregistry/ipregistry-javascript
6.0.0
5.0.2
Added
- Add missing fields
size
andstatus
to type AutonomousSystemPrefix.
5.0.1
Fixed
- Fix a packaging issue.
v5.0.0
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
toIpregistryClient#batchLookupIps
. - Rename
IpregistryClient#lookup
toIpregistryClient#lookupIp
. - Rename
IpregistryClient#originLookup
toIpregistryClient#originLookupIp
. - Rename
IpregistryClient#parse
toIpregistryClient#parseUserAgents
. - Rename
IpregistryConfigBuilder.withApiUrl
toIpregistryConfigBuilder.withBaseUrl
. - Rename
IpregistryRequestHandler#batchLookup
toIpregistryRequestHandler#batchLookupIps
. - Rename
IpregistryRequestHandler#lookup
toIpregistryRequestHandler#lookupIp
. - Rename
IpregistryRequestHandler#originLookup
toIpregistryRequestHandler#originLookupIp
. - Rename
IpregistryRequestHandler#parse
toIpregistryRequestHandler#parseUserAgents
. - Rename utility class
UserAgent
toUserAgents
. - 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
Added
- New
is_vpn
field insecurity
object.
v4.4.2
Fixed
- Invalid field name
security.is_tor_exit_node
has been renamed tosecurity.is_tor_exit
.
Changed
- Upgrade dependencies.
4.4.1
Upgrade dependencies
v4.3.0
Added
- New
parse
method in IpregistryClient for parsing user-agent header values.
Deprecated
- Deprecate
IpregistryConfigBuilder.withApiUrl
in favor ofIpregistryConfigBuilder.withBaseUrl
.
Fixed
- Replace invalid
operating_system
field in UserAgent byos
.
v4.2.0
Added
- IpInfo responses have a new
company
field. - The Connection type field includes a new value of
INACTIVE
.
v4.1.0
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
andtime_zone.daylight_saving
->time_zone.in_daylight_saving
.
Removed
- Merge connection type
cdn
withhosting
.