refactor: Upgrade all nuget packages

Also use the built-in snake case naming feature in System.Text.Json
pull/231/head
Robert Dailey 1 year ago
parent a937de74cf
commit a4534bffcf

@ -13,27 +13,26 @@
<PackageVersion Include="Flurl" Version="3.0.7" />
<PackageVersion Include="Flurl.Http" Version="4.0.0-pre5" />
<PackageVersion Include="GitVersion.MsBuild" Version="5.12.0" />
<PackageVersion Include="JetBrains.Annotations" Version="2023.2.0" />
<PackageVersion Include="JorgeSerrano.Json.JsonSnakeCaseNamingPolicy" Version="0.9.0" />
<PackageVersion Include="JetBrains.Annotations" Version="2023.3.0" />
<PackageVersion Include="MudBlazor" Version="6.11.0" />
<PackageVersion Include="ReactiveUI.Blazor" Version="19.5.1" />
<PackageVersion Include="Serilog" Version="3.0.1" />
<PackageVersion Include="Serilog.AspNetCore" Version="7.0.0" />
<PackageVersion Include="Serilog.Expressions" Version="3.4.1" />
<PackageVersion Include="Serilog.Sinks.Console" Version="4.1.0" />
<PackageVersion Include="Serilog" Version="3.1.1" />
<PackageVersion Include="Serilog.AspNetCore" Version="8.0.0" />
<PackageVersion Include="Serilog.Expressions" Version="4.0.0" />
<PackageVersion Include="Serilog.Sinks.Console" Version="5.0.0" />
<PackageVersion Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageVersion Include="Spectre.Console" Version="0.47.0" />
<PackageVersion Include="Spectre.Console.Analyzer" Version="0.47.0" />
<PackageVersion Include="Spectre.Console.Cli" Version="0.47.0" />
<PackageVersion Include="SuperLinq" Version="5.2.0" />
<PackageVersion Include="SuperLinq" Version="5.3.0" />
<PackageVersion Include="System.Data.HashFunction.FNV" Version="2.0.0" />
<PackageVersion Include="System.Private.Uri" Version="4.3.2" />
<PackageVersion Include="System.Reactive" Version="6.0.0" />
<PackageVersion Include="System.Text.Json" Version="7.0.3" />
<PackageVersion Include="System.Text.Json" Version="8.0.0" />
<PackageVersion Include="SystemTextJson.JsonDiffPatch" Version="1.3.1" />
<PackageVersion Include="TestableIO.System.IO.Abstractions" Version="19.2.69" />
<PackageVersion Include="TestableIO.System.IO.Abstractions" Version="19.2.87" />
<PackageVersion Include="TestableIO.System.IO.Abstractions.Extensions" Version="2.0.5" />
<PackageVersion Include="TestableIO.System.IO.Abstractions.Wrappers" Version="19.2.69" />
<PackageVersion Include="TestableIO.System.IO.Abstractions.Wrappers" Version="19.2.87" />
<PackageVersion Include="YamlDotNet" Version="13.7.1" />
</ItemGroup>
<!-- Unit Test Packages -->
@ -47,16 +46,16 @@
<PackageVersion Include="FluentAssertions" Version="6.12.0" />
<PackageVersion Include="FluentAssertions.Analyzers" Version="0.26.0" />
<PackageVersion Include="GitHubActionsTestLogger" Version="2.3.3" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageVersion Include="NSubstitute" Version="5.1.0" />
<PackageVersion Include="NSubstitute.Analyzers.CSharp" Version="1.0.16" />
<PackageVersion Include="NUnit" Version="3.13.3" />
<PackageVersion Include="NUnit" Version="3.14.0" />
<PackageVersion Include="NUnit.Analyzers" Version="3.9.0" />
<PackageVersion Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageVersion Include="Serilog.Sinks.Observable" Version="2.0.2" />
<PackageVersion Include="Serilog.Sinks.NUnit" Version="1.0.3" />
<PackageVersion Include="Spectre.Console.Testing" Version="0.47.0" />
<PackageVersion Include="TestableIO.System.IO.Abstractions.TestingHelpers" Version="19.2.69" />
<PackageVersion Include="TestableIO.System.IO.Abstractions.TestingHelpers" Version="19.2.87" />
</ItemGroup>
<!-- Following found during vulerabilities Code Scan -->
<ItemGroup>

@ -1,7 +1,6 @@
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Text.Json.Serialization.Metadata;
using JorgeSerrano.Json;
namespace Recyclarr.Json;
@ -28,7 +27,7 @@ public static class GlobalJsonSerializerSettings
/// </summary>
public static JsonSerializerOptions Recyclarr { get; } = new()
{
PropertyNamingPolicy = new JsonSnakeCaseNamingPolicy(),
PropertyNamingPolicy = JsonNamingPolicy.SnakeCaseLower,
WriteIndented = true
};
@ -37,7 +36,7 @@ public static class GlobalJsonSerializerSettings
/// </summary>
public static JsonSerializerOptions Guide { get; } = new()
{
PropertyNamingPolicy = new JsonSnakeCaseNamingPolicy(),
PropertyNamingPolicy = JsonNamingPolicy.SnakeCaseLower,
NumberHandling = JsonNumberHandling.AllowReadingFromString
};
}

@ -2,7 +2,6 @@
<ItemGroup>
<PackageReference Include="Autofac" />
<PackageReference Include="JetBrains.Annotations" />
<PackageReference Include="JorgeSerrano.Json.JsonSnakeCaseNamingPolicy" />
<PackageReference Include="Serilog" />
<PackageReference Include="System.Text.Json" />
<PackageReference Include="SystemTextJson.JsonDiffPatch" />

Loading…
Cancel
Save