Skip to content

Update maxminddb requirement from 0.25.0 to 0.26.0 #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 22, 2025

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 28, 2025

Updates the requirements on maxminddb to permit the latest version.

Release notes

Sourced from maxminddb's releases.

0.26.0

  • BREAKING CHANGE: The lookup and lookup_prefix methods now return Ok(None) or Ok((None, prefix_len)) respectively when an IP address is valid but not found in the database (or has no associated data record), instead of returning an Err(MaxMindDbError::AddressNotFoundError). Code previously matching on AddressNotFoundError must be updated to handle the Ok(None) / Ok((None, prefix_len)) variants.
  • BREAKING CHANGE: The MaxMindDBError enum has been renamed MaxMindDbError and variants have been renamed and refactored. For example, IoError is now Io, InvalidDatabaseError is now InvalidDatabase, DecodingError is now Decoding, InvalidNetworkError is now InvalidNetwork. The MapError variant has been replaced by Mmap (under the mmap feature flag). Code explicitly matching on the old variant names must be updated.
  • BREAKING CHANGE: MaxMindDbError no longer implements PartialEq. This is because underlying error types like std::io::Error (now wrapped by the Io and Mmap variants) do not implement PartialEq. Code comparing errors directly using == or assert_eq! must be updated, typically by using matches! or by matching on the error kind and potentially its contents.
  • Refactored MaxMindDbError handling using the thiserror crate. Variants like Io, Mmap, and InvalidNetwork now directly wrap the underlying error types (std::io::Error, ipnetwork::IpNetworkError).
  • Errors wrapping underlying types (Io, Mmap, InvalidNetwork) now correctly implement std::error::Error::source(), allowing inspection of the original cause.
  • The Display implementation for MaxMindDbError has been refined to generally show only the specific error details, often including the message from the source error, rather than prefixing with the variant name.
  • lookup_prefix now returns the prefix length of the entry even when the value is not found.
  • Fixed an internal bounds checking error when resolving data pointers. The previous logic could cause a panic on a corrupt database.
Changelog

Sourced from maxminddb's changelog.

0.26.0 - 2025-03-28

  • BREAKING CHANGE: The lookup and lookup_prefix methods now return Ok(None) or Ok((None, prefix_len)) respectively when an IP address is valid but not found in the database (or has no associated data record), instead of returning an Err(MaxMindDbError::AddressNotFoundError). Code previously matching on AddressNotFoundError must be updated to handle the Ok(None) / Ok((None, prefix_len)) variants.
  • BREAKING CHANGE: The MaxMindDBError enum has been renamed MaxMindDbError and variants have been renamed and refactored. For example, IoError is now Io, InvalidDatabaseError is now InvalidDatabase, DecodingError is now Decoding, InvalidNetworkError is now InvalidNetwork. The MapError variant has been replaced by Mmap (under the mmap feature flag). Code explicitly matching on the old variant names must be updated.
  • BREAKING CHANGE: MaxMindDbError no longer implements PartialEq. This is because underlying error types like std::io::Error (now wrapped by the Io and Mmap variants) do not implement PartialEq. Code comparing errors directly using == or assert_eq! must be updated, typically by using matches! or by matching on the error kind and potentially its contents.
  • Refactored MaxMindDbError handling using the thiserror crate. Variants like Io, Mmap, and InvalidNetwork now directly wrap the underlying error types (std::io::Error, ipnetwork::IpNetworkError).
  • Errors wrapping underlying types (Io, Mmap, InvalidNetwork) now correctly implement std::error::Error::source(), allowing inspection of the original cause.
  • The Display implementation for MaxMindDbError has been refined to generally show only the specific error details, often including the message from the source error, rather than prefixing with the variant name.
  • lookup_prefix now returns the prefix length of the entry even when the value is not found.
  • Fixed an internal bounds checking error when resolving data pointers. The previous logic could cause a panic on a corrupt database.

0.25.0 - 2025-02-16

  • Serde will now skip serialization of the GeoIP2 struct fields when Option is none. Pull request by Stefan Sundin. GitHub #79.
  • Serialize and Clone were added to the Metadata struct. Pull request by Stefan Sundin. GitHub #80.
  • Added feature to use simdutf8 as a faster alternative when unsafe-str-decode is too risky. Pull request by Jakub Onderka. GitHub #88.
  • Minor internal refactoring and performance improvements.

0.24.0 - 2024-01-09

  • Added the is_anycast field to the Traits struct. Pull request by Skye. GitHub #73.

0.23.0 - 2022-04-03

... (truncated)

Commits
  • af7697a Merge pull request #94 from oschwald/greg/option
  • 1615c74 Refactor repeated code into function
  • e523f86 Refactor error handling
  • da79410 Return an Option rather than AddressNotFoundError
  • ae20d19 Fix a bug in the bounds checking
  • 4ea6929 Bump version number
  • 82874af Update changelog for 0.25.0
  • 05681a5 Merge pull request #93 from brannondorsey/bench-with-mmap-feature
  • 5278646 Support benchmarking mmap feature
  • ee3b974 Merge pull request #91 from oschwald/dependabot/cargo/fake-4.0
  • Additional commits viewable in compare view

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)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Mar 28, 2025
@tpyo
Copy link
Owner

tpyo commented Apr 11, 2025

@dependabot rebase

Updates the requirements on [maxminddb](https://github.com/oschwald/maxminddb-rust) to permit the latest version.
- [Release notes](https://github.com/oschwald/maxminddb-rust/releases)
- [Changelog](https://github.com/oschwald/maxminddb-rust/blob/main/CHANGELOG.md)
- [Commits](oschwald/maxminddb-rust@0.25.0...0.26.0)

---
updated-dependencies:
- dependency-name: maxminddb
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/cargo/maxminddb-0.26.0 branch from 4a88090 to 29ed966 Compare April 11, 2025 10:24
@tpyo tpyo merged commit 52034b8 into master Apr 22, 2025
1 check passed
@tpyo tpyo deleted the dependabot/cargo/maxminddb-0.26.0 branch April 22, 2025 16:29
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 rust Pull requests that update rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant