Releases: maxmind/GeoIP2-dotnet
Releases · maxmind/GeoIP2-dotnet
5.2.0
- .NET 5.0 has been removed as a target as it has reach its end of life.
However, if you are using .NET 5.0, the .NET Standard 2.1 target should
continue working for you. - .NET 7.0 and .NET 8.0 have been added as a target.
- The
IsAnycast
property was added toMaxMind.GeoIP2.Model.Traits
. This
returnstrue
if the IP address belongs to an anycast
network. This is available for the
GeoIP2 Country, City Plus, and Insights web services and the GeoIP2 Country,
City, and Enterprise databases.
5.1.0
5.0.0
4.1.0
- Support for mobile country code (MCC) and mobile network codes (MNC) was
added for the GeoIP2 ISP and Enterprise databases as well as the GeoIP2
City and Insights web services. TheMobileCountryCode
and
MobileNetworkCode
properties were added toMaxMind.GeoIP2.Responses.IspResponse
for the GeoIP2 ISP database andMaxMind.GeoIP2.Model.Traits
for the
Enterprise database and the GeoIP2 City and Insights web services. We expect
this data to be available by late January, 2022.
4.0.1
4.0.0
- This library now requires .NET Framework 4.6.1 or greater or .NET Standard
2.0 or greater. - .NET 5.0 was added as a target framework.
System.Text.Json
is now used for deserialization of web service requests.
Newtonsoft.Json
is no longer supported for serialization or
deserialization.- The
Names
properties onNamedEntity
models are now
IReadOnlyDictionary<string, string>
. - The
Subdivisions
property onCityResponse
andInsightsResponse
is now
anIReadOnlyList<Subdivision>
. GeoNameId
properties onNamedEntity
models are nowlong?
rather than
int?
to match the underlying database.- The
httpMessageHandler
argument is now correctly initialized by the
WebServiceClient
constructor. - The
Metadata
property was added toIGeoIP2DatabaseReader
. Pull request
by Mihai Valentin Caracostea. GitHub #134 & #135.
3.3.0
3.2.0
- You may now create
WebServiceClient
as Typed Client with
IHttpClientFactory
in .NET Core 2.1+. Pull Request by Bojan Nikolić.
GitHub #115 & #117. - The
WebServiceClient
constructor now supports an optional
httpMessageHandler
parameter. This is used in creating theHttpClient
for asynchronous requests.
3.1.0
- This library has been updated to support the nullable reference types
introduced in C# 8.0. - A
Network
property has been added to the various response models. This
represents the largest network where all the fields besides the IP
address are the same. - The
StaticIPScore
property has been added toMaxMind.GeoIP2.Model.Traits
.
This output is available from GeoIP2 Precision Insights. It is an indicator
of how static or dynamic an IP address is. - The
UserCount
property has been added toMaxMind.GeoIP2.Model.Traits
.
This output is available from GeoIP2 Precision Insights. It is an
estimate of the number of users sharing the IP/network over the past
24 hours. - Updated documentation of anonymizer properties -
IsAnonymousVpn
and
IsHostingProvider
- to be more descriptive. netstandard2.1
was added as a target framework.
3.0.0
- The
userId
constructor parameter forWebServiceClient
was renamed to
accountId
and support was added for the error codesACCOUNT_ID_REQUIRED
andACCOUNT_ID_UNKNOWN
. - The exception classes are no longer serializable when using the .NET
Framework. This eliminates a difference between the .NET Framework
assemblies and the .NET Standard ones. - The
AutonomousSystemNumber
properties onMaxMind.GeoIP2.Model.Traits
,
MaxMind.GeoIP2.Responses.AsnResponse
, and
MaxMind.GeoIP2.Responses.IspResponse
are nowlong?
to match the underlying
types in the databases. MaxMind.Db
was upgraded to 2.4.0. This adds a new file mode enum value for
the database reader,FileAccessMode.MemoryMappedGlobal
. When used, this will
open the file in global memory map mode. This requires the "create global
objects" right.