Releases: 1024jp/GzipSwift
Releases · 1024jp/GzipSwift
Release list
7.0.0
Breaking Changes
- Update Swift version to 6.3.
- Compressing an empty
Datanow produces a valid empty gzip stream instead of returning an emptyData. - Decompressing an empty
Datanow throwsGzipErrorinstead of returning an emptyData.
New
- Support typed throw.
- Conform
GzipError,GzipError.Kind, andCompressionLeveltoHashable. - Conform
CompressionLeveltoComparable.
Changes
- Make
maxWindowBitsa module-level constant. - Show zlib error messages when
GzipErroris handled asError. - Improve the error message when decompression cannot make progress.
- Find zlib headers installed outside
/usr/includeon Linux, such as Linuxbrew. - Improve memory allocation when decompressing small inputs.
Fixes
- Fix accessing types with the
Gzipmodule prefix, such asGzip.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