diff --git a/CHANGELOG.md b/CHANGELOG.md index 1d28f5c..0fc2b66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased] +## [0.2.1] - 2022-10-19 ### Fixed * Handle case where HTTP response is not valid JSON. @@ -45,7 +45,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Initial version. -[Unreleased]: https://github.com/DeepLcom/deepl-java/compare/v0.2.0...HEAD +[0.2.1]: https://github.com/DeepLcom/deepl-java/compare/v0.2.0...v0.2.1 [0.2.0]: https://github.com/DeepLcom/deepl-java/compare/v0.1.3...v0.2.0 [0.1.3]: https://github.com/DeepLcom/deepl-java/compare/v0.1.2...v0.1.3 [0.1.2]: https://github.com/DeepLcom/deepl-java/compare/v0.1.1...v0.1.2 diff --git a/README.md b/README.md index 292107f..34b0719 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Java 1.8 or later. Add this dependency to your project's build file: ``` -implementation "com.deepl.api:deepl-java:0.2.0" +implementation "com.deepl.api:deepl-java:0.2.1" ``` ### Maven users @@ -41,7 +41,7 @@ Add this dependency to your project's POM: com.deepl.api deepl-java - 0.2.0 + 0.2.1 ``` diff --git a/deepl-java/build.gradle.kts b/deepl-java/build.gradle.kts index d32468d..a88273c 100644 --- a/deepl-java/build.gradle.kts +++ b/deepl-java/build.gradle.kts @@ -6,7 +6,7 @@ plugins { } group = "com.deepl.api" -version = "0.2.0" +version = "0.2.1" java { sourceCompatibility = JavaVersion.VERSION_1_8 diff --git a/deepl-java/src/main/java/com/deepl/api/Translator.java b/deepl-java/src/main/java/com/deepl/api/Translator.java index a698a81..dadb2ba 100644 --- a/deepl-java/src/main/java/com/deepl/api/Translator.java +++ b/deepl-java/src/main/java/com/deepl/api/Translator.java @@ -55,7 +55,7 @@ public Translator(String authKey, TranslatorOptions options) throws IllegalArgum headers.putAll(options.getHeaders()); } headers.putIfAbsent("Authorization", "DeepL-Auth-Key " + authKey); - headers.putIfAbsent("User-Agent", "deepl-java/0.2.0"); + headers.putIfAbsent("User-Agent", "deepl-java/0.2.1"); this.httpClientWrapper = new HttpClientWrapper(