This is an automated email from the ASF dual-hosted git repository.

blankensteiner pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-dotpulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new c7332c0  Updated the changelog and NuGet packages
c7332c0 is described below

commit c7332c008ab2f038681d0c51a5d6b74db2c0521c
Author: Daniel Blankensteiner <[email protected]>
AuthorDate: Wed Dec 4 10:19:20 2024 +0100

    Updated the changelog and NuGet packages
---
 CHANGELOG.md                                                 | 6 ++++++
 benchmarks/Compression/Compression.csproj                    | 2 +-
 src/DotPulsar/Internal/Compression/BuiltinZlibCompression.cs | 4 ++--
 tests/DotPulsar.Tests/DotPulsar.Tests.csproj                 | 2 +-
 4 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index bc68fb3..a0360d2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/benchmarks/Compression/Compression.csproj 
b/benchmarks/Compression/Compression.csproj
index 75bd08e..7e53a1f 100644
--- a/benchmarks/Compression/Compression.csproj
+++ b/benchmarks/Compression/Compression.csproj
@@ -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>
diff --git a/src/DotPulsar/Internal/Compression/BuiltinZlibCompression.cs 
b/src/DotPulsar/Internal/Compression/BuiltinZlibCompression.cs
index d1b3cc6..a117618 100644
--- a/src/DotPulsar/Internal/Compression/BuiltinZlibCompression.cs
+++ b/src/DotPulsar/Internal/Compression/BuiltinZlibCompression.cs
@@ -57,7 +57,7 @@ public static class BuiltinZlibCompression
         {
             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());
@@ -68,7 +68,7 @@ public static class BuiltinZlibCompression
         {
             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;
diff --git a/tests/DotPulsar.Tests/DotPulsar.Tests.csproj 
b/tests/DotPulsar.Tests/DotPulsar.Tests.csproj
index da2e2d0..82327d9 100644
--- a/tests/DotPulsar.Tests/DotPulsar.Tests.csproj
+++ b/tests/DotPulsar.Tests/DotPulsar.Tests.csproj
@@ -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" />

Reply via email to