Skip to content

Commit ae631eb

Browse files
authored
Merge pull request #1780 from bUnit-dev/release/v2.1
Release of new minor version v2.1
2 parents 77d04e5 + fcbe2b5 commit ae631eb

File tree

12 files changed

+55
-28
lines changed

12 files changed

+55
-28
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
create-nuget:
3636
runs-on: ubuntu-latest
3737
steps:
38-
- uses: actions/checkout@v5
38+
- uses: actions/checkout@v6
3939
with:
4040
fetch-depth: 0 # Get all history to allow automatic versioning using MinVer
4141

@@ -77,7 +77,7 @@ jobs:
7777
dotnet pack src/bunit.generators/ -c release --output ${{ env.NUGET_DIRECTORY }} -p:ContinuousIntegrationBuild=true -p:publicrelease=true
7878
7979
# Publish the NuGet package as an artifact, so they can be used in the following jobs
80-
- uses: actions/upload-artifact@v4
80+
- uses: actions/upload-artifact@v5
8181
with:
8282
name: ${{ env.NUGET_PACKAGES_ARTIFACT }}
8383
if-no-files-found: error
@@ -92,7 +92,7 @@ jobs:
9292
- name: Setup .NET
9393
uses: actions/setup-dotnet@v5
9494

95-
- uses: actions/download-artifact@v5
95+
- uses: actions/download-artifact@v6
9696
with:
9797
name: ${{ env.NUGET_PACKAGES_ARTIFACT }}
9898
path: ${{ env.NUGET_DIRECTORY }}
@@ -117,7 +117,7 @@ jobs:
117117

118118
steps:
119119
- name: 🛒 Checkout repository
120-
uses: actions/checkout@v5
120+
uses: actions/checkout@v6
121121
with:
122122
fetch-depth: 0
123123

@@ -139,7 +139,7 @@ jobs:
139139

140140
- name: 📛 Upload hang- and crash-dumps on test failure
141141
if: success() || failure()
142-
uses: actions/upload-artifact@v4
142+
uses: actions/upload-artifact@v5
143143
with:
144144
if-no-files-found: ignore
145145
name: test-dumps
@@ -151,7 +151,7 @@ jobs:
151151
runs-on: ubuntu-latest
152152
needs: [ create-nuget ]
153153
steps:
154-
- uses: actions/checkout@v5
154+
- uses: actions/checkout@v6
155155
with:
156156
fetch-depth: 0 # Get all history to allow automatic versioning using MinVer
157157

@@ -161,7 +161,7 @@ jobs:
161161
dotnet-version: |
162162
9.0.x
163163
164-
- uses: actions/download-artifact@v5
164+
- uses: actions/download-artifact@v6
165165
with:
166166
name: ${{ env.NUGET_PACKAGES_ARTIFACT }}
167167
path: ${{ env.NUGET_DIRECTORY }}
@@ -211,7 +211,7 @@ jobs:
211211
runs-on: ubuntu-latest
212212
steps:
213213
- name: 🛒 Checkout repository
214-
uses: actions/checkout@v5
214+
uses: actions/checkout@v6
215215
with:
216216
fetch-depth: 0
217217

@@ -264,7 +264,7 @@ jobs:
264264
if: github.event_name == 'pull_request' && github.repository_owner == 'bunit-dev'
265265
steps:
266266
- name: 'Checkout Repository'
267-
uses: actions/checkout@v5
267+
uses: actions/checkout@v6
268268
- name: 'Dependency Review'
269269
uses: actions/dependency-review-action@v4
270270

@@ -275,7 +275,7 @@ jobs:
275275
permissions:
276276
id-token: write
277277
steps:
278-
- uses: actions/download-artifact@v5
278+
- uses: actions/download-artifact@v6
279279
with:
280280
name: ${{ env.NUGET_PACKAGES_ARTIFACT }}
281281
path: ${{ env.NUGET_DIRECTORY }}

.github/workflows/docs-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
steps:
3131

3232
- name: 🛒 Checkout repository
33-
uses: actions/checkout@v5
33+
uses: actions/checkout@v6
3434
with:
3535
fetch-depth: 0
3636
token: ${{ secrets.BUNIT_BOT_TOKEN }}

.github/workflows/prepare-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
if: github.ref == 'refs/heads/main' && contains(fromJson('["major","minor"]'), github.event.inputs.versionIncrement)
1717
steps:
1818
- name: 🛒 Checkout repository
19-
uses: actions/checkout@v5
19+
uses: actions/checkout@v6
2020
with:
2121
fetch-depth: 0
2222
token: ${{ secrets.BUNIT_BOT_TOKEN }}

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,13 @@ jobs:
2828
runs-on: ubuntu-latest
2929
permissions:
3030
id-token: write
31+
contents: write
32+
issues: write
33+
pull-requests: write
3134
steps:
3235

3336
- name: 🛒 Checkout repository
34-
uses: actions/checkout@v5
37+
uses: actions/checkout@v6
3538
with:
3639
fetch-depth: 0
3740
token: ${{ secrets.BUNIT_BOT_TOKEN }}

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ All notable changes to **bUnit** will be documented in this file. The project ad
66

77
## [Unreleased]
88

9+
### Changed
10+
- Registering `AuthenticationState` in the services container rather than as part of the RenderTree. Fixes [#1774](https://github.com/bUnit-dev/bUnit/issues/1774) reported by [@aayjaychan](https://github.com/aayjaychan).
11+
912
## [2.0.66] - 2025-11-11
1013

1114
This major release focuses on platform updates and API simplifications.

Directory.Packages.props

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</ItemGroup>
2424

2525
<ItemGroup Label="Package Versioning">
26-
<PackageVersion Include="Nerdbank.GitVersioning" Version="3.8.118" />
26+
<PackageVersion Include="Nerdbank.GitVersioning" Version="3.9.50" />
2727
</ItemGroup>
2828

2929
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
@@ -76,7 +76,7 @@
7676
<PackageVersion Include="AutoFixture.Xunit3" Version="4.19.0"/>
7777
<PackageVersion Include="MSTest.TestAdapter" Version="3.6.0" />
7878
<PackageVersion Include="MSTest.TestFramework" Version="3.6.0" />
79-
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.0"/>
79+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="18.0.1"/>
8080
<PackageVersion Include="Moq" Version="4.20.72" />
8181
<PackageVersion Include="NSubstitute" Version="5.3.0" />
8282
<PackageVersion Include="NUnit3TestAdapter" Version="5.0.0" />
@@ -88,11 +88,11 @@
8888
<PackageVersion Include="Xunit.Combinatorial" Version="2.0.24"/>
8989
<PackageVersion Include="coverlet.collector" Version="6.0.4" />
9090
<PackageVersion Include="coverlet.msbuild" Version="6.0.4" />
91-
<PackageVersion Include="nunit" Version="4.2.2" />
91+
<PackageVersion Include="nunit" Version="4.4.0" />
9292
<PackageVersion Include="xunit" Version="2.9.3"/>
93-
<PackageVersion Include="xunit.v3" Version="3.1.0"/>
94-
<PackageVersion Include="xunit.v3.extensibility.core" Version="3.1.0" />
95-
<PackageVersion Include="xunit.v3.assert" Version="3.1.0"/>
93+
<PackageVersion Include="xunit.v3" Version="3.2.0"/>
94+
<PackageVersion Include="xunit.v3.extensibility.core" Version="3.2.0" />
95+
<PackageVersion Include="xunit.v3.assert" Version="3.2.0"/>
9696
<PackageVersion Include="xunit.runner.visualstudio" Version="3.1.5"/>
9797
</ItemGroup>
9898

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,6 @@ A huge thank you to the [sponsors of bUnit](https://github.com/sponsors/bUnit-de
4343

4444
<table border="0">
4545
<tr>
46-
<td align="center" width="120">
47-
<a href="https://www.syncfusion.com/blazor-components?utm_source=bunit&utm_medium=cpc&utm_campaign=bunit_blazor_bancy25">
48-
<img class="avatar" src="https://avatars.githubusercontent.com/u/1699795?s=460" width="72" height="72" alt="@syncfusion" />
49-
<br />
50-
Syncfusion
51-
</a>
52-
</td>
5346
<td align="center" width="250">
5447
<a href="https://www.lambdatest.com/?utm_source=bunit&utm_medium=sponsor" target="_blank">
5548
<img src="https://www.lambdatest.com/blue-logo.png" style="vertical-align: middle;" width="250" height="45" />
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace Bunit;
2+
3+
[AttributeUsage(AttributeTargets.All, Inherited = false)]
4+
internal sealed class RemovedInFutureVersionAttribute(string todo) : Attribute
5+
{
6+
public string Todo { get; } = todo;
7+
}

src/bunit/TestDoubles/Authorization/BunitAuthorizationExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@ public partial class BunitContext
1111
/// an authenticated user, as well as adding the <see cref="CascadingAuthenticationState"/> component to the
1212
/// test contexts render tree.
1313
/// </summary>
14+
[RemovedInFutureVersion("SignOutSessionStateManager should be removed from the container.")]
1415
public BunitAuthorizationContext AddAuthorization()
1516
{
16-
RenderTree.TryAdd<CascadingAuthenticationState>();
17+
Services.AddCascadingAuthenticationState();
1718
Services.AddSingleton<BunitSignOutSessionStateManager>();
1819
#pragma warning disable CS0618
1920
Services.AddSingleton<SignOutSessionStateManager>(s => s.GetRequiredService<BunitSignOutSessionStateManager>());

src/bunit/TestDoubles/NavigationManager/BunitSignOutSessionStateManager.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ namespace Bunit.TestDoubles;
77
/// that will help later to assert if the user was logged out
88
/// </summary>
99
#pragma warning disable CS0618
10+
[RemovedInFutureVersion("SignOutSessionStateManager is obsolete")]
1011
public class BunitSignOutSessionStateManager : SignOutSessionStateManager
1112
#pragma warning restore CS0618
1213
{

0 commit comments

Comments
 (0)