Skip to content

Commit

Permalink
Upgrade nuget packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Mutuduxf committed Aug 17, 2023
1 parent 7adc21d commit b764841
Show file tree
Hide file tree
Showing 18 changed files with 42 additions and 43 deletions.
6 changes: 3 additions & 3 deletions src/Zaabee.Brotli/Zaabee.Brotli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net6.0;net7.0;net8.0</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageVersion>2023.6.2</PackageVersion>
<Version>2023.6.2</Version>
<PackageVersion>2023.6.4</PackageVersion>
<Version>2023.6.4</Version>
<Authors>Mutuduxf</Authors>
<Company>Mutuduxf</Company>
<PackageTags>Zaabee;Brotli.NET;Brotli;Compression</PackageTags>
Expand All @@ -18,7 +18,7 @@

<ItemGroup>
<PackageReference Include="Brotli.NET" Version="2.1.1" />
<PackageReference Include="Zaabee.Compressor.Abstractions" Version="2023.10.2" />
<PackageReference Include="Zaabee.Compressor.Abstractions" Version="2023.10.3" />
</ItemGroup>

</Project>
3 changes: 2 additions & 1 deletion src/Zaabee.Compressor.Abstractions/GlobalUsings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
global using System.IO;
global using System.Linq;
global using System.Threading;
global using System.Threading.Tasks;
global using System.Threading.Tasks;
global using Zaabee.Extensions;
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public partial interface ICompressor
{
Task<MemoryStream> CompressAsync(Stream rawStream, CancellationToken cancellationToken = default);
Task<MemoryStream> DecompressAsync(Stream compressedStream, CancellationToken cancellationToken = default);
Task CompressAsync(Stream inputStream, Stream outputStream, CancellationToken cancellationToken = default);
Task<MemoryStream> DecompressAsync(Stream compressedStream, CancellationToken cancellationToken = default);
Task DecompressAsync(Stream inputStream, Stream outputStream, CancellationToken cancellationToken = default);
}
2 changes: 1 addition & 1 deletion src/Zaabee.Compressor.Abstractions/ICompressor.Stream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
public partial interface ICompressor
{
MemoryStream Compress(Stream rawStream);
MemoryStream Decompress(Stream compressedStream);
void Compress(Stream inputStream, Stream outputStream);
MemoryStream Decompress(Stream compressedStream);
void Decompress(Stream inputStream, Stream outputStream);
}
18 changes: 8 additions & 10 deletions src/Zaabee.Compressor.Abstractions/NullCompressor.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Zaabee.Extensions;

namespace Zaabee.Compressor.Abstractions;
namespace Zaabee.Compressor.Abstractions;

public class NullCompressor : ICompressor
{
Expand Down Expand Up @@ -70,6 +68,13 @@ public MemoryStream Compress(Stream rawStream)
return memoryStream;
}

public void Compress(Stream inputStream, Stream outputStream)
{
inputStream.CopyTo(outputStream);
inputStream.TrySeek(0, SeekOrigin.Begin);
outputStream.TrySeek(0, SeekOrigin.Begin);
}

public MemoryStream Decompress(Stream compressedStream)
{
var memoryStream = new MemoryStream();
Expand All @@ -79,13 +84,6 @@ public MemoryStream Decompress(Stream compressedStream)
return memoryStream;
}

public void Compress(Stream inputStream, Stream outputStream)
{
inputStream.CopyTo(outputStream);
inputStream.TrySeek(0, SeekOrigin.Begin);
outputStream.TrySeek(0, SeekOrigin.Begin);
}

public void Decompress(Stream inputStream, Stream outputStream)
{
inputStream.CopyTo(outputStream);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net6.0;net7.0;net8.0</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageVersion>2023.10.2</PackageVersion>
<Version>2023.10.2</Version>
<PackageVersion>2023.10.3</PackageVersion>
<Version>2023.10.3</Version>
<Authors>Mutuduxf</Authors>
<Company>Mutuduxf</Company>
<PackageProjectUrl>https://github.com/PicoHex/Zaabee.Compression</PackageProjectUrl>
Expand All @@ -16,7 +16,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Zaabee.Extensions" Version="2023.1.2" />
<PackageReference Include="Zaabee.Extensions" Version="2023.2.0" />
</ItemGroup>

</Project>
10 changes: 5 additions & 5 deletions src/Zaabee.LZ4/Zaabee.LZ4.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net6.0;net7.0;net8.0</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageVersion>2023.6.2</PackageVersion>
<Version>2023.6.2</Version>
<PackageVersion>2023.6.4</PackageVersion>
<Version>2023.6.4</Version>
<Authors>Mutuduxf</Authors>
<Company>Mutuduxf</Company>
<PackageTags>Zaabee;K4os.Compression.LZ4;LZ4;Compression</PackageTags>
Expand All @@ -17,9 +17,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="K4os.Compression.LZ4" Version="1.3.5" />
<PackageReference Include="K4os.Compression.LZ4.Streams" Version="1.3.5" />
<PackageReference Include="Zaabee.Compressor.Abstractions" Version="2023.10.2" />
<PackageReference Include="K4os.Compression.LZ4" Version="1.3.6" />
<PackageReference Include="K4os.Compression.LZ4.Streams" Version="1.3.6" />
<PackageReference Include="Zaabee.Compressor.Abstractions" Version="2023.10.3" />
</ItemGroup>

</Project>
6 changes: 3 additions & 3 deletions src/Zaabee.LZMA/Zaabee.LZMA.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net6.0;net7.0;net8.0</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageVersion>2023.6.2</PackageVersion>
<Version>2023.6.2</Version>
<PackageVersion>2023.6.4</PackageVersion>
<Version>2023.6.4</Version>
<Authors>Mutuduxf</Authors>
<Company>Mutuduxf</Company>
<PackageTags>Zaabee;LZMA-SDK;LZMA;Compression</PackageTags>
Expand All @@ -18,7 +18,7 @@

<ItemGroup>
<PackageReference Include="LZMA-SDK" Version="22.1.1" />
<PackageReference Include="Zaabee.Compressor.Abstractions" Version="2023.10.2" />
<PackageReference Include="Zaabee.Compressor.Abstractions" Version="2023.10.3" />
</ItemGroup>

</Project>
6 changes: 3 additions & 3 deletions src/Zaabee.SharpZipLib/Zaabee.SharpZipLib.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net6.0;net7.0;net8.0</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageVersion>2023.6.2</PackageVersion>
<Version>2023.6.2</Version>
<PackageVersion>2023.6.4</PackageVersion>
<Version>2023.6.4</Version>
<Authors>Mutuduxf</Authors>
<Company>Mutuduxf</Company>
<PackageTags>Zaabee;SharpZipLib;BZip2;GZip;Compression</PackageTags>
Expand All @@ -18,7 +18,7 @@

<ItemGroup>
<PackageReference Include="SharpZipLib" Version="1.4.2" />
<PackageReference Include="Zaabee.Compressor.Abstractions" Version="2023.10.2" />
<PackageReference Include="Zaabee.Compressor.Abstractions" Version="2023.10.3" />
</ItemGroup>

</Project>
6 changes: 3 additions & 3 deletions src/Zaabee.XZ/Zaabee.XZ.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net6.0;net7.0;net8.0</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageVersion>2023.6.4</PackageVersion>
<Version>2023.6.4</Version>
<PackageVersion>2023.6.6</PackageVersion>
<Version>2023.6.6</Version>
<Authors>Mutuduxf</Authors>
<Company>Mutuduxf</Company>
<PackageTags>Zaabee;XZ.NET-netstandard;XZ;Compression</PackageTags>
Expand All @@ -18,7 +18,7 @@

<ItemGroup>
<PackageReference Include="XZ.NET-netstandard" Version="2.0.0.2" />
<PackageReference Include="Zaabee.Compressor.Abstractions" Version="2023.10.2" />
<PackageReference Include="Zaabee.Compressor.Abstractions" Version="2023.10.3" />
</ItemGroup>

</Project>
6 changes: 3 additions & 3 deletions src/Zaabee.Zstd/Zaabee.Zstd.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net6.0;net7.0;net8.0</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageVersion>2023.6.2</PackageVersion>
<Version>2023.6.2</Version>
<PackageVersion>2023.6.4</PackageVersion>
<Version>2023.6.4</Version>
<Authors>Mutuduxf</Authors>
<Company>Mutuduxf</Company>
<PackageTags>Zaabee;ZstdNet;Zstd;Compression</PackageTags>
Expand All @@ -18,7 +18,7 @@

<ItemGroup>
<PackageReference Include="ZstdNet" Version="1.4.5" />
<PackageReference Include="Zaabee.Compressor.Abstractions" Version="2023.10.2" />
<PackageReference Include="Zaabee.Compressor.Abstractions" Version="2023.10.3" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
2 changes: 1 addition & 1 deletion tests/Zaabee.LZ4.UnitTest/Zaabee.LZ4.UnitTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
2 changes: 1 addition & 1 deletion tests/Zaabee.LZMA.UnitTest/Zaabee.LZMA.UnitTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
2 changes: 1 addition & 1 deletion tests/Zaabee.XZ.UnitTest/Zaabee.XZ.UnitTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down
2 changes: 1 addition & 1 deletion tests/Zaabee.Zstd.UnitTest/Zaabee.Zstd.UnitTest.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.1" />
<PackageReference Include="xunit" Version="2.5.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.0">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down

0 comments on commit b764841

Please sign in to comment.