- Removed loading of country/continent/currency/EU-related data via files. This is done fully statically now.
- IPinfo builder no longer supports functions
setContinentFile
,setCountryCurrencyFile
,setCountryFlagFile
,setEUCountryFile
,setCountryFile
. - IPinfo
Context
object no longer supports being initialized via input maps.
- Updated guava to vsn 32.1.2
- Updated vulnerable dependency;
com.google.guava
- Added
isEU
,CountryFlag
,CountryCurrency
andContinent
fields. - Checking bogon IP locally.
- Upgraded
okhttp
to4.10.0
.
- Added
Relay
andService
fields toio.ipinfo.api.model.Privacy
.
Breaking changes:
IPInfo
is renamed toIPinfo
.IPInfoBuilder
is moved intoIPinfo.Builder
.ASNResponse.numIps
is now anInteger
instead of aString
.- The cache implementation now only uses
get
andset
, which accept arbitrary strings, which may not necessarily be IP or ASN strings like "1.2.3.4" and "AS123".
Additions:
getBatch
,getBatchIps
andgetBatchAsns
allow you to do lookups of multiple entities at once. There is no limit to the size of inputs on these library calls as long as your token has quota.getMap
will give you a map URL for https://ipinfo.io/tools/map given a list of IPs.- Many new pieces of data have been added that were previously missing. The new dataset reflects all the new data available via raw API calls.
- The keys given to cache functions will now be versioned.
IPinfo.cacheKey
must be used to derive the correct key if doing manual lookups.