diff --git a/.jazzy.yaml b/.jazzy.yaml
index 6c086b54..9e1d8f58 100644
--- a/.jazzy.yaml
+++ b/.jazzy.yaml
@@ -3,11 +3,11 @@ sourcekitten_sourcefile: docs.json
clean: false
author: Timofey Solomko
module: SWCompression
-module_version: 4.6.0-test
+module_version: 4.6.0
copyright: '© 2021 Timofey Solomko'
readme: README.md
github_url: https://github.com/tsolomko/SWCompression
-github_file_prefix: https://github.com/tsolomko/SWCompression/tree/4.6.0-test
+github_file_prefix: https://github.com/tsolomko/SWCompression/tree/4.6.0
theme: fullwidth
custom_categories:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d47da297..85bb1312 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,26 @@
# Changelog
+## 4.6.0
+
+- Swift 4.2 is no longer supported.
+- 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.
+ - It is now possible to create TAR containers of GNU, ustar (POSIX), and pre-POSIX formats.
+- The `TarContainer.create(from:)` function (alongside with the newly added function) no longer throws.
+ - The `TarCreateError.utf8NonEncodable` error is now never thrown.
+- Handling of truncated TAR containers should now be more consistent.
+ - Previously introduced check for truncated containers now throws the `TarError.tooSmallFileIsPassed` error instead
+ of `TarError.wrongField`.
+- 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.
+- swcomp changes:
+ - `zip -i` command now prints entry comments only if they are not empty.
+ - Slight grammatical improvements to the help messages of swcomp.
+
## 4.5.11
- Fixed a crash when processing a truncated TAR file.
diff --git a/SWCompression.podspec b/SWCompression.podspec
index 208138df..428d48fe 100644
--- a/SWCompression.podspec
+++ b/SWCompression.podspec
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "SWCompression"
- s.version = "4.6.0-test"
+ s.version = "4.6.0"
s.summary = "A framework with functions for working with compression, archives and containers."
s.description = "A framework with (de)compression algorithms and functions for processing various archives and containers."
diff --git a/SWCompression.xcodeproj/SWCompression.plist b/SWCompression.xcodeproj/SWCompression.plist
index 4ccd3413..f6f8a4ef 100644
--- a/SWCompression.xcodeproj/SWCompression.plist
+++ b/SWCompression.xcodeproj/SWCompression.plist
@@ -15,9 +15,9 @@
CFBundlePackageType
FMWK
CFBundleShortVersionString
- 4.6.0-test
+ 4.6.0
CFBundleVersion
- 79
+ 80
NSHumanReadableCopyright
Copyright © 2021 Timofey Solomko
diff --git a/SWCompression.xcodeproj/TestSWCompression.plist b/SWCompression.xcodeproj/TestSWCompression.plist
index b0f4d15c..95886263 100644
--- a/SWCompression.xcodeproj/TestSWCompression.plist
+++ b/SWCompression.xcodeproj/TestSWCompression.plist
@@ -15,8 +15,8 @@
CFBundlePackageType
BNDL
CFBundleShortVersionString
- 4.6.0-test
+ 4.6.0
CFBundleVersion
- 79
+ 80
diff --git a/SWCompression.xcodeproj/project.pbxproj b/SWCompression.xcodeproj/project.pbxproj
index e3db6efb..bb016374 100644
--- a/SWCompression.xcodeproj/project.pbxproj
+++ b/SWCompression.xcodeproj/project.pbxproj
@@ -1270,7 +1270,7 @@
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- CURRENT_PROJECT_VERSION = 79;
+ CURRENT_PROJECT_VERSION = 80;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
@@ -1351,7 +1351,7 @@
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- CURRENT_PROJECT_VERSION = 79;
+ CURRENT_PROJECT_VERSION = 80;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_STRICT_OBJC_MSGSEND = YES;
"FRAMEWORK_SEARCH_PATHS[sdk=appletvos*]" = (
@@ -1412,7 +1412,7 @@
APPLICATION_EXTENSION_API_ONLY = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 79;
+ DYLIB_CURRENT_VERSION = 80;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = SWCompression.xcodeproj/SWCompression.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
@@ -1439,7 +1439,7 @@
APPLICATION_EXTENSION_API_ONLY = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 79;
+ DYLIB_CURRENT_VERSION = 80;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = SWCompression.xcodeproj/SWCompression.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
diff --git a/Sources/swcomp/main.swift b/Sources/swcomp/main.swift
index 4a31d736..4b329857 100644
--- a/Sources/swcomp/main.swift
+++ b/Sources/swcomp/main.swift
@@ -7,7 +7,7 @@ import Foundation
import SWCompression
import SwiftCLI
-let cli = CLI(name: "swcomp", version: "4.6.0-test",
+let cli = CLI(name: "swcomp", version: "4.6.0",
description: """
swcomp - a small command-line client for SWCompression framework.
Serves as an example of SWCompression usage.