Skip to content

Commit

Permalink
feat: Support HC14 (#95)
Browse files Browse the repository at this point in the history
* Upgrade to HC 14.0.0 due to breaking changes (#93)

* 11.0.0-rc.1

---------

Co-authored-by: Andreas Forsberg <andreas.h.forsberg@gmail.com>
  • Loading branch information
benmccallum and mormegill authored Nov 25, 2024
1 parent bc36a55 commit 665dedf
Show file tree
Hide file tree
Showing 42 changed files with 926 additions and 397 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
dotnet-version: |
6.0.x
7.0.x
8.0.x
9.0.x
- name: Run tests
run: dotnet test src/ --collect:"XPlat Code Coverage"
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ We strive to match Hot Chocolate's supported .NET target frameworks, though this

| HotChocolate | FluentValidation | FairyBread | FairyBread docs |
| ------------ | ---------------- | ---------- | --------------- |
| v13.0.0 | v10 | v10 | right here |
| v14.0.0 | v10 | v11 | right here |
| v13.0.0 | v10 | v10 | [/v10/main](https://github.com/benmccallum/fairybread/tree/v10/main) branch |
| v12.4.0* | v10 | v9 | [/v9/main](https://github.com/benmccallum/fairybread/tree/v9/main) branch |
| v12.0.1 | v10 | v8 | [/v8/main](https://github.com/benmccallum/fairybread/tree/v8/main) branch |
| v11.0.9 | v10 | v7 | [/v7/main](https://github.com/benmccallum/fairybread/tree/v7/main) branch |
Expand Down
4 changes: 2 additions & 2 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<PackageIconUrl>https://github.com/benmccallum/fairybread/raw/master/logo-400x400.png</PackageIconUrl>
<PackageLicenseUrl>https://github.com/benmccallum/fairybread/blob/master/LICENSE</PackageLicenseUrl>

<Version>10.0.0</Version>
<Version>11.0.0-rc.1</Version>

<FluentValidationVersion>10.0.0</FluentValidationVersion>
<HotChocolateVersion>13.0.0</HotChocolateVersion>
<HotChocolateVersion>14.0.0</HotChocolateVersion>

<LibraryTargetFrameworks>net7.0; net6.0; netstandard2.0</LibraryTargetFrameworks>
<TestTargetFrameworks>net7.0; net6.0</TestTargetFrameworks>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@
Path: {
Name: read,
Parent: {
Length: -1,
IsRoot: true
},
Length: 1,
IsRoot: false
},
Locations: [
{
Line: 1,
Column: 9
}
],
Extensions: {
argumentName: foo,
attemptedValue: 1,
Expand All @@ -28,5 +34,6 @@
validatorName: CustomValidator
}
}
]
],
IsDataSet: true
}
3 changes: 1 addition & 2 deletions src/FairyBread.Tests/CustomizationTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace FairyBread.Tests;

[UsesVerify]
public class CustomizationTests
{
private const string Query = @"query { read(foo: { someInteger: 1, someString: ""hello"" }) }";
Expand Down Expand Up @@ -30,7 +29,7 @@ public async Task CustomValidationResultHandler_Works()
});

// Act
var result = await executor.ExecuteAsync(Query) as IQueryResult;
var result = await executor.ExecuteAsync(Query) as IOperationResult;

// Assert
Assert.NotNull(result);
Expand Down
12 changes: 6 additions & 6 deletions src/FairyBread.Tests/FairyBread.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
<PackageReference Include="HotChocolate.Execution" Version="$(HotChocolateVersion)" />
<PackageReference Include="HotChocolate.Types.CursorPagination" Version="$(HotChocolateVersion)" />
<PackageReference Include="HotChocolate.Data" Version="$(HotChocolateVersion)" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
<PackageReference Include="Moq" Version="4.18.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1"/>
<PackageReference Include="Moq" Version="4.20.71" />
<PackageReference Include="Shouldly" Version="4.1.0" />
<PackageReference Include="Verify.Xunit" Version="18.0.0-beta.32" />
<PackageReference Include="xunit" Version="2.4.2" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5" PrivateAssets="all" />
<PackageReference Include="coverlet.collector" Version="3.1.2" PrivateAssets="all" />
<PackageReference Include="Verify.Xunit" Version="27.0.1" />
<PackageReference Include="xunit" Version="2.9.2"/>
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" PrivateAssets="all" />
<PackageReference Include="coverlet.collector" Version="6.0.2" PrivateAssets="all" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@
Path: {
Name: someResolver,
Parent: {
Length: -1,
IsRoot: true
},
Length: 1,
IsRoot: false
},
Locations: [
{
Line: 1,
Column: 9
}
],
Extensions: {
argumentName: foo,
attemptedValue: -1,
Expand All @@ -28,5 +34,6 @@
validatorName: FooInputDtoValidator
}
}
]
],
IsDataSet: true
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
Data: {
read: SomeInteger: 1, SomeString: hello;
}
},
IsDataSet: true
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@
Path: {
Name: read,
Parent: {
Length: -1,
IsRoot: true
},
Length: 1,
IsRoot: false
},
Locations: [
{
Line: 3,
Column: 21
}
],
Extensions: {
argumentName: foo,
attemptedValue: -1,
Expand All @@ -29,7 +35,8 @@
validatorName: FooInputDtoValidator
}
}
]
],
IsDataSet: true
},
result2: {
Errors: [
Expand All @@ -39,11 +46,17 @@
Path: {
Name: read,
Parent: {
Length: -1,
IsRoot: true
},
Length: 1,
IsRoot: false
},
Locations: [
{
Line: 3,
Column: 21
}
],
Extensions: {
argumentName: foo,
attemptedValue: -1,
Expand All @@ -61,7 +74,8 @@
validatorName: FooInputDtoValidator
}
}
]
],
IsDataSet: true
},
result3: {
Errors: [
Expand All @@ -71,11 +85,17 @@
Path: {
Name: read,
Parent: {
Length: -1,
IsRoot: true
},
Length: 1,
IsRoot: false
},
Locations: [
{
Line: 3,
Column: 21
}
],
Extensions: {
argumentName: foo,
attemptedValue: -1,
Expand All @@ -93,6 +113,7 @@
validatorName: FooInputDtoValidator
}
}
]
],
IsDataSet: true
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
Data: {
write: SomeInteger: 1, SomeString: hello; EmailAddress: ben@lol.com
}
},
IsDataSet: true
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@
Path: {
Name: write,
Parent: {
Length: -1,
IsRoot: true
},
Length: 1,
IsRoot: false
},
Locations: [
{
Line: 1,
Column: 12
}
],
Extensions: {
argumentName: foo,
attemptedValue: -1,
Expand All @@ -28,5 +34,6 @@
validatorName: FooInputDtoValidator
}
}
]
],
IsDataSet: true
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@
Path: {
Name: write,
Parent: {
Length: -1,
IsRoot: true
},
Length: 1,
IsRoot: false
},
Locations: [
{
Line: 1,
Column: 12
}
],
Extensions: {
argumentName: bar,
attemptedValue: -1,
Expand All @@ -26,5 +32,6 @@
validatorName: BarInputDtoAsyncValidator
}
}
]
],
IsDataSet: true
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@
Path: {
Name: write,
Parent: {
Length: -1,
IsRoot: true
},
Length: 1,
IsRoot: false
},
Locations: [
{
Line: 1,
Column: 12
}
],
Extensions: {
argumentName: foo,
attemptedValue: -1,
Expand All @@ -34,11 +40,17 @@
Path: {
Name: write,
Parent: {
Length: -1,
IsRoot: true
},
Length: 1,
IsRoot: false
},
Locations: [
{
Line: 1,
Column: 12
}
],
Extensions: {
argumentName: foo,
attemptedValue: -1,
Expand All @@ -62,11 +74,17 @@
Path: {
Name: write,
Parent: {
Length: -1,
IsRoot: true
},
Length: 1,
IsRoot: false
},
Locations: [
{
Line: 1,
Column: 12
}
],
Extensions: {
argumentName: bar,
attemptedValue: -1,
Expand All @@ -82,5 +100,6 @@
validatorName: BarInputDtoAsyncValidator
}
}
]
],
IsDataSet: true
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
Data: {
readWithArrayArg: SomeInteger: 1, SomeString: hello
}
},
IsDataSet: true
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
Data: {
readWithArrayArg: SomeInteger: 1, SomeString: hello
}
},
IsDataSet: true
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
Data: {
readWithArrayArg: SomeInteger: 1, SomeString: hello, SomeInteger: 1, SomeString: hello
}
},
IsDataSet: true
}
Loading

0 comments on commit 665dedf

Please sign in to comment.