4.6.0
- Swift 4.2 is no longer supported. For reference, the following platforms and Swift versions are supported at the time of this release:
- Apple platforms: Swift 5.0+
- Linux: Swift 5.0+
- Windows: Swift 5.4+
- Minimum iOS deployment version (when installed via CocoaPods or Carthage) is now 9.0.
- Increased the lowest required version of BitByteData dependency to 2.0.
- Added the
TarContainer.create(from:force:)
function which allows to specify TAR format (#24).
Comment: By using this function it is now possible to create TAR containers of GNU, ustar (POSIX), and pre-POSIX formats (in addition to PAX). However, it is still highly recommended to use TarContainer.create(from:)
instead, unless you have a specific reason to choose a particular format and you understand the limitations of that format.
- The
TarContainer.create(from:)
function (alongside with the newly added function) no longer throws.- As a result
TarCreateError.utf8NonEncodable
is now never thrown and will be removed in the next major update (together with theTarCreateError
enum).
- As a result
- Handling of truncated TAR containers should now be more consistent.
- The check for truncated containers, that was introduced in 4.5.11, now throws the
TarError.tooSmallFileIsPassed
error instead ofTarError.wrongField
.
- The check for truncated containers, that was introduced in 4.5.11, now throws the
- Documentation has been updated:
- Adjusted documentation of the
TarEntryInfo
properties to account for other formats used in creation of a container. - Adjusted documentation of the
TarError.tooSmallFileIsPassed
error to mention its use in all situations when truncated data is encountered.
- Adjusted documentation of the
- swcomp changes:
- The
zip -i
command now prints entry comments only if they are not empty. - Slight grammatical improvements to the help messages.
- The