Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
chore(deps): update non-major nuget dependencies (#619)
Browse files Browse the repository at this point in the history
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [FastEndpoints](https://fast-endpoints.com/)
([source](https://togithub.com/FastEndpoints/FastEndpoints)) | `5.21.2`
-> `5.22.0` |
[![age](https://developer.mend.io/api/mc/badges/age/nuget/FastEndpoints/5.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/FastEndpoints/5.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/FastEndpoints/5.21.2/5.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/FastEndpoints/5.21.2/5.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [FastEndpoints.Generator](https://fast-endpoints.com/)
([source](https://togithub.com/FastEndpoints/FastEndpoints)) | `5.21.2`
-> `5.22.0` |
[![age](https://developer.mend.io/api/mc/badges/age/nuget/FastEndpoints.Generator/5.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/FastEndpoints.Generator/5.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/FastEndpoints.Generator/5.21.2/5.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/FastEndpoints.Generator/5.21.2/5.22.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
|
[SonarAnalyzer.CSharp](https://redirect.sonarsource.com/doc/sonar-visualstudio.html)
([source](https://togithub.com/SonarSource/sonar-dotnet)) |
`9.18.0.83559` -> `9.19.0.84025` |
[![age](https://developer.mend.io/api/mc/badges/age/nuget/SonarAnalyzer.CSharp/9.19.0.84025?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/SonarAnalyzer.CSharp/9.19.0.84025?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/SonarAnalyzer.CSharp/9.18.0.83559/9.19.0.84025?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/SonarAnalyzer.CSharp/9.18.0.83559/9.19.0.84025?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
| [Verify.Xunit](https://togithub.com/VerifyTests/Verify) | `23.0.1` ->
`23.1.0` |
[![age](https://developer.mend.io/api/mc/badges/age/nuget/Verify.Xunit/23.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/nuget/Verify.Xunit/23.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/nuget/Verify.Xunit/23.0.1/23.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/nuget/Verify.Xunit/23.0.1/23.1.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>SonarSource/sonar-dotnet (SonarAnalyzer.CSharp)</summary>

###
[`v9.19.0.84025`](https://togithub.com/SonarSource/sonar-dotnet/releases/tag/9.19.0.84025):
9.19

[Compare
Source](https://togithub.com/SonarSource/sonar-dotnet/compare/9.18.0.83559...9.19.0.84025)

Hello,

small release to enhance the deprecation warning before SonarQube
v.10.4, explicitly notifying users analyzing with **MSBuild 14** that
it's **no longer supported** while maintaining the *deprecation status
for MSBuild 15*.
Furthermore, we've also introduced three improvements to our rules:

##### Improvements

- [8609](https://togithub.com/SonarSource/sonar-dotnet/pull/8609) -
AnalysisWarningAnalyzerBase: targeted warnings for MSBuild14/15
- [8559](https://togithub.com/SonarSource/sonar-dotnet/issues/8559) -
\[C#, VB.NET] Fix S2178 Rule message: Mention extracting right operand
if applicable
- [6139](https://togithub.com/SonarSource/sonar-dotnet/issues/6139) -
\[C#, VB.NET] Detect symbol references for @&#8203; keyword identifiers
- [3753](https://togithub.com/SonarSource/sonar-dotnet/issues/3753) -
\[C#, VB.NET] S1186: also inspect empty `set` and `init` and empty local
functions

</details>

<details>
<summary>VerifyTests/Verify (Verify.Xunit)</summary>

###
[`v23.1.0`](https://togithub.com/VerifyTests/Verify/compare/23.0.1...23.1.0)

[Compare
Source](https://togithub.com/VerifyTests/Verify/compare/23.0.1...23.1.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am" (UTC), Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/ThorstenSauter/NoPlan).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xNTMuMiIsInVwZGF0ZWRJblZlciI6IjM3LjE1My4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Thorsten Sauter <[email protected]>
  • Loading branch information
renovate[bot] and ThorstenSauter committed Feb 3, 2024
1 parent 05e178c commit fcfbe1c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 14 deletions.
8 changes: 4 additions & 4 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
<PackageVersion Include="Azure.Monitor.OpenTelemetry.AspNetCore" Version="1.1.0"/>
<PackageVersion Include="Bogus" Version="35.4.0"/>
<PackageVersion Include="coverlet.collector" Version="6.0.0"/>
<PackageVersion Include="FastEndpoints" Version="5.21.2"/>
<PackageVersion Include="FastEndpoints.Generator" Version="5.21.2"/>
<PackageVersion Include="FastEndpoints" Version="5.22.0"/>
<PackageVersion Include="FastEndpoints.Generator" Version="5.22.0"/>
<PackageVersion Include="FluentAssertions" Version="6.12.0"/>
<PackageVersion Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.1"/>
<PackageVersion Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.1"/>
Expand All @@ -20,10 +20,10 @@
<PackageVersion Include="Microsoft.Identity.Web" Version="2.16.1"/>
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0"/>
<PackageVersion Include="SecurityCodeScan.VS2019" Version="5.6.7"/>
<PackageVersion Include="SonarAnalyzer.CSharp" Version="9.18.0.83559"/>
<PackageVersion Include="SonarAnalyzer.CSharp" Version="9.19.0.84025"/>
<PackageVersion Include="StyleCop.Analyzers" Version="1.2.0-beta.556"/>
<PackageVersion Include="Testcontainers.MsSql" Version="3.7.0"/>
<PackageVersion Include="Verify.Xunit" Version="23.0.1"/>
<PackageVersion Include="Verify.Xunit" Version="23.1.0"/>
<PackageVersion Include="xunit" Version="2.6.6"/>
<PackageVersion Include="xunit.runner.visualstudio" Version="2.5.6"/>
</ItemGroup>
Expand Down
5 changes: 2 additions & 3 deletions src/NoPlan.Api/Endpoints/V1/ToDos/GetAllToDosEndpoint.cs
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
using Microsoft.AspNetCore.Http.HttpResults;
using NoPlan.Api.Features.ToDos;
using NoPlan.Api.Mappers;
using NoPlan.Contracts.Requests.V1.ToDos;
using NoPlan.Contracts.Responses.V1.ToDos;

namespace NoPlan.Api.Endpoints.V1.ToDos;

public sealed class GetAllToDosEndpoint(IToDoService toDoService) : Endpoint<GetAllToDosRequest, Ok<ToDosResponse>>
public sealed class GetAllToDosEndpoint(IToDoService toDoService) : Endpoint<EmptyRequest, Ok<ToDosResponse>>
{
public override void Configure()
{
Expand All @@ -15,6 +14,6 @@ public override void Configure()
Policies(AuthorizationPolicies.Users);
}

public override async Task<Ok<ToDosResponse>> ExecuteAsync(GetAllToDosRequest req, CancellationToken ct) =>
public override async Task<Ok<ToDosResponse>> ExecuteAsync(EmptyRequest req, CancellationToken ct) =>
TypedResults.Ok((await toDoService.GetAllAsync(User.GetId(), ct)).ToResponse());
}
3 changes: 0 additions & 3 deletions src/NoPlan.Contracts/Requests/V1/ToDos/GetAllToDosRequest.cs

This file was deleted.

4 changes: 4 additions & 0 deletions tests/NoPlan.Api.Tests.Integration/EndpointCollection.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
namespace NoPlan.Api.Tests.Integration;

[CollectionDefinition(nameof(EndpointCollection))]
public class EndpointCollection;
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ public async Task HandleAsync_ShouldReturn200AndToDos_WhenUserIsAuthenticated()
await AuthenticatedClientClient.POSTAsync<CreateToDoEndpoint, CreateToDoRequest, ToDoResponse>(createToDoRequest);
}

var request = new GetAllToDosRequest();
var request = new EmptyRequest();

// Act
var (response, result) = await AuthenticatedClientClient.GETAsync<GetAllToDosEndpoint, GetAllToDosRequest, ToDosResponse>(request);
var (response, result) =
await AuthenticatedClientClient.GETAsync<GetAllToDosEndpoint, EmptyRequest, ToDosResponse>(request);

// Assert
response.StatusCode.Should().Be(HttpStatusCode.OK);
Expand All @@ -31,10 +32,11 @@ public async Task HandleAsync_ShouldReturn200AndToDos_WhenUserIsAuthenticated()
public async Task HandleAsync_ShouldReturn401_WhenUserIsNotAuthenticated()
{
// Arrange
var request = new GetAllToDosRequest();
var request = new EmptyRequest();

// Act
var (response, result) = await AnonymousClient.GETAsync<GetAllToDosEndpoint, GetAllToDosRequest, ToDosResponse>(request);
var (response, result) =
await AnonymousClient.GETAsync<GetAllToDosEndpoint, EmptyRequest, ToDosResponse>(request);

// Assert
response.StatusCode.Should().Be(HttpStatusCode.Unauthorized);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
namespace NoPlan.Api.Tests.Integration.TestBases;

[Collection(nameof(EndpointCollection))]
public class EndpointTestBase(NoPlanApiFactory factory) : IAsyncLifetime, IClassFixture<NoPlanApiFactory>
{
protected HttpClient AuthenticatedClientClient { get; private set; } = null!;
Expand Down

0 comments on commit fcfbe1c

Please sign in to comment.