Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Nov 24, 2025

Bumps com.maxmind.geoip2:geoip2 from 4.4.0 to 5.0.0.

Release notes

Sourced from com.maxmind.geoip2:geoip2's releases.

5.0.0

  • BREAKING: All model and record classes have been converted to Java records. This provides a more modern, immutable data model with automatic implementations of equals(), hashCode(), and toString(). The abstract classes AbstractRecord, AbstractNamedRecord, AbstractResponse, AbstractCountryResponse, AbstractCityResponse, and IpBaseResponse have been removed. Record components can be accessed using the new accessor methods (e.g., city(), country(), location()). The traditional getter methods (e.g., getCity(), getCountry(), getLocation()) are still available but have been deprecated and will be removed in version 6.0.0.
  • BREAKING: RepresentedCountry is now a separate record type instead of extending Country. It shares the same fields as Country but adds a type field.
  • The deprecation notices for IP Risk database support have been removed. IP Risk database support will continue to be maintained.
  • A new Anonymizer record has been added to the InsightsResponse model. This record consolidates anonymizer information including VPN confidence scores, network last seen dates, and provider names. It includes the following fields: confidence, isAnonymous, isAnonymousVpn, isHostingProvider, isPublicProxy, isResidentialProxy, isTorExitNode, networkLastSeen, and providerName.
  • A new ipRiskSnapshot field has been added to the Traits record. This field provides a static risk score (ranging from 0.01 to 99) associated with the IP address. This is available from the GeoIP2 Precision Insights web service.
  • The anonymous IP flags in the Traits record (isAnonymous, isAnonymousVpn, isHostingProvider, isPublicProxy, isResidentialProxy, and isTorExitNode) have been deprecated in favor of using the new Anonymizer record in the InsightsResponse. These fields will continue to work but will be removed in version 6.0.0.
  • BREAKING: The deprecated WebServiceClient.Builder methods connectTimeout(int), readTimeout(int), and proxy(Proxy) have been removed. Use connectTimeout(Duration), requestTimeout(Duration), and proxy(ProxySelector) respectively.
  • BREAKING: The deprecated WebServiceClient.close() method has been removed along with the Closeable interface implementation.
  • BREAKING: The deprecated getUrl() methods in HttpException and InvalidRequestException have been removed. Use getUri() instead.
  • BREAKING: The deprecated Traits constructors and methods isAnonymousProxy() and isSatelliteProvider() have been removed. Use the GeoIP2 Anonymous IP database for anonymous proxy detection instead.
  • BREAKING: The deprecated Location.getMetroCode() method has been removed. Metro code values are no longer maintained.
  • BREAKING: Java 11 support has been dropped. Java 17 or later is now required.
  • BREAKING: Removed explicit serialVersionUID from all exception classes. Java will auto-generate serialVersionUID when needed, following modern practices.
  • BREAKING: Removed no longer necessary JacksonInject annotations for ip_address, network, and traits from several classes. The JsonInjector class was removed.
  • Public getter methods in non-record classes (e.g., DatabaseReader, exception classes) have been renamed to follow the same naming convention as

... (truncated)

Changelog

Sourced from com.maxmind.geoip2:geoip2's changelog.

5.0.0 (2025-11-20)

  • BREAKING: All model and record classes have been converted to Java records. This provides a more modern, immutable data model with automatic implementations of equals(), hashCode(), and toString(). The abstract classes AbstractRecord, AbstractNamedRecord, AbstractResponse, AbstractCountryResponse, AbstractCityResponse, and IpBaseResponse have been removed. Record components can be accessed using the new accessor methods (e.g., city(), country(), location()). The traditional getter methods (e.g., getCity(), getCountry(), getLocation()) are still available but have been deprecated and will be removed in version 6.0.0.
  • BREAKING: RepresentedCountry is now a separate record type instead of extending Country. It shares the same fields as Country but adds a type field.
  • The deprecation notices for IP Risk database support have been removed. IP Risk database support will continue to be maintained.
  • A new Anonymizer record has been added to the InsightsResponse model. This record consolidates anonymizer information including VPN confidence scores, network last seen dates, and provider names. It includes the following fields: confidence, isAnonymous, isAnonymousVpn, isHostingProvider, isPublicProxy, isResidentialProxy, isTorExitNode, networkLastSeen, and providerName.
  • A new ipRiskSnapshot field has been added to the Traits record. This field provides a static risk score (ranging from 0.01 to 99) associated with the IP address. This is available from the GeoIP2 Precision Insights web service.
  • The anonymous IP flags in the Traits record (isAnonymous, isAnonymousVpn, isHostingProvider, isPublicProxy, isResidentialProxy, and isTorExitNode) have been deprecated in favor of using the new Anonymizer record in the InsightsResponse. These fields will continue to work but will be removed in version 6.0.0.
  • BREAKING: The deprecated WebServiceClient.Builder methods connectTimeout(int), readTimeout(int), and proxy(Proxy) have been removed. Use connectTimeout(Duration), requestTimeout(Duration), and proxy(ProxySelector) respectively.
  • BREAKING: The deprecated WebServiceClient.close() method has been removed along with the Closeable interface implementation.
  • BREAKING: The deprecated getUrl() methods in HttpException and InvalidRequestException have been removed. Use getUri() instead.
  • BREAKING: The deprecated Traits constructors and methods isAnonymousProxy() and isSatelliteProvider() have been removed. Use the GeoIP2 Anonymous IP database for anonymous proxy detection instead.
  • BREAKING: The deprecated Location.getMetroCode() method has been removed. Metro code values are no longer maintained.
  • BREAKING: Java 11 support has been dropped. Java 17 or later is now required.
  • BREAKING: Removed explicit serialVersionUID from all exception classes. Java will auto-generate serialVersionUID when needed, following modern practices.
  • BREAKING: Removed no longer necessary JacksonInject annotations for ip_address, network, and traits from several classes. The JsonInjector class was removed.

... (truncated)

Commits
  • de16459 Preparing for 5.0.0
  • 229b6ea Set release date
  • 64d2821 Merge pull request #631 from maxmind/dependabot/maven/org.wiremock-wiremock-3...
  • 05e5ab8 Bump org.wiremock:wiremock from 3.13.1 to 3.13.2
  • 10ebc60 Merge pull request #628 from maxmind/dependabot/maven/org.apache.maven.plugin...
  • 2685b6e Merge pull request #629 from maxmind/dependabot/maven/com.maxmind.db-maxmind-...
  • aeb9867 Merge pull request #630 from maxmind/dependabot/maven/com.puppycrawl.tools-ch...
  • 59caffc Bump com.puppycrawl.tools:checkstyle from 12.1.1 to 12.1.2
  • 2fd328e Bump com.maxmind.db:maxmind-db from 4.0.0-SNAPSHOT to 4.0.0
  • 451a0a1 Bump org.apache.maven.plugins:maven-jar-plugin from 3.4.2 to 3.5.0
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [com.maxmind.geoip2:geoip2](https://github.com/maxmind/GeoIP2-java) from 4.4.0 to 5.0.0.
- [Release notes](https://github.com/maxmind/GeoIP2-java/releases)
- [Changelog](https://github.com/maxmind/GeoIP2-java/blob/main/CHANGELOG.md)
- [Commits](maxmind/GeoIP2-java@v4.4.0...v5.0.0)

---
updated-dependencies:
- dependency-name: com.maxmind.geoip2:geoip2
  dependency-version: 5.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Nov 24, 2025

Labels

The following labels could not be found: dependabot. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Nov 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant