Bump MaxMind.GeoIP2 from 5.1.0 to 6.0.0#63
Open
dependabot[bot] wants to merge 1 commit into
Open
Conversation
--- updated-dependencies: - dependency-name: MaxMind.GeoIP2 dependency-version: 6.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Contributor
Author
LabelsThe following labels could not be found: Please fix the above issues or remove invalid values from |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Updated MaxMind.GeoIP2 from 5.1.0 to 6.0.0.
Release notes
Sourced from MaxMind.GeoIP2's releases.
6.0.0
6.0.0-beta1notes below for thebreaking changes introduced in the 6.0 line.
MaxMind.Dbhas been updated to 5.1.0. Highlights:FileAccessMode.MemoryMappednow uses an unnamed file-backedmemory-mapped region instead of a named
Local\<sha>section. Thisfixes an
UnauthorizedAccessExceptionwhen processes running underdifferent identities open the same database.
FileAccessMode.MemoryMappedGlobalhas been deprecated. Existing usagestransparently route to the new unnamed file-backed path, so the 'create
global objects' right is no longer required. Code passing
FileAccessMode.MemoryMappedGlobalto aDatabaseReaderconstructorwill see an
[Obsolete]warning.6.0.0-beta1
to C# records.
initialization using
[MapKey]attributes. The[Constructor]and[Parameter]attributes are no longer used on GeoIP2 model classes.SetLocales()replaced withWithLocales()which returns a newinstance via record
withexpressions instead of mutating in place.initsetters instead ofinternal set.Localesproperty onNamedEntity(and all subclasses) isnow
public(previouslyprotected internal). This is required for therecord
withexpression pattern.(e.g.,
new Traits(domain: "example.com")) must switch to object initializersyntax (e.g.,
new Traits { Domain = "example.com" }).ToString()onNamedEntity(and all subclasses:City, Country, Continent, Subdivision, RepresentedCountry) has been removed.
Records provide a compiler-generated
ToString()that outputs all propertyvalues. Use the
Nameproperty directly instead.FileAccessMode.Memoryand theDatabaseReader(Stream)constructor now use anonymous memory-mapped files internally instead of
byte[], viaMaxMind.Db5.0.0. This removes the previous ~2.1 GiB sizelimitation but may break environments where memory-mapped files are not
supported, such as WASM/browser runtimes, some mobile/sandboxed runtimes, or
hardened containers with restricted shared-memory syscalls. Non-seekable
streams also now require a writable temp directory.
InternalsVisibleToforMaxMind.MinFraudassembly.AnonymousPlusandTryAnonymousPlusmethods have been added toIGeoIP2DatabaseReader. These methods were previously only available onDatabaseReader.TryXxxmethods onDatabaseReaderandIGeoIP2DatabaseReadernow usethe
[MaybeNullWhen(false)]attribute instead of nullableoutparameters.This enables the compiler to understand that the
outparameter is non-nullwhen the method returns
true, eliminating the need for redundant null checksor null-forgiving operators after a successful lookup. Pull request by Dmitry
Solovev. GitHub #387.
5.4.1
5.4.0
Anonymizerobject has been added toInsightsResponse. This objectprovides anonymizer-related data including VPN confidence scoring, provider
name detection, and network last seen date. This data is available from the
GeoIP2 Insights web service.
IpRiskSnapshotproperty has been added toMaxMind.GeoIP2.Model.Traits.This provides a risk score associated with the IP address, ranging from 0.01
to 99. Higher scores indicate greater risk. This is available from the GeoIP2
Insights web service.
MaxMind.GeoIP2.Model.Traitshave been markedObsoleteand users should migrate to using theAnonymizerobject on theresponse instead:
IsAnonymous,IsAnonymousVpn,IsHostingProvider,IsPublicProxy,IsResidentialProxy, andIsTorExitNode. These propertieswill continue to work but are deprecated in favor of the new
Anonymizerobject.
MaxMind.GeoIP2.Model.Anonymizerclass has been added with thefollowing properties:
Confidence- A score ranging from 1 to 99 representing percent confidencethat the network is currently part of an actively used VPN service.
IsAnonymous- Indicates whether the IP belongs to any sort of anonymousnetwork.
IsAnonymousVpn- True if the IP is registered to an anonymous VPN provider.IsHostingProvider- True if the IP belongs to a hosting or VPN provider.IsPublicProxy- True if the IP belongs to a public proxy.IsResidentialProxy- True if the IP is on a suspected anonymizing networkand belongs to a residential ISP.
IsTorExitNode- True if the IP belongs to a Tor exit node.NetworkLastSeen- The last day the network was sighted in analysis ofanonymized networks (available on .NET 6.0+ as
DateOnly).ProviderName- The name of the VPN provider associated with the network.5.3.0
lookup in this database, use the
AnonymousPlusAndTryAnonymousPlusmethods on
DatabaseReader.reach their end of support from Microsoft. If you are using these versions,
the .NET Standard 2.1 target should continue working for you.
MetroCodeinMaxMind.GeoIP2.Model.Locationhas been markedObsolete.The code values are no longer being maintained.
5.2.0
However, if you are using .NET 5.0, the .NET Standard 2.1 target should
continue working for you.
IsAnycastproperty was added toMaxMind.GeoIP2.Model.Traits. Thisreturns
trueif the IP address belongs to an anycastnetwork. This is available for the
GeoIP2 Country, City Plus, and Insights web services and the GeoIP2 Country,
City, and Enterprise databases.
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)