Skip to content

6.2.0

Latest

Choose a tag to compare

@oschwald oschwald released this 17 Nov 23:11
Immutable release. Only release title and notes can be modified.
b41571d
  • Added NativeAOT and trimming support for the database reader and web service
    client on .NET 8 and later. Built-in models need no caller registration.
  • Non-null model records and collections now retain their defaults when JSON
    fields are omitted or explicitly null. This also applies when callers assign
    null to these properties.
  • Database-type errors now report the public lookup method without inspecting
    the stack, so the method name remains available after trimming.
  • Updated MaxMind.Db to 5.3.0. Version 5.2.0 added source-generated model
    decoding and decoding limits, and it throws InvalidDatabaseException for
    truncated or out-of-bounds data that previously could throw
    ArgumentOutOfRangeException. Version 5.3.0 makes NativeAOT lookups faster.
    See the release notes for
    5.2.0
    and
    5.3.0.

Known issue: MaxMind.Db 5.3.0 includes a source generator that runs in
projects that reference this package. If your project subclasses a GeoIP2
model and hides one of its properties with new, the build reports warning
MMDBSG014. With TreatWarningsAsErrors, the build fails. If the project never
decodes MMDB data into that subclass, set
<MaxMindDbAotDiagnostics>false</MaxMindDbAotDiagnostics> in the project file
to turn off the generator's diagnostics.