diff --git a/.jazzy.yaml b/.jazzy.yaml
index eed1904f..d018fc99 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.7.0-test
+module_version: 4.7.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.7.0-test
+github_file_prefix: https://github.com/tsolomko/SWCompression/tree/4.7.0
theme: fullwidth
custom_categories:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index fb937343..729620cb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,25 @@
# Changelog
+## 4.7.0
+
+- Added full-featured support for LZ4 compression and decompression by introducing 5 new functions inside `LZ4` enum.
+ - This enum conforms to the `DecompressionAlgorithm` and `CompressionAlgorithm` protocols.
+ - Added SWCompression/LZ4 subspec for CocoaPods users.
+ - Added support for LZ4 algorithm used in 7-Zip containers.
+- Added `DataError` enum which conforms to `Error` and `Equatable` protocols.
+- Swift 5.0 is no longer supported.
+- Fixed an issue where in some cases Deflate compression would produce incorrect output.
+- Optimized performance of Deflate compression.
+- swcomp changes:
+ - Increased the lowest required version of SwiftCLI dependency to 6.0.0.
+ - Added `lz4` command with many options to support all LZ4 features (both compression and decompression).
+ - Added `--use-format` option to the `tar` command which when used with the `-c` option allows to force usage of a
+ selected TAR format when creating a TAR container.
+ - The `-j` and `-z` options of the `tar` command can now be used together with the `-c` option to create compressed
+ TAR containers.
+ - Added `un-lz4`, `comp-lz4`, and `comp-lz4-bd` subcommands to the `benchmark` command.
+ - Benchmark commands for compression now report compression ratio.
+
## 4.6.1
- Fixed a crash in LZMA2 when trying to process an empty `Data`.
diff --git a/SWCompression.podspec b/SWCompression.podspec
index 840dcdc7..d728fd00 100644
--- a/SWCompression.podspec
+++ b/SWCompression.podspec
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = "SWCompression"
- s.version = "4.7.0-test"
+ s.version = "4.7.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 b70bca0d..4b8867c3 100644
--- a/SWCompression.xcodeproj/SWCompression.plist
+++ b/SWCompression.xcodeproj/SWCompression.plist
@@ -15,9 +15,9 @@
CFBundlePackageType
FMWK
CFBundleShortVersionString
- 4.7.0-test
+ 4.7.0
CFBundleVersion
- 82
+ 83
NSHumanReadableCopyright
Copyright © 2021 Timofey Solomko
diff --git a/SWCompression.xcodeproj/TestSWCompression.plist b/SWCompression.xcodeproj/TestSWCompression.plist
index 1a673fb3..67d7864b 100644
--- a/SWCompression.xcodeproj/TestSWCompression.plist
+++ b/SWCompression.xcodeproj/TestSWCompression.plist
@@ -15,8 +15,8 @@
CFBundlePackageType
BNDL
CFBundleShortVersionString
- 4.7.0-test
+ 4.7.0
CFBundleVersion
- 82
+ 83
diff --git a/SWCompression.xcodeproj/project.pbxproj b/SWCompression.xcodeproj/project.pbxproj
index e02a4fc3..3018f062 100644
--- a/SWCompression.xcodeproj/project.pbxproj
+++ b/SWCompression.xcodeproj/project.pbxproj
@@ -1492,7 +1492,7 @@
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- CURRENT_PROJECT_VERSION = 82;
+ CURRENT_PROJECT_VERSION = 83;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
@@ -1573,7 +1573,7 @@
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
- CURRENT_PROJECT_VERSION = 82;
+ CURRENT_PROJECT_VERSION = 83;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_STRICT_OBJC_MSGSEND = YES;
"FRAMEWORK_SEARCH_PATHS[sdk=appletvos*]" = (
@@ -1634,7 +1634,7 @@
APPLICATION_EXTENSION_API_ONLY = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 82;
+ DYLIB_CURRENT_VERSION = 83;
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = SWCompression.xcodeproj/SWCompression.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
@@ -1661,7 +1661,7 @@
APPLICATION_EXTENSION_API_ONLY = YES;
DEFINES_MODULE = YES;
DYLIB_COMPATIBILITY_VERSION = 1;
- DYLIB_CURRENT_VERSION = 82;
+ DYLIB_CURRENT_VERSION = 83;
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 11d48e9a..47fbda17 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.7.0-test",
+let cli = CLI(name: "swcomp", version: "4.7.0",
description: """
swcomp - a small command-line client for SWCompression framework.
Serves as an example of SWCompression usage.