Skip to content

Commit 2320de8

Browse files
authored
Merge pull request #64 from kolan72/main
Update dev from main.
2 parents 416773c + 31fa4d8 commit 2320de8

File tree

9 files changed

+109
-78
lines changed

9 files changed

+109
-78
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
## 0.12.0
2+
3+
- Support .NET 8.0 and FluentValidation 12.0.0.
4+
- Fix `ExpressPropertyValidator<TObj, T>` to prevent calling `Func<TObj, T>` propertyFunc twice when a success handler is present.
5+
- Fix NU1504: Duplicate 'PackageReference' found
6+
- Update NUnit NuGet package to v4.4.0.
7+
- Add test for `ValidateAsync` with both `WithValidation` and `WithAsyncValidation` in `ExpressValidatorBuilder`.
8+
- Add test to ensure synchronous Validate throws `AsyncValidatorInvokedSynchronouslyException` if the builder has async rules.
9+
- Add a test for the `ValidateAsync` method with simulated external services.
10+
- Add 'Asynchronous Validation' README Chapter.
11+
12+
113
## 0.10.0
214

315
- Introduced the `QuickValidator.ValidateAsync<T>(T, Action<IRuleBuilderOptions<T, T>>, string, Action<T>, CancellationToken)` extension method.

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ ExpressValidator is a library that provides the ability to validate objects usin
2424

2525
## 📜 Documentation
2626

27-
For details, please check the [API documentation](https://www.tmfexplorer.com/ExpressValidator/api/ExpressValidator.html).
27+
> See the [API documentation](https://www.tmfexplorer.com/ExpressValidator/api/ExpressValidator.html) for reference.
28+
>
29+
> Learn more on [DeepWiki](https://deepwiki.com/kolan72/ExpressValidator/2-core-library-%28expressvalidator%29).
2830
2931

3032
## 🚀 Quick Start

samples/ExpressValidator.Extensions.DependencyInjection.Sample/ExpressValidator.Extensions.DependencyInjection.Sample.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
</PropertyGroup>

src/ExpressValidator.Extensions.DependencyInjection/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 0.3.12
2+
3+
- Support .NET 8.0 and FluentValidation 12.0.0.
4+
- Update Microsoft nuget packages.
5+
- Update ExpressValidator NuGet package to v0.12.0.
6+
- Update NUnit NuGet package to v4.4.0.
7+
- Retarget ExpressValidator.Extensions.DependencyInjection.Sample to .NET 8.0.
8+
9+
110
## 0.3.9
211

312
- Update ExpressValidator nuget package.

src/ExpressValidator.Extensions.DependencyInjection/ExpressValidator.Extensions.DependencyInjection.csproj

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netstandard2.0</TargetFramework>
4+
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
55
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
6-
<Version>0.3.9</Version>
6+
<Version>0.3.12</Version>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
88
<Authors>Andrey Kolesnichenko</Authors>
99
<PackageLicenseExpression>MIT</PackageLicenseExpression>
@@ -15,9 +15,17 @@
1515
<PackageTags>FluentValidation Validation DependencyInjection</PackageTags>
1616
<Description>The ExpressValidator.Extensions.DependencyInjection package extends ExpressValidator to provide integration with Microsoft Dependency Injection.</Description>
1717
<Copyright>Copyright 2024 Andrey Kolesnichenko</Copyright>
18-
<AssemblyVersion>0.3.9.0</AssemblyVersion>
18+
<AssemblyVersion>0.3.12.0</AssemblyVersion>
1919
</PropertyGroup>
2020

21+
<ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'">
22+
<PackageReference Include="FluentValidation" Version="11.11.0" />
23+
</ItemGroup>
24+
25+
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
26+
<PackageReference Include="FluentValidation" Version="12.0.0" />
27+
</ItemGroup>
28+
2129
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
2230
<NoWarn>1701;1702;1591</NoWarn>
2331
</PropertyGroup>
@@ -31,9 +39,9 @@
3139
</ItemGroup>
3240

3341
<ItemGroup>
34-
<PackageReference Include="ExpressValidator" Version="0.10.0" />
35-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.7" />
36-
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="9.0.7" />
42+
<PackageReference Include="ExpressValidator" Version="0.12.0" />
43+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.9" />
44+
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="9.0.9" />
3745
</ItemGroup>
3846

3947
<ItemGroup>

src/ExpressValidator.Extensions.DependencyInjection/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
- Additionally, the `IExpressValidatorBuilder<ObjToValidate, ValidationParametersOptions>` interface can be configured and registered to update the validator parameters when the `ValidationParametersOptions` change.
77
- Ability to dynamically update the validator parameters from options bound to the configuration section without restarting the application by configuring the `IExpressValidatorWithReload<ObjToValidate>` interface.
88

9+
## 📜 Documentation
10+
11+
Explore the API documentation and in-depth details on [DeepWiki](https://deepwiki.com/kolan72/ExpressValidator/3-dependency-injection-extension).
12+
913
## 🚀 Usage
1014

1115
```csharp

src/ExpressValidator/ExpressValidator.csproj

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
55
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
6-
<Version>0.10.0</Version>
6+
<Version>0.12.0</Version>
77
<GenerateDocumentationFile>true</GenerateDocumentationFile>
88
<Authors>Andrey Kolesnichenko</Authors>
99
<Description>ExpressValidator is a library that provides the ability to validate objects using the FluentValidation library, but without object inheritance from `AbstractValidator`.</Description>
@@ -15,7 +15,7 @@
1515
<PackageIcon>ExpressValidator.png</PackageIcon>
1616
<PackageReadmeFile>NuGet.md</PackageReadmeFile>
1717
<PackageIconUrl />
18-
<AssemblyVersion>0.10.0.0</AssemblyVersion>
18+
<AssemblyVersion>0.12.0.0</AssemblyVersion>
1919
<FileVersion>0.0.0.0</FileVersion>
2020
</PropertyGroup>
2121

@@ -33,10 +33,6 @@
3333
<None Remove="docs\ExpressValidator\**" />
3434
</ItemGroup>
3535

36-
<ItemGroup>
37-
<PackageReference Include="FluentValidation" Version="11.11.0" />
38-
</ItemGroup>
39-
4036
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
4137
<NoWarn>1701;1702;1591</NoWarn>
4238
</PropertyGroup>

0 commit comments

Comments
 (0)