From 61eff8fc8ef94d4617328481ce70ea4bd3b5ccd7 Mon Sep 17 00:00:00 2001 From: Steve Smith Date: Fri, 2 Oct 2026 14:39:44 -0400 Subject: [PATCH] Update NuGet packages; pin ImageSharp and Stripe.net - Bump ASP.NET Core/EF Core to 10.0.12, NSubstitute 6.2.0, xunit.runner.visualstudio 4.0.0, Microsoft.NET.Test.Sdk 18.10.1, coverlet 10.1.0, Dapper, Markdig, altcover - Pin SixLabors.ImageSharp to [2.1.13], the last Apache-2.0 release (3.0+ is Split License) - Pin Stripe.net to [52.2.0]; 53.x targets a new Stripe API version, so webhook ConstructEvent would reject events from the currently configured endpoint version - Dependabot: ignore ImageSharp >= 3.0.0 and Stripe.net major updates - Fix ambiguous NSubstitute Returns(null) call surfaced by NSubstitute 6.2 Co-Authored-By: Claude Opus 5.5 (1M context) --- .github/dependabot.yml | 7 +++ Directory.Packages.props | 48 ++++++++++--------- .../OnPostUpdatePersonalInfoAsync.cs | 2 +- 3 files changed, 33 insertions(+), 24 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index ebb172bb0..f51e00694 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -13,3 +13,10 @@ updates: open-pull-requests-limit: 10 schedule: interval: "daily" + ignore: + # ImageSharp 3.0+ is under the Six Labors Split License; stay on Apache-2.0 2.x + - dependency-name: "SixLabors.ImageSharp" + versions: [">= 3.0.0"] + # Stripe.net majors change the Stripe API version; upgrade manually with webhook config + - dependency-name: "Stripe.net" + update-types: ["version-update:semver-major"] diff --git a/Directory.Packages.props b/Directory.Packages.props index a6b52c099..9f00f1f72 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -4,7 +4,7 @@ true - + @@ -17,13 +17,13 @@ - - + + runtime; build; native; contentfiles; analyzers all - + @@ -32,7 +32,7 @@ - + @@ -44,31 +44,31 @@ - - - - + + + + - - + + - - - - + + + + - - + + - - + + - + @@ -77,9 +77,11 @@ - + + - + + @@ -87,7 +89,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/tests/DevBetterWeb.Tests/Pages/AdminUserModelTests/OnPostUpdatePersonalInfoAsync.cs b/tests/DevBetterWeb.Tests/Pages/AdminUserModelTests/OnPostUpdatePersonalInfoAsync.cs index 73aee4f77..f55ebffda 100644 --- a/tests/DevBetterWeb.Tests/Pages/AdminUserModelTests/OnPostUpdatePersonalInfoAsync.cs +++ b/tests/DevBetterWeb.Tests/Pages/AdminUserModelTests/OnPostUpdatePersonalInfoAsync.cs @@ -116,7 +116,7 @@ public async Task RedisplaysFormInsteadOfBadRequestGivenMissingLastName() public async Task RedisplaysFormWithErrorGivenNoMemberRecord() { _memberRepository.FirstOrDefaultAsync(Arg.Any(), Arg.Any()) - .Returns(null); + .Returns((Member?)null); _pageModel.UserPersonalUpdateModel = new UserPersonalUpdateModel { FirstName = "Kajan", LastName = "Smith" }; var result = await _pageModel.OnPostUpdatePersonalInfoAsync(UserId);