Skip to content

Commit fbf37df

Browse files
authored
Upgrade dependencies (#603)
* upgrade dependencies * fix code warnings
1 parent cfac737 commit fbf37df

File tree

19 files changed

+74
-43
lines changed

19 files changed

+74
-43
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="GraphQL.MicrosoftDI" Version="7.4.1" />
10-
<PackageReference Include="System.Reactive" Version="5.0.0" />
9+
<PackageReference Include="GraphQL.MicrosoftDI" Version="7.6.1" />
10+
<PackageReference Include="System.Reactive" Version="6.0.0" />
1111
</ItemGroup>
1212

1313
<ItemGroup>

src/GraphQL.Client.Serializer.SystemTextJson/GraphQL.Client.Serializer.SystemTextJson.csproj

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

88
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard2.0'">
9-
<PackageReference Include="System.Text.Json" Version="4.7.0" />
9+
<PackageReference Include="System.Text.Json" Version="8.0.0" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ public override void Write(Utf8JsonWriter writer, object value, JsonSerializerOp
9595
DefaultBufferSize = options.DefaultBufferSize,
9696
DictionaryKeyPolicy = options.DictionaryKeyPolicy,
9797
Encoder = options.Encoder,
98+
#pragma warning disable SYSLIB0020
99+
// obsolete warning disabled to keep compatibility until deprecated field is removed
98100
IgnoreNullValues = options.IgnoreNullValues,
101+
#pragma warning restore SYSLIB0020
99102
IgnoreReadOnlyProperties = options.IgnoreReadOnlyProperties,
100103
MaxDepth = options.MaxDepth,
101104
PropertyNameCaseInsensitive = options.PropertyNameCaseInsensitive,

src/GraphQL.Client/GraphQL.Client.csproj

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

1616
<ItemGroup>
1717
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="All" />
18-
<PackageReference Include="System.Reactive" Version="5.0.0" />
18+
<PackageReference Include="System.Reactive" Version="6.0.0" />
1919
</ItemGroup>
2020

2121
<ItemGroup Condition=" '$(TargetFramework)' == 'net461'">

tests/GraphQL.Client.Serializer.Tests/BaseSerializerTest.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ public async Task CanDeserializeObjectWithBothConstructorAndProperties()
199199
var contentStream = new MemoryStream(System.Text.Encoding.UTF8.GetBytes(jsonString));
200200

201201
// Act
202-
var result = await ClientSerializer.DeserializeFromUtf8StreamAsync<WithConstructorAndProperties>(contentStream, default).ConfigureAwait(false);
202+
var result = await ClientSerializer
203+
.DeserializeFromUtf8StreamAsync<WithConstructorAndProperties>(contentStream, default);
203204

204205
// Assert
205206
result.Data.Property1.Should().Be("value1");

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</PropertyGroup>
88

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

1414
<ItemGroup>
@@ -19,4 +19,13 @@
1919
<ProjectReference Include="..\GraphQL.Client.Tests.Common\GraphQL.Client.Tests.Common.csproj" />
2020
</ItemGroup>
2121

22+
<ItemGroup>
23+
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.8.0" />
24+
<PackageReference Update="xunit" Version="2.6.2" />
25+
<PackageReference Update="xunit.runner.visualstudio" Version="2.5.4">
26+
<PrivateAssets>all</PrivateAssets>
27+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
28+
</PackageReference>
29+
</ItemGroup>
30+
2231
</Project>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
<ItemGroup>
99
<PackageReference Include="FluentAssertions.Reactive" Version="0.2.0" />
10-
<PackageReference Include="GraphQL" Version="7.4.1" />
11-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
10+
<PackageReference Include="GraphQL" Version="7.6.1" />
11+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
1212
</ItemGroup>
1313

1414
<ItemGroup>

tests/GraphQL.Integration.Tests/GraphQL.Integration.Tests.csproj

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</PropertyGroup>
88

99
<ItemGroup>
10-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="7.0.5" />
11-
<PackageReference Include="Microsoft.Reactive.Testing" Version="5.0.0" />
10+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="8.0.0" />
11+
<PackageReference Include="Microsoft.Reactive.Testing" Version="6.0.0" />
1212
</ItemGroup>
1313

1414
<ItemGroup>
@@ -18,4 +18,13 @@
1818
<ProjectReference Include="..\IntegrationTestServer\IntegrationTestServer.csproj" />
1919
</ItemGroup>
2020

21+
<ItemGroup>
22+
<PackageReference Update="Microsoft.NET.Test.Sdk" Version="17.8.0" />
23+
<PackageReference Update="xunit" Version="2.6.2" />
24+
<PackageReference Update="xunit.runner.visualstudio" Version="2.5.4">
25+
<PrivateAssets>all</PrivateAssets>
26+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
27+
</PackageReference>
28+
</ItemGroup>
29+
2130
</Project>

tests/GraphQL.Integration.Tests/QueryAndMutationTests/Base.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System.Net;
2-
using System.Net.Http.Headers;
32
using FluentAssertions;
43
using GraphQL.Client.Abstractions;
54
using GraphQL.Client.Http;
@@ -185,7 +184,7 @@ query Long {
185184
// unblock the query
186185
chatQuery.LongRunningQueryBlocker.Set();
187186
// check execution time
188-
request.Invoke().Result.Data.longRunning.Should().Be("finally returned");
187+
(await request.Invoke()).Data.longRunning.Should().Be("finally returned");
189188

190189
// reset stuff
191190
chatQuery.LongRunningQueryBlocker.Reset();

tests/GraphQL.Integration.Tests/UriExtensionTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,12 @@ public void HasWebSocketSchemaTest(string url, bool result)
3030
[InlineData("ftp://this-url-cannot-be-converted.net", false, null)]
3131
// AppSync example
3232
[InlineData("wss://example1234567890000.appsync-realtime-api.us-west-2.amazonaws.com/graphql?header=123456789ABCDEF&payload=e30=", true, "wss://example1234567890000.appsync-realtime-api.us-west-2.amazonaws.com/graphql?header=123456789ABCDEF&payload=e30=")]
33-
public void GetWebSocketUriTest(string input, bool canConvert, string result)
33+
public void GetWebSocketUriTest(string input, bool canConvert, string? result)
3434
{
3535
var inputUri = new Uri(input);
3636
if (canConvert)
3737
{
38-
inputUri.GetWebSocketUri().Should().BeEquivalentTo(new Uri(result));
38+
inputUri.GetWebSocketUri().Should().BeEquivalentTo(new Uri(result!));
3939
}
4040
else
4141
{

0 commit comments

Comments
 (0)