Skip to content

Commit

Permalink
v1.7.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
dj-nitehawk committed Oct 13, 2024
1 parent 7ca3d27 commit 773b0c2
Show file tree
Hide file tree
Showing 15 changed files with 37 additions and 50 deletions.
2 changes: 1 addition & 1 deletion FastEndpoints.TemplatePack.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>

<Version>1.7.0</Version>
<Version>1.7.1</Version>

<PackageType>Template</PackageType>
<PackageId>FastEndpoints.TemplatePack</PackageId>
Expand Down
6 changes: 2 additions & 4 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
- add rider `dotnet watch` profile
- add https with lettuceencrypt
- add docker compose files
- upgrade dependencies to latest
- upgrade dependencies to latest
- remove `Xunit.Priority` package
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
using MyProject;

namespace Members.Signup;
namespace Members.Signup;

sealed class DuplicateInfoChecker : IPreProcessor<Request>
{
public async Task PreProcessAsync(IPreProcessorContext<Request> ctx, CancellationToken c)
{
var tEmail = DB.Find<Dom.Member>()
.Match(m => m.Email == ctx.Request.Email.LowerCase())
.Match(m => m.Email == ctx.Request!.Email.LowerCase())
.ExecuteAnyAsync(cancellation: c);

var tMobile = DB.Find<Dom.Member>()
.Match(m => m.MobileNumber == ctx.Request.Contact.MobileNumber.Trim())
.Match(m => m.MobileNumber == ctx.Request!.Contact.MobileNumber.Trim())
.ExecuteAnyAsync(cancellation: c);

var (eml, mob) = await Tasks.Run(tEmail, tMobile);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using MyProject;

namespace Members.Signup;
namespace Members.Signup;

sealed class Endpoint : Endpoint<Request, Response, Mapper>
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using MyProject;
using Dom;
using Dom;

namespace Members.Signup;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using MyProject;
using FluentValidation;
using FluentValidation;

namespace Members.Signup;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using Amazon.SimpleEmailV2;
using Dom;
using MongoDB.Bson;
using MyProject;

namespace Members.Signup.Tests;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Amazon.SimpleEmailV2.Model;
using MyProject;
using MyProject.Tests;

namespace Members.Signup.Tests;
Expand Down
22 changes: 11 additions & 11 deletions templates/integrated/Source/MyProject.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AWSSDK.SimpleEmailV2" Version="3.7.304.15"/>
<PackageReference Include="AWSSDK.SimpleEmailV2" Version="3.7.402.7"/>
<PackageReference Include="BCrypt.Net-Next" Version="4.0.3"/>
<PackageReference Include="FastEndpoints" Version="5.27.0"/>
<PackageReference Include="FastEndpoints.Generator" Version="5.27.0" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive"/>
<PackageReference Include="FastEndpoints.Security" Version="5.27.0"/>
<PackageReference Include="FastEndpoints.Swagger" Version="5.27.0"/>
<PackageReference Include="FastEndpoints" Version="5.30.0"/>
<PackageReference Include="FastEndpoints.Generator" Version="5.30.0" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive"/>
<PackageReference Include="FastEndpoints.Security" Version="5.30.0"/>
<PackageReference Include="FastEndpoints.Swagger" Version="5.30.0"/>
<PackageReference Include="LettuceEncrypt" Version="1.3.3"/>
<PackageReference Include="MessagePack" Version="2.5.171"/>
<PackageReference Include="MongoDB.Entities" Version="23.1.0"/>
<PackageReference Include="MessagePack" Version="2.5.172"/>
<PackageReference Include="MongoDB.Entities" Version="23.1.1"/>
</ItemGroup>

<!-- exclude test related code from release build -->
Expand All @@ -27,10 +27,10 @@
</PropertyGroup>
<ItemGroup Condition="'$(Configuration)' != 'Release'">
<PackageReference Include="FakeItEasy" Version="8.3.0"/>
<PackageReference Include="FastEndpoints.Testing" Version="5.27.0"/>
<PackageReference Include="FluentAssertions" Version="6.12.0"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0"/>
<PackageReference Include="xunit" Version="2.9.0"/>
<PackageReference Include="FastEndpoints.Testing" Version="5.30.0"/>
<PackageReference Include="FluentAssertions" Version="6.12.1"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1"/>
<PackageReference Include="xunit" Version="2.9.2"/>
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive"/>
<PackageReference Include="coverlet.collector" Version="6.0.2" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive"/>
<Content Update="Tests\xunit.runner.json" TargetPath="xunit.runner.json"/>
Expand Down
3 changes: 1 addition & 2 deletions templates/integrated/Source/Tests/Meta.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
global using FastEndpoints.Testing;
global using FluentAssertions;
global using Xunit;
global using Xunit.Priority;
global using Xunit;
8 changes: 4 additions & 4 deletions templates/project/Source/MyProject.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FastEndpoints" Version="5.27.0" />
<PackageReference Include="FastEndpoints.Generator" Version="5.27.0" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
<PackageReference Include="FastEndpoints.Security" Version="5.27.0" />
<PackageReference Include="FastEndpoints.Swagger" Version="5.27.0" />
<PackageReference Include="FastEndpoints" Version="5.30.0"/>
<PackageReference Include="FastEndpoints.Generator" Version="5.30.0" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive"/>
<PackageReference Include="FastEndpoints.Security" Version="5.30.0"/>
<PackageReference Include="FastEndpoints.Swagger" Version="5.30.0"/>
</ItemGroup>

</Project>
3 changes: 1 addition & 2 deletions templates/project/Tests/Meta.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
global using FluentAssertions;
global using Microsoft.Extensions.DependencyInjection;
global using System.Net;
global using Xunit;
global using Xunit.Priority;
global using Xunit;
10 changes: 5 additions & 5 deletions templates/project/Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FastEndpoints.Testing" Version="5.27.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0"/>
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
<PackageReference Include="FastEndpoints.Testing" Version="5.30.0"/>
<PackageReference Include="FluentAssertions" Version="6.12.1"/>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1"/>
<PackageReference Include="xunit" Version="2.9.2"/>
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive"/>
<PackageReference Include="coverlet.collector" Version="6.0.2" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive"/>
</ItemGroup>

Expand Down
3 changes: 1 addition & 2 deletions templates/test/Tests/Meta.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
global using FluentAssertions;
global using Microsoft.Extensions.DependencyInjection;
global using System.Net;
global using Xunit;
global using Xunit.Priority;
global using Xunit;
10 changes: 5 additions & 5 deletions templates/test/Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FastEndpoints.Testing" Version="5.27.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="xunit" Version="2.9.0" />
<PackageReference Include="FastEndpoints.Testing" Version="5.30.0" />
<PackageReference Include="FluentAssertions" Version="6.12.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="xunit" Version="2.9.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
<PackageReference Include="coverlet.collector" Version="6.0.2" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
</ItemGroup>
Expand All @@ -21,4 +21,4 @@
<Content Include="xunit.runner.json" CopyToOutputDirectory="Always"/>
</ItemGroup>

</Project>
</Project>

0 comments on commit 773b0c2

Please sign in to comment.