fix: upgrade AutoMapper 12→15.1.1 and Nethereum.Web3 5→6.1.0#287
Merged
Conversation
Resolves the dependency conflict where AutoMapper 15.1.1 requires Microsoft.Extensions.Logging.Abstractions >=10.0.0 while Nethereum.Web3 5.0.0 restricts it to <10.0.0. Changes: - AutoMapper: 12.0.1 → 15.1.1 (security fix: uncontrolled recursion DoS) - Nethereum.Web3: 5.0.0 → 6.1.0 (removes the MEL.Abstractions upper bound) - AutoMapperConfiguration.cs: pass ILoggerFactory (new required param in v15) - ApplicationConfiguration.cs: use factory delegate to inject ILoggerFactory from DI Build verified locally with `dotnet build Reminders.sln` — 0 errors. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Security Fix
Resolves the dependency conflict that was blocking PR #260 (AutoMapper Dependabot PR).
Problem
AutoMapper 15.1.1 requires
Microsoft.Extensions.Logging.Abstractions >= 10.0.0, but the previousNethereum.Web3 5.0.0restricted it to< 10.0.0— an incompatible constraint (NU1107).Changes
AutoMapperNethereum.Web3Code changes
AutoMapperConfiguration.cs: AutoMapper 15 now requiresILoggerFactoryas a second parameter — added withNullLoggerFactory.Instanceas fallbackApplicationConfiguration.cs: Changed DI registration to a factory delegate so the realILoggerFactoryis injected from the service providerVerified
dotnet restore Reminders.sln— no NU1107 conflictdotnet build Reminders.sln— 0 errorsCloses #260