Releases: maxmind/GeoIP2-java
Releases · maxmind/GeoIP2-java
4.2.1
4.2.0
- A
WebServiceProvider
interface has been added to facilitate mocking of
WebServiceClient
. Requested by Evan Chrisinger. GitHub #359. - The GeoIP2 IP Risk database has been discontinued. Methods and classes
related to it have been deprecated. - The
fromString
static method on theConnectionType
enum now has
theJsonCreator
annotation so that it is used when deserializing.
This will prevent new additions in the future from causing a
deserialization error. - The
isAnycast()
method was added tocom.maxmind.geoip2.record.Traits
.
This returnstrue
if the IP address belongs to an anycast
network. This is available for the
GeoIP2 Country, City Plus, and Insights web services and the GeoIP2 Country,
City, and Enterprise databases.
2.17.0
4.1.0
4.0.1
4.0.0
3.0.2
3.0.1
3.0.0
- Java 11 or greater is now required.
- Apache HttpClient has been replaced with
java.net.http.HttpClient
. - The
close()
method onWebServiceClient
is now deprecated. It
no longer does anything. - On
WebServiceClient.Builder
:connectTimeout(int)
has been deprecated in favor of
connectTimeout(Duration)
.readTimeout(int)
has been deprecated in favor of
requestTimeout(Duration)
.proxy(Proxy)
has been deprecated in favor ofproxy(ProxySelector)
.
- On
HttpException
andInvalidRequestException
,getUrl()
has been
deprecated in favor ofgetUri()
. Constructors that took aURL
have
been replaced with the equivalent taking aURI
. - Deprecated constructors on model and trait classes were removed.
- Model data types were updated to better reflect database data types. In
particular:getGeoNameId()
onCity
,Continent
,Country
,RepresentedCountry
,
andSubdivision
now returns aLong
rather than anInteger
.getAutonomousSystemNumber()
onAsnResponse
andTraits
now returns
aLong
rather than anInteger
.