Skip to content

chore(go): update module github.com/oschwald/maxminddb-golang/v2 (v2.7.0 → v2.9.0) - #248

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-oschwald-maxminddb-golang-v2-2.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-oschwald-maxminddb-golang-v2-2.x

Conversation

@renovate

@renovate renovate Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
github.com/oschwald/maxminddb-golang/v2 v2.7.0 → v2.9.0 age confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

oschwald/maxminddb-golang (github.com/oschwald/maxminddb-golang/v2)

v2.9.0: 2.9.0

Compare Source

  • Improved lookup and decoding performance:
    • Reduced IPv6 search-tree traversal overhead.
    • Reduced integer, database pointer, and map key decoding overhead.
    • Reduced reflection overhead when decoding records into structs.
    • Reduced reflection overhead for scalar values read through database
      pointers or decoded into Go pointer fields.
    • Reduced slice decoding overhead and temporary allocations when growing or
      shrinking slices.
    • Reduced struct field matching and access overhead, including scalar fields
      in embedded structs.
  • Reflection decoding now enforces the 512-level depth limit for scalar values,
    including in DecodePath. Some scalar values at depth 513 were previously
    accepted.

v2.8.0: 2.8.0

Compare Source

  • String caching now uses buckets to improve concurrent decoding. On 64-bit
    systems, the table grows from 64 KiB to 72 KiB and is allocated only when an
    eligible string is decoded. Entry capacity grows from 4,096 to 7,168, which
    can also increase retained string memory. Pull request by James Ranson.
    GitHub #​252.
  • Standalone mmdbdata.NewDecoder calls now default to no string cache.
    This reduces setup cost for short-lived decoders. Use the new
    mmdbdata.WithStringCache() option for repeated reads through a retained
    decoder or its cursors. Without the option, repeated string reads can
    allocate more and run slower. Cursors supplied by a Reader continue to
    share its caching policy.
  • Added mmdbdata.Decoder.CursorAt(offset) to read independent records from
    one buffer without changing the decoder's position. The cursors share its
    string cache and can be read concurrently while the buffer remains valid
    and unchanged.
  • Reduced maxminddb-gen generation and test time by reusing loaded dependencies
    during output validation, avoiding duplicate syntax work, and omitting unused
    parser metadata. Full type checking and generated-output validation remain
    enabled. Validation normalizes paths from package loaders to avoid false
    duplicate declarations. GitHub #​256.
  • Reduced reflection decoding overhead for string struct fields, including
    fields read through database pointers, while retaining existing validation
    and custom unmarshaling behavior.
  • Shared string-cache handling between map keys and decoded string values.
  • Fixed Reader.Verify() accepting invalid UTF-8 values overwritten by
    duplicate map keys. Verification now checks every encoded string in the data
    and metadata sections, including overwritten values.
  • Fixed maxminddb-gen rejecting fields that use type aliases of supported
    types, including aliases in nested containers.
  • Fixed maxminddb-gen panicking when a byte slice or its elements use an
    imported type alias.
  • Fixed maxminddb-gen emitting inaccessible type names for imported container
    aliases with private element or map key types. Generated helpers infer those
    types while retaining allocation, overflow, and size checks.
  • Fixed maxminddb-gen emitting private byte aliases in constraints for nested
    byte slice aliases.
  • Fixed maxminddb-gen emitting inaccessible types for imported aliases whose
    generic arguments contain private types, fields, or methods.

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • "before 9am on tuesday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate

renovate Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor Author

ℹ️ Artifact update notice

File name: packages/michael/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • 1 additional dependency was updated

Due to Go's usage of Minimal Version Selection (MVS), these packages have been updated to the minimum version available, so will still abide by minimumReleaseAge=5 days

Details:

Package Change
golang.org/x/sys v0.48.0 -> v0.49.0

@futo-kritika

futo-kritika Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Re-runViewConfidence Score: 5/5

[Medium risk] No findings. Approved.

Summary

Updates Michael’s MaxMind reader and indirect system dependency.

  • Michael’s ASN lookups use maxminddb v2.9.0 when rebuilt with the updated packages/michael/go.mod.
  • Upstream v2.8.0–v2.9.0 notes describe decoding optimizations affecting geoip.Database.Lookup’s struct decoding.
Review context · 4 sources · 2/5 commands

Reviews (1) · Last reviewed commit: "chore(go): update module github.com/osch..." · openai/gpt-6.1-sol · $0.14

@futo-kritika futo-kritika Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kritika: confidence 5/5 with medium risk at d9b7ff4.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants