Skip to content

Releases: maxmind/GeoIP2-java

4.2.1

20 Sep 14:31
c228c56
Compare
Choose a tag to compare
  • Dependency updates:
    • maxmind-db was upgraded to 3.1.1.
    • Jackson was upgraded to 2.17.2.
  • Added missing API documentation.

4.2.0

05 Dec 18:51
5cecd76
Compare
Choose a tag to compare
  • 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 the ConnectionType enum now has
    the JsonCreator 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 to com.maxmind.geoip2.record.Traits.
    This returns true 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

21 Nov 18:10
a472a67
Compare
Choose a tag to compare
  • Updated model classes with non-breaking changes from the 4.2.0
    branch. In particular, this fixes an issue deserializing the
    new connection_type from the GeoIP2 web services.
  • Updated Jackson and maxmind-db dependencies.

4.1.0

28 Jul 14:39
e088488
Compare
Choose a tag to compare
  • Added SATELLITE to the ConnectionType enum.

4.0.1

02 Mar 18:32
5079127
Compare
Choose a tag to compare
  • com.maxmind.db is now a transitive dependency of this Java module.

4.0.0

12 Dec 20:37
7d846e9
Compare
Choose a tag to compare
  • This library is now a Java module.
  • Added support for the GeoIP2 IP Risk database.

3.0.2

31 Oct 19:43
121374e
Compare
Choose a tag to compare
  • Updated Jackson and maxmind-db dependencies.

3.0.1

29 Mar 16:02
Compare
Choose a tag to compare
  • Updated Jackson dependencies to address CVE-2020-36518. Pull request by
    slunker. GitHub #306.
  • Minor doc updates.

3.0.0

24 Jan 21:08
Compare
Choose a tag to compare
  • Java 11 or greater is now required.
  • Apache HttpClient has been replaced with java.net.http.HttpClient.
  • The close() method on WebServiceClient 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 of proxy(ProxySelector).
  • On HttpException and InvalidRequestException, getUrl() has been
    deprecated in favor of getUri(). Constructors that took a URL have
    been replaced with the equivalent taking a URI.
  • Deprecated constructors on model and trait classes were removed.
  • Model data types were updated to better reflect database data types. In
    particular:
    • getGeoNameId() on City, Continent, Country, RepresentedCountry,
      and Subdivision now returns a Long rather than an Integer.
    • getAutonomousSystemNumber() on AsnResponse and Traits now returns
      a Long rather than an Integer.

2.16.1

18 Nov 23:12
Compare
Choose a tag to compare
  • Added JsonProperty annotations to getMobileCountryCode() and
    getMobileNetworkCode() so that it is possible to serialize the
    object as JSON and then deserialize without losing data.