Releases: maxmind/GeoIP2-java
Releases · maxmind/GeoIP2-java
2.6.0: Improved Caching
- This release was updated to 1.2.0 of the MaxMind DB reader, which includes
faster caching with fewer allocations. - The IP addresses in the database models are now injected via Jackson rather
than being added to theJsonNodebefore deserialization. Pull requests by
Viktor Szathmáry. GitHub #56.
2.5.0: Optional Caching
- The database reader now supports pluggable caching of the decoded data. By
default, no caching is performed. Please see theREADME.mdfile or the API
docs for information on how to enable caching. Pull requests by Viktor
Szathmáry. GitHub #55.
2.4.0
- Jackson now uses the constructors on model classes when mapping JSON and
database records to them rather than overriding the access modifiers on
them. Pull request by Martijn van Groningen. GitHub #51 & #52. - The format of the output of the
toString()methods in the models has
changed to better represent the values returned by the databases and web
services.toString()should be only used for debugging and diagnostics.
Do not try to parse it. If you want the contents of the model as a machine-
readable string, usetoJson(). - This release depends on version 1.0.1 of the MaxMind DB reader, which
includes several performance enhancements from by Viktor Szathmáry.
2.3.1
- No code changes in this release
- Fix for version number in pom.xml example in README.md
- Slight documentation improvement referring to MaxMind-DB-Reader-java
2.3.0
- Add support for the
average_incomeandpopulation_densityfields. - The
isAnonymousProxy()andisSatelliteProvider()methods on
com.maxmind.geoip2.record.Traitshave been deprecated. Please use our
[GeoIP2 Anonymous IP database](https://www.maxmind.com/en/geoip2-anonymous-
ip-database) to determine whether an IP address is used by an anonymizing
service.
2.2.0
- A
DatabaseProviderinterface has been added to facilitate mocking of
DatabaseReader. Pull request by Yonatan Most. GitHub #34. - A
getLeastSpecificSubdivision()method has been added to the
CityResponseandInsightsResponsemodel classes. This returns the
least specific subdivision for the location, e.g., England for Oxford,
GB. Pull request by Daniel Kaneider. GitHub #35. - The
InsightsResponseandLocationclasses are no longer declared final. AbstractResponseis now declaredabstract.
2.1.0
2.0.0
0.10.0
- The deprecated
cityIspOrg()andomni()methods have been removed from
DatabaseReaderandWebServiceClient. - The lookup methods on
DatabaseReadernow throw an
UnsupportedOperationExceptionif the incorrect method is used for the
database. DatabaseReadernow provides the metadata for the database through the
getDatabase()method.- All of our dependencies were updated to the latest available version.
timeout deprecated and replaced
- The
timeoutsetter onWebServiceClient.Builderwas renamed to
connectTimeoutand areadTimeoutsetter was added. The former timeout
sets the timeout to establish a connection and the latter sets the timeout
for reading from an established connection.