Skip to content

Commit

Permalink
Update System.Text.Json (addressing Dependabot alerts)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrzegorzBlok committed Oct 17, 2024
1 parent 6d4971f commit 2b4f468
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 16 deletions.
8 changes: 4 additions & 4 deletions build/FastRsync.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>FastRsyncNet</id>
<version>2.4.1</version>
<version>2.4.2</version>
<authors>Grzegorz Blok</authors>
<owners>Grzegorz Blok</owners>
<license type="expression">Apache-2.0</license>
Expand All @@ -12,17 +12,17 @@
<description>.NET library for file synchronization based on Rsync algorithm. Optimized for speed and data size to achieve best network performance.</description>
<dependencies>
<group targetFramework=".NETFramework4.6.2">
<dependency id="System.Text.Json" version="8.0.4" exclude="Build,Analyzers" />
<dependency id="System.Text.Json" version="8.0.5" exclude="Build,Analyzers" />
<dependency id="System.IO.Hashing" version="8.0.0" exclude="Build,Analyzers" />
</group>

<group targetFramework=".NETStandard2.0">
<dependency id="System.Text.Json" version="8.0.4" exclude="Build,Analyzers" />
<dependency id="System.Text.Json" version="8.0.5" exclude="Build,Analyzers" />
<dependency id="System.IO.Hashing" version="8.0.0" exclude="Build,Analyzers" />
</group>

<group targetFramework="net7.0">
<dependency id="System.Text.Json" version="8.0.4" exclude="Build,Analyzers" />
<dependency id="System.Text.Json" version="8.0.5" exclude="Build,Analyzers" />
<dependency id="System.IO.Hashing" version="8.0.0" exclude="Build,Analyzers" />
</group>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

<ItemGroup>
<PackageReference Include="NSubstitute" Version="5.1.0" />
<PackageReference Include="NUnit" Version="4.2.1" />
<PackageReference Include="NUnit" Version="4.2.2" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="System.Data.HashFunction.Core" Version="2.0.0" />
<PackageReference Include="System.Data.HashFunction.Interfaces" Version="2.0.0" />
Expand Down
2 changes: 1 addition & 1 deletion source/FastRsync.Benchmarks/FastRsync.Benchmarks.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.Storage.Blobs" Version="12.21.2" />
<PackageReference Include="Azure.Storage.Blobs" Version="12.22.2" />
<PackageReference Include="BenchmarkDotNet" Version="0.14.0" />
<PackageReference Include="System.IO.Hashing" Version="8.0.0" />
<PackageReference Include="System.Data.HashFunction.Core" Version="2.0.0" />
Expand Down
6 changes: 3 additions & 3 deletions source/FastRsync.Tests/FastRsync.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="NSubstitute" Version="5.1.0" />
<PackageReference Include="NUnit" Version="4.2.1" />
<PackageReference Include="NUnit" Version="4.2.2" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.0" />
<PackageReference Include="Azure.Storage.Blobs" Version="12.21.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="Azure.Storage.Blobs" Version="12.22.2" />
<PackageReference Include="System.IO.Hashing" Version="8.0.0" />
<PackageReference Include="System.Data.HashFunction.Core" Version="2.0.0" />
<PackageReference Include="System.Data.HashFunction.Interfaces" Version="2.0.0" />
Expand Down
3 changes: 2 additions & 1 deletion source/FastRsync.Tests/HashTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,11 @@ public async Task XxHash64StreamBackwardCompatibility(int dataLength)
new Random().NextBytes(data);
var streamdata = new MemoryStream(data);

const string azureBlobStorageConnectionString = "PUT AZURE BLOB STORAGE CONNECTION STRING HERE";
const string azureBlobStorageConnectionString = "UseDevelopmentStorage=true;";

var azureBlobServiceClient = new BlobServiceClient(azureBlobStorageConnectionString);
var azureBlobContainerClient = azureBlobServiceClient.GetBlobContainerClient("hashbenchmark");
await azureBlobContainerClient.CreateIfNotExistsAsync();
var azureBlob = azureBlobContainerClient.GetBlockBlobClient("XxHash64StreamBackwardCompatibility_" + dataLength);
await azureBlob.UploadAsync(streamdata);

Expand Down
8 changes: 4 additions & 4 deletions source/FastRsync/FastRsync.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
<PackageTags>sync rsync synchronization</PackageTags>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<AssemblyVersion>2.4.1</AssemblyVersion>
<FileVersion>2.4.1</FileVersion>
<Version>2.4.1</Version>
<AssemblyVersion>2.4.2</AssemblyVersion>
<FileVersion>2.4.2</FileVersion>
<Version>2.4.2</Version>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
Expand All @@ -29,7 +29,7 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="System.Text.Json" Version="8.0.4" />
<PackageReference Include="System.Text.Json" Version="8.0.5" />
<PackageReference Include="System.IO.Hashing" Version="8.0.0" />
</ItemGroup>
<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion source/Octodiff.Tests/Octodiff.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
<ProjectReference Include="..\Octodiff\Octodiff.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="NUnit" Version="4.2.1" />
<PackageReference Include="NUnit" Version="4.2.2" />
<PackageReference Include="NUnit3TestAdapter" Version="4.6.0" />
</ItemGroup>
<ItemGroup>
Expand Down

0 comments on commit 2b4f468

Please sign in to comment.