Skip to content

v1.0.0

Latest

Choose a tag to compare

@stremovskyy stremovskyy released this 23 Sep 20:33
2d04b9e

SwiftyDeflate v1.0.0 Release Notes

馃帀 We are thrilled to announce the first major release of SwiftyDeflate, your Swift-powered solution for efficient data compression and decompression!

Features:

  1. Efficient Compression & Decompression:

    • Utilize the power of zlib under the hood, ensuring you get the best-in-class data compression.
  2. Simple-to-use API:

    • Intuitive methods for data compression (deflateCompress) and decompression (deflateDecompress).
  3. Data Extension:

    • Use compression and decompression directly on Data objects with our Swift extension, making it even easier to integrate SwiftyDeflate into your projects.
  4. Customization:

    • Optional parameters for compression level and windowBits, giving you the flexibility to choose between compression speed and size.
  5. Robust Error Handling:

    • Comprehensive error enumeration (StreamError) helps you to handle and diagnose issues effectively.

Improvements:

  • Improved memory management for the internal compression streams.
  • Cleaner and more modular code structure.

Getting Started:

Integrating SwiftyDeflate is as simple as importing the package and calling the desired compression or decompression function on your Data objects.

import SwiftyDeflate

do {
    let compressedData = try originalData.deflateCompress()
    let decompressedData = try compressedData.deflateDecompress()
    // Use the compressed and decompressed data as needed
} catch {
    print("Error during operation: \(error.localizedDescription)")
}

Thank You:

A huge thanks to the community for the feedback, issues reported, and contributions made. We look forward to your continued support and feedback.


Happy compressing! 馃殌