Skip to content

Commit 723dae4

Browse files
authored
Bump GraphQL.NET (#726)
1 parent 9c52324 commit 723dae4

File tree

10 files changed

+27
-27
lines changed

10 files changed

+27
-27
lines changed

samples/Samples.Server/Samples.Server.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
<ItemGroup>
1212
<PackageReference Include="Serilog.AspNetCore" Version="4.1.0" />
1313
<PackageReference Include="Serilog.Sinks.Console" Version="4.0.1" />
14-
<PackageReference Include="GraphQL.MicrosoftDI" Version="5.0.0-preview-457" />
15-
<PackageReference Include="GraphQL.SystemReactive" Version="5.0.0-preview-457" />
16-
<PackageReference Include="GraphQL.SystemTextJson" Version="5.0.0-preview-457" />
14+
<PackageReference Include="GraphQL.MicrosoftDI" Version="5.0.0-preview-473" />
15+
<PackageReference Include="GraphQL.SystemReactive" Version="5.0.0-preview-473" />
16+
<PackageReference Include="GraphQL.SystemTextJson" Version="5.0.0-preview-473" />
1717
</ItemGroup>
1818

1919
<ItemGroup>

samples/Samples.Server/Startup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void ConfigureServices(IServiceCollection services)
4343

4444
services.AddGraphQL(builder => builder
4545
.AddServer(true)
46-
.AddDocumentExecuter<SubscriptionDocumentExecuter>()
46+
.AddSubscriptionExecutionStrategy()
4747
.AddSchema<ChatSchema>()
4848
.ConfigureExecutionOptions(options =>
4949
{

src/All/All.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
<ProjectReference Include="..\Ui.Playground\Ui.Playground.csproj" />
2020
<ProjectReference Include="..\Ui.Voyager\Ui.Voyager.csproj" />
2121

22-
<PackageReference Include="GraphQL.MemoryCache" Version="5.0.0-preview-457" />
23-
<PackageReference Include="GraphQL.MicrosoftDI" Version="5.0.0-preview-457" />
24-
<PackageReference Include="GraphQL.SystemReactive" Version="5.0.0-preview-457" />
22+
<PackageReference Include="GraphQL.MemoryCache" Version="5.0.0-preview-473" />
23+
<PackageReference Include="GraphQL.MicrosoftDI" Version="5.0.0-preview-473" />
24+
<PackageReference Include="GraphQL.SystemReactive" Version="5.0.0-preview-473" />
2525
</ItemGroup>
2626

2727
</Project>

src/Benchmarks/Benchmarks.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
<PropertyGroup>
44
<TargetFrameworks>net6;net5;netcoreapp3.1</TargetFrameworks>
@@ -12,8 +12,8 @@
1212
<PackageReference Include="BenchmarkDotNet" Version="0.13.1" />
1313
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.19" Condition="'$(TargetFramework)' == 'netcoreapp3.1'" />
1414
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="5.0.2" Condition="'$(TargetFramework)' == 'net5'" />
15-
<PackageReference Include="GraphQL.SystemTextJson" Version="5.0.0-preview-457" />
16-
<PackageReference Include="GraphQL.NewtonsoftJson" Version="5.0.0-preview-457" />
15+
<PackageReference Include="GraphQL.SystemTextJson" Version="5.0.0-preview-473" />
16+
<PackageReference Include="GraphQL.NewtonsoftJson" Version="5.0.0-preview-473" />
1717
</ItemGroup>
1818

1919
<ItemGroup>

src/Core/Core.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>netstandard2.0</TargetFramework>
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="GraphQL.DataLoader" Version="5.0.0-preview-457" />
11+
<PackageReference Include="GraphQL.DataLoader" Version="5.0.0-preview-473" />
1212
<PackageReference Include="Microsoft.Extensions.Options" Version="3.1.0" />
1313
</ItemGroup>
1414

src/Transports.Subscriptions.Abstractions/Transports.Subscriptions.Abstractions.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.SystemReactive" Version="5.0.0-preview-457" />
9+
<PackageReference Include="GraphQL.SystemReactive" Version="5.0.0-preview-473" />
1010
<PackageReference Include="Microsoft.Extensions.Logging" Version="3.1.0" />
1111
<PackageReference Include="System.Threading.Tasks.Dataflow" Version="5.0.0" />
1212
</ItemGroup>

tests/Transports.AspNetCore.Tests/Transports.AspNetCore.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
<Import Project="../../Tests.props" />
33

44
<PropertyGroup>
@@ -8,8 +8,8 @@
88
<ItemGroup>
99
<FrameworkReference Include="Microsoft.AspNetCore.App" />
1010
<PackageReference Include="Castle.Core" Version="4.4.1" />
11-
<PackageReference Include="GraphQL.SystemTextJson" Version="5.0.0-preview-457" />
12-
<PackageReference Include="GraphQL.NewtonsoftJson" Version="5.0.0-preview-457" />
11+
<PackageReference Include="GraphQL.SystemTextJson" Version="5.0.0-preview-473" />
12+
<PackageReference Include="GraphQL.NewtonsoftJson" Version="5.0.0-preview-473" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

tests/Transports.Subscriptions.Abstractions.Tests/Transports.Subscriptions.Abstractions.Tests.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
<Import Project="../../Tests.props" />
33

44
<PropertyGroup>
@@ -12,7 +12,7 @@
1212
<ItemGroup>
1313
<ProjectReference Include="..\..\samples\Samples.Schemas.Chat\Samples.Schemas.Chat.csproj" />
1414
<ProjectReference Include="..\..\src\Transports.Subscriptions.Abstractions\Transports.Subscriptions.Abstractions.csproj" />
15-
<PackageReference Include="GraphQL.NewtonsoftJson" Version="5.0.0-preview-457" />
15+
<PackageReference Include="GraphQL.NewtonsoftJson" Version="5.0.0-preview-473" />
1616
</ItemGroup>
1717

1818
</Project>

tests/Transports.Subscriptions.WebSockets.Tests/Transports.Subscriptions.WebSockets.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<FrameworkReference Include="Microsoft.AspNetCore.App" />
1010
<ProjectReference Include="..\..\src\Transports.Subscriptions.WebSockets\Transports.Subscriptions.WebSockets.csproj" />
1111
<PackageReference Include="Castle.Core" Version="4.4.1" />
12-
<PackageReference Include="GraphQL.MicrosoftDI" Version="5.0.0-preview-457" />
13-
<PackageReference Include="GraphQL.NewtonsoftJson" Version="5.0.0-preview-457" />
12+
<PackageReference Include="GraphQL.MicrosoftDI" Version="5.0.0-preview-473" />
13+
<PackageReference Include="GraphQL.NewtonsoftJson" Version="5.0.0-preview-473" />
1414
</ItemGroup>
1515

1616
</Project>

tests/Transports.Subscriptions.WebSockets.Tests/WebSocketWriterPipelineTests.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public WebSocketWriterPipelineFacts()
4040
}
4141
}
4242
},
43-
95
43+
83
4444
},
4545
new object[]
4646
{
@@ -56,7 +56,7 @@ public WebSocketWriterPipelineFacts()
5656
}, 10)
5757
}
5858
},
59-
664
59+
652
6060
},
6161
new object[]
6262
{
@@ -73,7 +73,7 @@ public WebSocketWriterPipelineFacts()
7373
}
7474
},
7575
// About 1 megabyte
76-
1_008_034
76+
1_008_022
7777
},
7878
new object[]
7979
{
@@ -90,7 +90,7 @@ public WebSocketWriterPipelineFacts()
9090
}
9191
},
9292
// About 10 megabytes
93-
10_080_034
93+
10_080_022
9494
},
9595
new object[]
9696
{
@@ -107,7 +107,7 @@ public WebSocketWriterPipelineFacts()
107107
}
108108
},
109109
// About 100 megabytes
110-
100_800_034
110+
100_800_022
111111
},
112112
};
113113

@@ -134,7 +134,7 @@ public async Task should_post_single_message()
134134

135135
string resultingJson = Encoding.UTF8.GetString(_testWebSocket.Messages.First().ToArray());
136136
Assert.Equal(
137-
"{\"type\":null,\"payload\":{\"data\":{\"content\":\"Hello world\",\"sentAt\":\"2018-12-12T10:00:00+00:00\"}}}",
137+
"{\"payload\":{\"data\":{\"content\":\"Hello world\",\"sentAt\":\"2018-12-12T10:00:00+00:00\"}}}",
138138
resultingJson);
139139
}
140140

@@ -161,7 +161,7 @@ public async Task should_post_array_of_10_messages()
161161

162162
string resultingJson = Encoding.UTF8.GetString(_testWebSocket.Messages.First().ToArray());
163163
Assert.Equal(
164-
"{\"type\":null,\"payload\":" +
164+
"{\"payload\":" +
165165
"{\"data\":[" +
166166
"{\"content\":\"Hello world\",\"sentAt\":\"2018-12-12T10:00:00+00:00\"}," +
167167
"{\"content\":\"Hello world\",\"sentAt\":\"2018-12-12T10:00:00+00:00\"}," +

0 commit comments

Comments
 (0)