- Added support for looking up your v6 IP via
GetIPInfoV6
.
- Removing null values while printing in
yaml
format
- Added a
CountryFlagURL
field toCore
.
- Custom error message on 429(Too many requests).
- Check bogon locally.
- Fixed default useragent.
- Fixed
GetIPInfoBatch
panic on empty token or invalid IP.
- Added an
CountryFlag
field toCore
. - Added an
CountryCurrency
field toCore
. - Added an
Continent
field toCore
.
- Added an
IsEU
field toCore
, which checks whether the IP geolocates to a country within the European Union (EU).
- Made batch operations limit their concurrency to 8 batches by default, but configurable.
- Added
Relay
andService
fields toCorePrivacy
. - Added
Relay
field toIPSummary.Privacy
andPrivacyServices
toIPSummary
.
- Fixed issue where disabling per-batch timeouts was impossible with negative numbers, contrary to what the documentation says.
- Dummy release to make up for a bug in 2.5.2.
- Removed the IP list length constraints on
GetIPSummary
. This is because the underlying API has changed.
- Added the
IPSummary.Domains
field.
- Added versioned cache keys. This allows more reliable changes to cached data in the future without causing confusing incompatibilities. This should be transparent to the user.
- Added support for IP Map API.
- Added the
Core.Bogon
boolean field.
- Added more summary fields (carrier & mobile data).
- Added support for IP summary API.
- Added CSV tags for
Core
data for easier CSV marshaling. - Omit empty
Core
objects when encoding JSON. - Encode
Core.CountryName
andCore.Abuse.CountryName
properly in JSON.
- Added a function
GetCountryName
to transform country code into full name.
- Added the
Core.Anycast
boolean field.
- The following functions are now private:
Client.Do
Client.NewRequest
CheckResponse
- The following new functions now exist, which operate on the IPinfo
/batch
endpoint:Client.GetBatch
Client.GetIPInfoBatch
Client.GetIPStrInfoBatch
Client.GetASNDetailsBatch
ipinfo.GetBatch
ipinfo.GetIPInfoBatch
ipinfo.GetIPStrInfoBatch
ipinfo.GetASNDetailsBatch
- Fixed go module path to have "v2" at the end as necessary.
- A new field
CountryName
was added to bothASNDetails
andCore
, which is the full name of the country abbreviated in the existingCountry
field. For example, ifCountry == "PK"
, nowCountryName == "Pakistan"
exists.
- The API for creating a client and making certain requests has changed and has been made generally simpler. Please see the documentation for exact details.
- go.mod now included.
- All new API data types are now available for the Core & ASN APIs.
- Cache interface now requires implementors to be concurrency-safe.