From 88e7b6252b2122248dcf89af03b1aecd0a907bcd Mon Sep 17 00:00:00 2001 From: Jonathan Wenger <jonathan.wenger@avalara.com> Date: Mon, 8 Jul 2024 14:58:48 -0700 Subject: [PATCH] Update to Newtonsoft.Json 13.0.1 to address security concerns --- src/Avalara.AvaTax.RestClient.csproj | 4 +- src/Avalara.AvaTax.RestClient.nuspec | 4 +- tests/Avalara.AvaTax.RestClient.Test.csproj | 174 ++++++++++---------- 3 files changed, 91 insertions(+), 91 deletions(-) diff --git a/src/Avalara.AvaTax.RestClient.csproj b/src/Avalara.AvaTax.RestClient.csproj index e2dac12..8a8c95c 100644 --- a/src/Avalara.AvaTax.RestClient.csproj +++ b/src/Avalara.AvaTax.RestClient.csproj @@ -101,11 +101,11 @@ </Compile> </ItemGroup> <ItemGroup Condition="'$(TargetFramework)' == 'netstandard1.6'"> - <PackageReference Include="Newtonsoft.Json" Version="12.0.1" /> + <PackageReference Include="Newtonsoft.Json" Version="13.0.1" /> <PackageReference Include="System.Net.Http" Version="4.3.2" /> </ItemGroup> <ItemGroup Condition="'$(TargetFramework)' == 'netstandard2.0'"> - <PackageReference Include="Newtonsoft.Json" Version="12.0.1" /> + <PackageReference Include="Newtonsoft.Json" Version="13.0.1" /> <PackageReference Include="System.Net.Http" Version="4.3.2" /> </ItemGroup> <ItemGroup> diff --git a/src/Avalara.AvaTax.RestClient.nuspec b/src/Avalara.AvaTax.RestClient.nuspec index 7cb0d81..a14cf5e 100644 --- a/src/Avalara.AvaTax.RestClient.nuspec +++ b/src/Avalara.AvaTax.RestClient.nuspec @@ -30,12 +30,12 @@ </group> <group targetFramework=".NETStandard1.6"> <dependency id="NETStandard.Library" version="1.6.1" /> - <dependency id="Newtonsoft.Json" version="12.0.1" /> + <dependency id="Newtonsoft.Json" version="13.0.1" /> <dependency id="System.Net.Http" version="4.3.2" /> </group> <group targetFramework=".NETStandard2.0"> <dependency id="NETStandard.Library" version="2.0.0" /> - <dependency id="Newtonsoft.Json" version="12.0.1" /> + <dependency id="Newtonsoft.Json" version="13.0.1" /> <dependency id="System.Net.Http" version="4.3.2" /> </group> </dependencies> diff --git a/tests/Avalara.AvaTax.RestClient.Test.csproj b/tests/Avalara.AvaTax.RestClient.Test.csproj index 6574ed6..1864a8a 100644 --- a/tests/Avalara.AvaTax.RestClient.Test.csproj +++ b/tests/Avalara.AvaTax.RestClient.Test.csproj @@ -1,88 +1,88 @@ -<Project Sdk="Microsoft.NET.Sdk"> - <PropertyGroup> - <TargetFrameworks>net451;net45;net461;net472;netcoreapp2.2;netcoreapp3.1</TargetFrameworks> - <GenerateAssemblyInfo>false</GenerateAssemblyInfo> - </PropertyGroup> - <PropertyGroup Condition="'$(TargetFramework)' == 'net451'"> - </PropertyGroup> - <PropertyGroup Condition="'$(TargetFramework)' == 'net45'"> - </PropertyGroup> - <PropertyGroup Condition="'$(TargetFramework)' == 'net461'"> - </PropertyGroup> - <PropertyGroup Condition="'$(TargetFramework)' == 'net472'"> - </PropertyGroup> - <PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.2'"> - </PropertyGroup> - <PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'"> - </PropertyGroup> - <ItemGroup> - <Compile Remove="**\*.*" /> - <None Remove="**" /> - </ItemGroup> - <ItemGroup Condition="'$(TargetFramework)' == 'net451'"> - <PackageReference Include="Newtonsoft.Json" Version="12.0.2" /> - <PackageReference Include="Nunit" Version="3.13.3" /> - <PackageReference Include="NUnit3TestAdapter" Version="4.2.1" /> - <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" /> - <Reference Include="System.Net.Http" /> - <Compile Include="net20\*.cs" /> - <ProjectReference Include="..\src\Avalara.AvaTax.RestClient.csproj"> - <SetTargetFramework>TargetFramework=net20</SetTargetFramework> - </ProjectReference> - </ItemGroup> - <ItemGroup Condition="'$(TargetFramework)' == 'net45'"> - <PackageReference Include="Newtonsoft.Json" Version="12.0.2" /> - <PackageReference Include="Nunit" Version="3.13.3" /> - <PackageReference Include="NUnit3TestAdapter" Version="4.2.1" /> - <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" /> - <Reference Include="System.Net.Http" /> - <Compile Include="net45\*.cs" /> - <ProjectReference Include="..\src\Avalara.AvaTax.RestClient.csproj"> - <SetTargetFramework>TargetFramework=net45</SetTargetFramework> - </ProjectReference> - </ItemGroup> - <ItemGroup Condition="'$(TargetFramework)' == 'net461'"> - <PackageReference Include="Newtonsoft.Json" Version="12.0.2" /> - <PackageReference Include="Nunit" Version="3.13.3" /> - <PackageReference Include="NUnit3TestAdapter" Version="4.2.1" /> - <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" /> - <Reference Include="System.Net.Http" /> - <Compile Include="net461\*.cs" /> - <ProjectReference Include="..\src\Avalara.AvaTax.RestClient.csproj"> - <SetTargetFramework>TargetFramework=net461</SetTargetFramework> - </ProjectReference> - </ItemGroup> - <ItemGroup Condition="'$(TargetFramework)' == 'net472'"> - <PackageReference Include="Newtonsoft.Json" Version="13.0.1" /> - <PackageReference Include="System.Net.Http" Version="4.3.2" /> - <PackageReference Include="Nunit" Version="3.13.3" /> - <PackageReference Include="NUnit3TestAdapter" Version="4.2.1" /> - <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" /> - <Compile Include="net472\*.cs" /> - <ProjectReference Include="..\src\Avalara.AvaTax.RestClient.csproj"> - <SetTargetFramework>TargetFramework=net472</SetTargetFramework> - </ProjectReference> - </ItemGroup> - <ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp2.2'"> - <PackageReference Include="Newtonsoft.Json" Version="12.0.1" /> - <PackageReference Include="NUnit" Version="3.12.0" /> - <PackageReference Include="NUnit3TestAdapter" Version="3.15.1" /> - <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" /> - <PackageReference Include="System.Net.Http" Version="4.3.2" /> - <Compile Include="netstandard\*.cs" /> - <ProjectReference Include="..\src\Avalara.AvaTax.RestClient.csproj"> - <SetTargetFramework>TargetFramework=netstandard1.6</SetTargetFramework> - </ProjectReference> - </ItemGroup> - <ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'"> - <PackageReference Include="Newtonsoft.Json" Version="12.0.1" /> - <PackageReference Include="Nunit" Version="3.13.3" /> - <PackageReference Include="NUnit3TestAdapter" Version="3.15.1" /> - <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" /> - <PackageReference Include="System.Net.Http" Version="4.3.2" /> - <Compile Include="netstandard20\*.cs" /> - <ProjectReference Include="..\src\Avalara.AvaTax.RestClient.csproj"> - <SetTargetFramework>TargetFramework=netstandard2.0</SetTargetFramework> - </ProjectReference> - </ItemGroup> +<Project Sdk="Microsoft.NET.Sdk"> + <PropertyGroup> + <TargetFrameworks>net451;net45;net461;net472;netcoreapp2.2;netcoreapp3.1</TargetFrameworks> + <GenerateAssemblyInfo>false</GenerateAssemblyInfo> + </PropertyGroup> + <PropertyGroup Condition="'$(TargetFramework)' == 'net451'"> + </PropertyGroup> + <PropertyGroup Condition="'$(TargetFramework)' == 'net45'"> + </PropertyGroup> + <PropertyGroup Condition="'$(TargetFramework)' == 'net461'"> + </PropertyGroup> + <PropertyGroup Condition="'$(TargetFramework)' == 'net472'"> + </PropertyGroup> + <PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.2'"> + </PropertyGroup> + <PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'"> + </PropertyGroup> + <ItemGroup> + <Compile Remove="**\*.*" /> + <None Remove="**" /> + </ItemGroup> + <ItemGroup Condition="'$(TargetFramework)' == 'net451'"> + <PackageReference Include="Newtonsoft.Json" Version="12.0.2" /> + <PackageReference Include="Nunit" Version="3.13.3" /> + <PackageReference Include="NUnit3TestAdapter" Version="4.2.1" /> + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" /> + <Reference Include="System.Net.Http" /> + <Compile Include="net20\*.cs" /> + <ProjectReference Include="..\src\Avalara.AvaTax.RestClient.csproj"> + <SetTargetFramework>TargetFramework=net20</SetTargetFramework> + </ProjectReference> + </ItemGroup> + <ItemGroup Condition="'$(TargetFramework)' == 'net45'"> + <PackageReference Include="Newtonsoft.Json" Version="12.0.2" /> + <PackageReference Include="Nunit" Version="3.13.3" /> + <PackageReference Include="NUnit3TestAdapter" Version="4.2.1" /> + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" /> + <Reference Include="System.Net.Http" /> + <Compile Include="net45\*.cs" /> + <ProjectReference Include="..\src\Avalara.AvaTax.RestClient.csproj"> + <SetTargetFramework>TargetFramework=net45</SetTargetFramework> + </ProjectReference> + </ItemGroup> + <ItemGroup Condition="'$(TargetFramework)' == 'net461'"> + <PackageReference Include="Newtonsoft.Json" Version="12.0.2" /> + <PackageReference Include="Nunit" Version="3.13.3" /> + <PackageReference Include="NUnit3TestAdapter" Version="4.2.1" /> + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" /> + <Reference Include="System.Net.Http" /> + <Compile Include="net461\*.cs" /> + <ProjectReference Include="..\src\Avalara.AvaTax.RestClient.csproj"> + <SetTargetFramework>TargetFramework=net461</SetTargetFramework> + </ProjectReference> + </ItemGroup> + <ItemGroup Condition="'$(TargetFramework)' == 'net472'"> + <PackageReference Include="Newtonsoft.Json" Version="13.0.1" /> + <PackageReference Include="System.Net.Http" Version="4.3.2" /> + <PackageReference Include="Nunit" Version="3.13.3" /> + <PackageReference Include="NUnit3TestAdapter" Version="4.2.1" /> + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" /> + <Compile Include="net472\*.cs" /> + <ProjectReference Include="..\src\Avalara.AvaTax.RestClient.csproj"> + <SetTargetFramework>TargetFramework=net472</SetTargetFramework> + </ProjectReference> + </ItemGroup> + <ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp2.2'"> + <PackageReference Include="Newtonsoft.Json" Version="13.0.1" /> + <PackageReference Include="NUnit" Version="3.12.0" /> + <PackageReference Include="NUnit3TestAdapter" Version="3.15.1" /> + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" /> + <PackageReference Include="System.Net.Http" Version="4.3.2" /> + <Compile Include="netstandard\*.cs" /> + <ProjectReference Include="..\src\Avalara.AvaTax.RestClient.csproj"> + <SetTargetFramework>TargetFramework=netstandard1.6</SetTargetFramework> + </ProjectReference> + </ItemGroup> + <ItemGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'"> + <PackageReference Include="Newtonsoft.Json" Version="13.0.1" /> + <PackageReference Include="Nunit" Version="3.13.3" /> + <PackageReference Include="NUnit3TestAdapter" Version="3.15.1" /> + <PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.2.0" /> + <PackageReference Include="System.Net.Http" Version="4.3.2" /> + <Compile Include="netstandard20\*.cs" /> + <ProjectReference Include="..\src\Avalara.AvaTax.RestClient.csproj"> + <SetTargetFramework>TargetFramework=netstandard2.0</SetTargetFramework> + </ProjectReference> + </ItemGroup> </Project> \ No newline at end of file