Skip to content

Commit 37c547e

Browse files
authored
Bump GraphQL.NET to v7.4 (#547)
1 parent 9f7d593 commit 37c547e

File tree

12 files changed

+24
-27
lines changed

12 files changed

+24
-27
lines changed

src/GraphQL.Client.Abstractions.Websocket/GraphQLWebSocketMessageType.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,5 +134,4 @@ public static class GraphQLWebSocketMessageType
134134
/// </summary>
135135

136136
public const string GQL_NEXT = "next"; // Server -> Client
137-
138137
}

src/GraphQL.Client.LocalExecution/GraphQL.Client.LocalExecution.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="GraphQL.MicrosoftDI" Version="7.0.0" />
9+
<PackageReference Include="GraphQL.MicrosoftDI" Version="7.4.0" />
1010
<PackageReference Include="System.Reactive" Version="5.0.0" />
1111
</ItemGroup>
1212

src/GraphQL.Client.Serializer.Newtonsoft/GraphQL.Client.Serializer.Newtonsoft.csproj

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

33
<PropertyGroup>
44
<Description>A serializer implementation for GraphQL.Client using Newtonsoft.Json as underlying JSON library</Description>
55
<TargetFrameworks>netstandard2.0</TargetFrameworks>
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
9+
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

src/GraphQL.Client.Serializer.SystemTextJson/ConstantCaseJsonNamingPolicy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Text.Json;
1+
using System.Text.Json;
22
using GraphQL.Client.Abstractions.Utilities;
33

44
namespace GraphQL.Client.Serializer.SystemTextJson;

src/GraphQL.Client/GraphQLHttpClient.cs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Diagnostics;
2-
using System.Net.Http.Headers;
32
using GraphQL.Client.Abstractions;
43
using GraphQL.Client.Abstractions.Websocket;
54
using GraphQL.Client.Http.Websocket;
@@ -60,13 +59,13 @@ public GraphQLHttpClient(GraphQLHttpClientOptions options, IGraphQLWebsocketJson
6059
_disposeHttpClient = true;
6160
}
6261

63-
public GraphQLHttpClient(GraphQLHttpClientOptions options, IGraphQLWebsocketJsonSerializer serializer, HttpClient httpClient)
64-
{
65-
Options = options ?? throw new ArgumentNullException(nameof(options));
66-
JsonSerializer = serializer ?? throw new ArgumentNullException(nameof(serializer), "please configure the JSON serializer you want to use");
67-
HttpClient = httpClient ?? throw new ArgumentNullException(nameof(httpClient));
68-
_lazyHttpWebSocket = new Lazy<GraphQLHttpWebSocket>(CreateGraphQLHttpWebSocket);
69-
}
62+
public GraphQLHttpClient(GraphQLHttpClientOptions options, IGraphQLWebsocketJsonSerializer serializer, HttpClient httpClient)
63+
{
64+
Options = options ?? throw new ArgumentNullException(nameof(options));
65+
JsonSerializer = serializer ?? throw new ArgumentNullException(nameof(serializer), "please configure the JSON serializer you want to use");
66+
HttpClient = httpClient ?? throw new ArgumentNullException(nameof(httpClient));
67+
_lazyHttpWebSocket = new Lazy<GraphQLHttpWebSocket>(CreateGraphQLHttpWebSocket);
68+
}
7069

7170
#endregion
7271

src/GraphQL.Client/Websocket/GraphQLTransportWSProtocolHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
namespace GraphQL.Client.Http.Websocket;
1010

11-
internal class GraphQLTransportWSProtocolHandler: IWebsocketProtocolHandler
11+
internal class GraphQLTransportWSProtocolHandler : IWebsocketProtocolHandler
1212
{
1313
public string WebsocketProtocol => WebSocketProtocols.GRAPHQL_TRANSPORT_WS;
1414

tests/GraphQL.Client.Serializer.Tests/GraphQL.Client.Serializer.Tests.csproj

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

33
<Import Project="../tests.props" />
44

@@ -7,8 +7,8 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="GraphQL.NewtonsoftJson" Version="7.3.1" />
11-
<PackageReference Include="GraphQL.SystemTextJson" Version="7.3.1" />
10+
<PackageReference Include="GraphQL.NewtonsoftJson" Version="7.4.0" />
11+
<PackageReference Include="GraphQL.SystemTextJson" Version="7.4.0" />
1212
</ItemGroup>
1313

1414
<ItemGroup>

tests/GraphQL.Client.Tests.Common/GraphQL.Client.Tests.Common.csproj

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

33
<PropertyGroup>
44
<TargetFramework>net7.0</TargetFramework>
@@ -7,7 +7,7 @@
77

88
<ItemGroup>
99
<PackageReference Include="FluentAssertions.Reactive" Version="0.2.0" />
10-
<PackageReference Include="GraphQL" Version="7.3.1" />
10+
<PackageReference Include="GraphQL" Version="7.4.0" />
1111
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
1212
</ItemGroup>
1313

tests/GraphQL.Client.Tests.Common/StarWars/Types/CharacterInterface.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ public CharacterInterface()
99
{
1010
Name = "Character";
1111

12-
Field<NonNullGraphType<StringGraphType>>("id").Description("The id of the character.").Resolve(context => context.Source.Id);
13-
Field<StringGraphType>("name").Description("The name of the character.").Resolve(context => context.Source.Name);
12+
Field<NonNullGraphType<StringGraphType>>("id").Description("The id of the character.");
13+
Field<StringGraphType>("name").Description("The name of the character.");
1414

1515
Field<ListGraphType<CharacterInterface>>("friends");
1616
Field<ConnectionType<CharacterInterface, EdgeType<CharacterInterface>>>("friendsConnection");

tests/GraphQL.Integration.Tests/Helpers/WebHostHelpers.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using GraphQL.Client.Abstractions.Websocket;
22
using GraphQL.Client.Http;
3-
using GraphQL.Client.Http.Websocket;
43
using GraphQL.Client.Serializer.Newtonsoft;
54
using IntegrationTestServer;
65

0 commit comments

Comments
 (0)