Skip to content

Releases: adam-fowler/compress-nio

v1.4.0

18 Nov 17:01
459a803
Compare
Choose a tag to compare

Minor release changes

  • Add enums for compression, memory level and window bits. #11

v1.3.0

25 Oct 09:42
9dedf2c
Compare
Choose a tag to compare

Minor release changes

  • Expose ZlibCompressor and ZlibDecompressor types and add ByteBuffer functions that use them. It is preferable to use these concrete types over the NIOCompressor/Decompressor existential.

v1.2.1

06 May 13:54
a52d3ac
Compare
Choose a tag to compare

Minor release changes

  • Add Sendable conformance to CompressionAlgorithm and ZlibConfiguration

Patch release changes

  • Split compress and decompress code into two files

v1.2.0

10 Apr 11:47
Compare
Choose a tag to compare

Minor release changes

  • Add new error CompressNIOError.inputBufferOverflow for when decompression requires more data from the input buffer.
  • Ignore CompressNIOError.inputBufferOverflow errors when decompressing a stream of data

v1.1.1

22 Mar 10:08
3c6d9c3
Compare
Choose a tag to compare

Patch release changes

  • Remove platform requirements added in v1.1.0

v1.1.0

14 Feb 12:06
Compare
Choose a tag to compare

Minor release changes

  • Add versions of compressStream and decompressStream that take an async closure

v1.0.0

12 Jul 09:49
0223872
Compare
Choose a tag to compare

No changes from v0.6.0.

v0.6.0

14 Jun 14:32
0223872
Compare
Choose a tag to compare

Breaking changes

  • Renamed compression algorithms. They now follow the naming convention zlib uses:
    • gzip: deflate data with gzip header
    • zlib: deflate data with zlib header
    • deflate. raw deflate data without header
    • Previously zlib was called deflate because that was the required format when deflate was indicated in an HTTP header.
      WARNING: If you previously used deflate to generate HTTP deflate format compression, you should change this to zlib.
  • Algorithm configuration is required when creating the algorithm instead of when you create the decompressor or compressor.
  • Added ZlibConfiguration for zlib compression types with windowSize, compressionLevel, memoryLevel and strategy values.

Below is an example of compressing a ByteBuffer with the above changes

let compressed = try buffer.compress(with: .gzip(configuration: .init(windowSize: 15, compressionLevel: 9)))

v0.5.0

17 May 14:21
56fe707
Compare
Choose a tag to compare

Breaking changes

  • CompressionAlgorithm.compressor is a function which takes a window bits size instead of a computed property.
  • CompressionAlgorithm.decompressor is a function which takes a window bits size instead of a computed property.
  • Added maxSize parameter to ByteBuffer.decompress(with:allocator:) and ByteBuffer.decompressStream(with:allocator:)

Minor release changes

  • Add CompressionAlgorithm.rawDeflate for raw deflate data without a header.

v0.4.1

24 May 12:06
8739c5c
Compare
Choose a tag to compare
  • Fix Swift 5.4 warnings