Skip to content

Releases: 1024jp/GzipSwift

Release list

7.0.0

Choose a tag to compare

@1024jp 1024jp released this 05 May 13:54

Breaking Changes

  • Update Swift version to 6.3.
  • Compressing an empty Data now produces a valid empty gzip stream instead of returning an empty Data.
  • Decompressing an empty Data now throws GzipError instead of returning an empty Data.

New

  • Support typed throw.
  • Conform GzipError, GzipError.Kind, and CompressionLevel to Hashable.
  • Conform CompressionLevel to Comparable.

Changes

  • Make maxWindowBits a module-level constant.
  • Show zlib error messages when GzipError is handled as Error.
  • Improve the error message when decompression cannot make progress.
  • Find zlib headers installed outside /usr/include on Linux, such as Linuxbrew.
  • Improve memory allocation when decompressing small inputs.

Fixes

  • Fix accessing types with the Gzip module prefix, such as Gzip.CompressionLevel.
  • Avoid a crash when compressing or decompressing data larger than 4 GiB; compression now throws an error instead.

Full Changelog: 6.1.0...7.0.0

6.1.0

Choose a tag to compare

@1024jp 1024jp released this 05 May 11:26

Changes

  • Support Swift 6.0.

Full Changelog: 6.0.1...6.1.0