|
1 | 1 |
|
| 2 | +# 18.0.0 (2025-05-02) |
| 3 | + |
| 4 | +## New Features |
| 5 | + |
| 6 | +### Java 11 |
| 7 | + |
| 8 | +The SDK is built with Java 11 now. We will also take advantage of different language features in future releases. |
| 9 | + |
| 10 | +### New Request Policy Middleware |
| 11 | + |
| 12 | +It's now possible to create request policies based on the requests context. E.g. different timeouts and retries for POST and GET requests: |
| 13 | + |
| 14 | +```java |
| 15 | +ProjectApiRoot b = ApiRootBuilder.of() |
| 16 | + ... |
| 17 | + .withRequestPolicies(policies -> policies |
| 18 | + .withRequestMatching(apiHttpRequest -> apiHttpRequest.getMethod().equals(ApiHttpMethod.POST), |
| 19 | + policyBuilder -> policyBuilder.withTimeout(Duration.ofSeconds(10))) |
| 20 | + .withRequestMatching(apiHttpRequest -> apiHttpRequest.getMethod().equals(ApiHttpMethod.GET), |
| 21 | + policyBuilder -> policyBuilder.withTimeout(Duration.ofSeconds(1))) |
| 22 | + .withAllOtherRequests(policyBuilder -> policyBuilder.withTimeout(Duration.ofSeconds(60)))) |
| 23 | + .build(projectKey); |
| 24 | +``` |
| 25 | + |
| 26 | +## What's Changed |
| 27 | +* fix Delivery discriminators by @jenschude in https://github.com/commercetools/commercetools-sdk-java-v2/pull/866 |
| 28 | +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/867 |
| 29 | +* Update changelog by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/865 |
| 30 | +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/870 |
| 31 | +* Update java to 11 by @lojzatran in https://github.com/commercetools/commercetools-sdk-java-v2/pull/844 |
| 32 | +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/871 |
| 33 | +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/872 |
| 34 | +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/873 |
| 35 | +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/877 |
| 36 | +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/879 |
| 37 | +* DEVX-588 adding query predicate builder documentation by @barbara79 in https://github.com/commercetools/commercetools-sdk-java-v2/pull/874 |
| 38 | +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/883 |
| 39 | +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/885 |
| 40 | +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/886 |
| 41 | +* Add request specific policies by @jenschude in https://github.com/commercetools/commercetools-sdk-java-v2/pull/882 |
| 42 | +* chore(deps): lock file maintenance by @renovate in https://github.com/commercetools/commercetools-sdk-java-v2/pull/881 |
| 43 | +* chore(deps): update actions/setup-java digest to c5195ef by @renovate in https://github.com/commercetools/commercetools-sdk-java-v2/pull/875 |
| 44 | +* chore(deps): update actions/create-github-app-token action to v2 by @renovate in https://github.com/commercetools/commercetools-sdk-java-v2/pull/869 |
| 45 | +* chore(deps): update github/codeql-action digest to 97a2bfd by @renovate in https://github.com/commercetools/commercetools-sdk-java-v2/pull/868 |
| 46 | +* fix(deps): update all dependencies by @renovate in https://github.com/commercetools/commercetools-sdk-java-v2/pull/858 |
| 47 | +* revert junit-jupiter by @jenschude in https://github.com/commercetools/commercetools-sdk-java-v2/pull/887 |
| 48 | +* Update generated SDKs by @ct-sdks in https://github.com/commercetools/commercetools-sdk-java-v2/pull/888 |
| 49 | +* remove dataprovider library by @jenschude in https://github.com/commercetools/commercetools-sdk-java-v2/pull/889 |
| 50 | +* update junit by @jenschude in https://github.com/commercetools/commercetools-sdk-java-v2/pull/890 |
| 51 | + |
| 52 | +**Full Changelog**: https://github.com/commercetools/commercetools-sdk-java-v2/compare/17.30.0...18.0.0 |
| 53 | + |
2 | 54 | # 17.30.0 (2025-03-31)
|
3 | 55 |
|
4 | 56 | ## Important information
|
|
0 commit comments