Skip to content

Commit

Permalink
Updated the changelog and NuGet packages
Browse files Browse the repository at this point in the history
  • Loading branch information
blankensteiner committed Dec 4, 2024
1 parent a39573d commit c7332c0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

- Support for ZLIB compression via the [System.IO.Compression](https://learn.microsoft.com/en-us/dotnet/api/system.io.compression) API for .NET 6, 7, 8 and 9

## [3.5.0] - 2024-11-18

### Added
Expand Down
2 changes: 1 addition & 1 deletion benchmarks/Compression/Compression.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PackageReference Include="BenchmarkDotNet" Version="0.14.0" />
<PackageReference Include="DotNetZip" Version="1.16.0" />
<PackageReference Include="Google.Protobuf" Version="3.29.0" />
<PackageReference Include="Grpc.Tools" Version="2.67.0">
<PackageReference Include="Grpc.Tools" Version="2.68.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions src/DotPulsar/Internal/Compression/BuiltinZlibCompression.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private static Func<ReadOnlySequence<byte>, ReadOnlySequence<byte>> CreateCompre
{
using var dataStream = new MemoryStream(data.ToArray());
using var compressedStream = new MemoryStream();
using var compressor = (Stream) Activator.CreateInstance(zlibStreamType!, new object[] { compressedStream, compressionLevelOptimal! })!;
using var compressor = (Stream) Activator.CreateInstance(zlibStreamType!, [compressedStream, compressionLevelOptimal!])!;
dataStream.CopyTo(compressor);
compressor.Close();
return new ReadOnlySequence<byte>(compressedStream.ToArray());
Expand All @@ -68,7 +68,7 @@ private static Func<ReadOnlySequence<byte>, int, ReadOnlySequence<byte>> CreateD
{
using var dataStream = new MemoryStream(data.ToArray());
using var decompressedStream = new MemoryStream();
using var decompressor = (Stream) Activator.CreateInstance(zlibStreamType!, new object[] { dataStream, compressionModeDecompress! })!;
using var decompressor = (Stream) Activator.CreateInstance(zlibStreamType!, [dataStream, compressionModeDecompress!])!;
decompressor.CopyTo(decompressedStream);
decompressor.Close();
decompressedStream.Position = 0;
Expand Down
2 changes: 1 addition & 1 deletion tests/DotPulsar.Tests/DotPulsar.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<PackageReference Include="AutoFixture.Xunit2" Version="4.18.1" />
<PackageReference Include="coverlet.collector" Version="6.0.2" />
<PackageReference Include="DotNetZip" Version="1.16.0" />
<PackageReference Include="FluentAssertions" Version="6.12.2" />
<PackageReference Include="FluentAssertions" Version="7.0.0" />
<PackageReference Include="IronSnappy" Version="1.3.1" />
<PackageReference Include="K4os.Compression.LZ4" Version="1.3.8" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
Expand Down

0 comments on commit c7332c0

Please sign in to comment.