Skip to content

Commit 63754b7

Browse files
committed
docs: Increase version to 1.9.0
1 parent 29cfdc7 commit 63754b7

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

77

8+
## [1.9.0] - 2025-02-21
9+
### Added
10+
* Allow specifying the API version to use. This is mostly for users who have an
11+
API subscription that includes an API key for CAT tool usage, who need to use
12+
the v1 API.
13+
14+
815
## [1.8.1] - 2025-02-07
916
### Fixed
1017
* Added a constructor for `DeepLClient` that only takes an `authKey`, to fix the
@@ -143,6 +150,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
143150
Initial version.
144151

145152

153+
[1.9.0]: https://github.com/DeepLcom/deepl-java/compare/v1.8.1...v1.9.0
146154
[1.8.1]: https://github.com/DeepLcom/deepl-java/compare/v1.8.0...v1.8.1
147155
[1.8.0]: https://github.com/DeepLcom/deepl-java/compare/v1.7.0...v1.8.0
148156
[1.7.0]: https://github.com/DeepLcom/deepl-java/compare/v1.6.0...v1.7.0

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Java 1.8 or later.
3131
Add this dependency to your project's build file:
3232

3333
```
34-
implementation "com.deepl.api:deepl-java:1.8.1"
34+
implementation "com.deepl.api:deepl-java:1.9.0"
3535
```
3636

3737
### Maven users
@@ -42,7 +42,7 @@ Add this dependency to your project's POM:
4242
<dependency>
4343
<groupId>com.deepl.api</groupId>
4444
<artifactId>deepl-java</artifactId>
45-
<version>1.8.1</version>
45+
<version>1.9.0</version>
4646
</dependency>
4747
```
4848

@@ -634,6 +634,10 @@ The available options setters are:
634634
- `setServerUrl()`: base URL for DeepL API, may be overridden for testing
635635
purposes. By default, the correct DeepL API (Free or Pro) is automatically
636636
selected.
637+
- `setApiVersion()`: Version of the DeepL API, may be overridden to use e.g.
638+
the v1 API. By default, the most recent API version is automatically selected.
639+
Please note: The v1 API does not support all features of the API, e.g.
640+
document translation or rephrase.
637641

638642
#### Anonymous platform information
639643

deepl-java/build.gradle.kts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
group = "com.deepl.api"
9-
version = "1.8.1"
9+
version = "1.9.0"
1010

1111
val sharedManifest = the<JavaPluginConvention>().manifest {
1212
attributes (

deepl-java/src/main/java/com/deepl/api/Translator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public Translator(String authKey) throws IllegalArgumentException {
8888
*/
8989
private String constructUserAgentString(boolean sendPlatformInfo, AppInfo appInfo) {
9090
StringBuilder sb = new StringBuilder();
91-
sb.append("deepl-java/1.8.1");
91+
sb.append("deepl-java/1.9.0");
9292
if (sendPlatformInfo) {
9393
sb.append(" (");
9494
Properties props = System.getProperties();

0 commit comments

Comments
 (0)