From 8ff1e7448389fa4fbca965a3f7d5088d5321f2ff Mon Sep 17 00:00:00 2001 From: Seth Berman Date: Fri, 3 Mar 2023 10:35:15 -0500 Subject: [PATCH] Fixed Issue #40 --- CHANGELOG.md | 4 ++++ bin/es_compress.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b98b96c..37dff50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.0.10 + +- Fixed issue [#40](https://github.com/instantiations/es_compression/issues/40) + ## 2.0.9 - Updated [prebuilt libraries](lib/src/zstd/blobs) to [ZSTD v1.5.4](https://github.com/facebook/zstd/releases/tag/v1.5.4). diff --git a/bin/es_compress.dart b/bin/es_compress.dart index 9d0f8f9..e36d86d 100644 --- a/bin/es_compress.dart +++ b/bin/es_compress.dart @@ -54,7 +54,7 @@ Future main(List arguments) async { // Read/Interpret arguments final algorithm = argResults[algorithmArg] as String? ?? _guessAlgorithm(argResults); - final level = argResults[levelArg] as String; + final level = argResults[levelArg] as String?; final encode = _shouldEncode(argResults); final codec = _selectCodec(algorithm, level); final coder = (encode == true) ? codec.encoder : codec.decoder; diff --git a/pubspec.yaml b/pubspec.yaml index 30cc9e8..a8c852d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: es_compression description: Compression framework providing FFI implementations for Brotli, Lz4, Zstd (Zstandard) with ready-to-use prebuilt binaries for Win/Linux/Mac. -version: 2.0.9 +version: 2.0.10 homepage: https://www.instantiations.com issue_tracker: https://github.com/instantiations/es_compression/issues repository: https://github.com/instantiations/es_compression