Skip to content

Releases: commercetools/commercetools-sdk-java-v2

18.1.0-RC.1

23 May 06:48
52941ff
Compare
Choose a tag to compare
18.1.0-RC.1 Pre-release
Pre-release

New features

Split packages

Additionally to the package commercetools-sdk-java-api we also release packages split by domain. This allows package size optimization for deployment targets with size constrains.

What's Changed

  • Update changelog by @ct-sdks in #891
  • Update generated SDKs by @ct-sdks in #894
  • Update generated SDKs by @ct-sdks in #897
  • Update generated SDKs by @ct-sdks in #898
  • Update generated SDKs by @ct-sdks in #899
  • Package split by @jenschude in #900
  • Update generated SDKs by @ct-sdks in #901
  • Package split example by @jenschude in #902

Import changes

Removed Property(s)
  • ⚠️ removed property /^[a-z]{2}(-[A-Z]{2})?$/ from type SearchKeywords
  • ⚠️ removed property /^[a-z]{2}(-[A-Z]{2})?$/ from type LocalizedString
Added Property(s)
  • added property /^[a-zA-Z]{2,3}(?:-[a-zA-Z]{4})?(?:-(?:[a-zA-Z]{2}|\d{3}))?$/ to type SearchKeywords
  • added property /^[a-zA-Z]{2,3}(?:-[a-zA-Z]{4})?(?:-(?:[a-zA-Z]{2}|\d{3}))?$/ to type LocalizedString

Full Changelog: 18.0.0...18.1.0-RC.1

18.0.0

02 May 10:22
e3db8cc
Compare
Choose a tag to compare

New Features

Java 11

The SDK is built with Java 11 now. We will also take advantage of different language features in future releases.

New Request Policy Middleware

It's now possible to create request policies based on the requests context. E.g. different timeouts and retries for POST and GET requests:

ProjectApiRoot b = ApiRootBuilder.of()
       ...
        .withRequestPolicies(policies -> policies
                .withRequestMatching(apiHttpRequest -> apiHttpRequest.getMethod().equals(ApiHttpMethod.POST),
                    policyBuilder -> policyBuilder.withTimeout(Duration.ofSeconds(10)))
                .withRequestMatching(apiHttpRequest -> apiHttpRequest.getMethod().equals(ApiHttpMethod.GET),
                    policyBuilder -> policyBuilder.withTimeout(Duration.ofSeconds(1)))
                .withAllOtherRequests(policyBuilder -> policyBuilder.withTimeout(Duration.ofSeconds(60))))
        .build(projectKey);

What's Changed

  • fix Delivery discriminators by @jenschude in #866
  • Update generated SDKs by @ct-sdks in #867
  • Update changelog by @ct-sdks in #865
  • Update generated SDKs by @ct-sdks in #870
  • Update java to 11 by @lojzatran in #844
  • Update generated SDKs by @ct-sdks in #871
  • Update generated SDKs by @ct-sdks in #872
  • Update generated SDKs by @ct-sdks in #873
  • Update generated SDKs by @ct-sdks in #877
  • Update generated SDKs by @ct-sdks in #879
  • DEVX-588 adding query predicate builder documentation by @barbara79 in #874
  • Update generated SDKs by @ct-sdks in #883
  • Update generated SDKs by @ct-sdks in #885
  • Update generated SDKs by @ct-sdks in #886
  • Add request specific policies by @jenschude in #882
  • chore(deps): lock file maintenance by @renovate in #881
  • chore(deps): update actions/setup-java digest to c5195ef by @renovate in #875
  • chore(deps): update actions/create-github-app-token action to v2 by @renovate in #869
  • chore(deps): update github/codeql-action digest to 97a2bfd by @renovate in #868
  • fix(deps): update all dependencies by @renovate in #858
  • revert junit-jupiter by @jenschude in #887
  • Update generated SDKs by @ct-sdks in #888
  • remove dataprovider library by @jenschude in #889
  • update junit by @jenschude in #890

Full Changelog: 17.30.0...18.0.0

17.30.0

31 Mar 12:38
a2e4426
Compare
Choose a tag to compare

Important information

This will be the last release for Java 8. The next released version will be built with Java 11.

What's Changed

  • Update changelog by @ct-sdks in #851
  • fix(deps): update all dependencies by @renovate in #836
  • Delete .github/workflows/scorecard.yml by @jenschude in #852
  • update logback by @jenschude in #854
  • Update generated SDKs by @ct-sdks in #853
  • chore(deps): update actions/setup-java digest to 3a4f6e1 by @renovate in #831
  • chore(deps): update actions/create-github-app-token digest to af35eda by @renovate in #830
  • chore(deps): update plugin com.github.johnrengelman.shadow to v8 by @renovate in #800
  • add semgrep workflow by @jenschude in #855
  • Update generated SDKs by @ct-sdks in #856
  • Update generated SDKs by @ct-sdks in #859
  • Update generated SDKs by @ct-sdks in #860
  • Update generated SDKs by @ct-sdks in #861
  • Update generated SDKs by @ct-sdks in #862
  • chore(deps): update gradle/actions digest to 06832c7 by @renovate in #864
  • chore(deps): update actions/create-github-app-token digest to d72941d by @renovate in #863
  • chore(deps): update github/codeql-action digest to 9f45e74 by @renovate in #857

Api changes

Required Property(s)
  • changed property facets of type ProductProjectionPagedSearchResponse to be optional
Removed QueryParameter(s)
  • ⚠️ removed query parameter withTotal from method get /{projectKey}/product-projections/search

Full Changelog: 17.29.0...17.30.0

17.29.0

19 Mar 14:06
8031413
Compare
Choose a tag to compare

What's Changed

  • Update changelog by @ct-sdks in #846
  • Update generated SDKs by @ct-sdks in #847
  • fix exception with invalid date deserialization by @jenschude in #849
  • Update generated SDKs by @ct-sdks in #850

Api changes

Added QueryParameter(s)
  • added query parameter priceCustomerGroupAssignments to method get /{projectKey}/products
  • added query parameter priceCustomerGroupAssignments to method post /{projectKey}/products
  • added query parameter priceCustomerGroupAssignments to method get /{projectKey}/product-projections
  • added query parameter priceCustomerGroupAssignments to method get /{projectKey}/products/key={key}
  • added query parameter priceCustomerGroupAssignments to method post /{projectKey}/products/key={key}
  • added query parameter priceCustomerGroupAssignments to method delete /{projectKey}/products/key={key}
  • added query parameter priceCustomerGroupAssignments to method get /{projectKey}/products/{ID}
  • added query parameter priceCustomerGroupAssignments to method post /{projectKey}/products/{ID}
  • added query parameter priceCustomerGroupAssignments to method delete /{projectKey}/products/{ID}
  • added query parameter priceCustomerGroupAssignments to method get /{projectKey}/product-projections/search
  • added query parameter priceCustomerGroupAssignments to method get /{projectKey}/product-projections/key={key}
  • added query parameter priceCustomerGroupAssignments to method get /{projectKey}/product-projections/{ID}
  • added query parameter priceCustomerGroupAssignments to method get /{projectKey}/in-store/key={storeKey}/product-projections/key={key}
  • added query parameter priceCustomerGroupAssignments to method get /{projectKey}/in-store/key={storeKey}/product-projections/{ID}
Added Type(s)
  • added type CustomerGroupAssignment
  • added type CustomerGroupAssignmentDraft
  • added type CustomerAddCustomerGroupAssignmentAction
  • added type CustomerRemoveCustomerGroupAssignmentAction
  • added type CustomerSetCustomerGroupAssignmentsAction
  • added type CustomerGroupAssignmentAddedMessage
  • added type CustomerGroupAssignmentRemovedMessage
  • added type CustomerGroupAssignmentsSetMessage
  • added type CustomerGroupAssignmentAddedMessagePayload
  • added type CustomerGroupAssignmentRemovedMessagePayload
  • added type CustomerGroupAssignmentsSetMessagePayload
Added Property(s)
  • added property customerGroupAssignments to type Customer
  • added property customerGroupAssignments to type CustomerDraft
  • added property priceCustomerGroupAssignments to type ProductSearchProjectionParams

Full Changelog: 17.28.0...17.29.0

17.28.0

19 Mar 09:36
005708c
Compare
Choose a tag to compare

What's Changed

  • Update changelog by @ct-sdks in #833
  • Update generated SDKs by @ct-sdks in #834
  • [DEVX-495] make serviceregion configurable in examples by @jenschude in #835
  • [DEVX-322] QueryAll allows different field than id to be used by @jenschude in #837
  • Update generated SDKs by @ct-sdks in #838
  • Update generated SDKs by @ct-sdks in #839
  • Update generated SDKs by @ct-sdks in #840
  • Update generated SDKs by @ct-sdks in #841
  • Update generated SDKs by @ct-sdks in #842
  • Update generated SDKs by @ct-sdks in #843
  • feat: always deserialize to long for jsonutils by @lojzatran in #845

Full Changelog: 17.27.0...17.28.0

17.27.0

19 Feb 11:27
be19e13
Compare
Choose a tag to compare

What's Changed

  • Update changelog by @ct-sdks in #816
  • [DEVX-468] Capture errors in telemetry middleware by @jenschude in #817
  • chore(deps): update actions/create-github-app-token digest to 67e27a7 by @renovate in #815
  • Fix deserialization of time attributes/custom-fields by @jenschude in #818
  • fix(deps): update all dependencies by @renovate in #795
  • chore(deps): pin gradle/actions action to 94baf22 by @renovate in #812
  • chore(deps): update codecov/codecov-action action to v5 by @renovate in #796
  • Update generated SDKs by @ct-sdks in #819
  • Update generated SDKs by @ct-sdks in #820
  • Update generated SDKs by @ct-sdks in #821
  • Update generated SDKs by @ct-sdks in #822
  • Update generated SDKs by @ct-sdks in #823
  • Update changelog by @ct-sdks in #824
  • Update generated SDKs by @ct-sdks in #826
  • Update generated SDKs by @ct-sdks in #827
  • Update generated SDKs by @ct-sdks in #828
  • Update generated SDKs by @ct-sdks in #829
  • Update generated SDKs by @ct-sdks in #832
  • Bump io.netty:netty-handler from 4.1.117.Final to 4.1.118.Final by @dependabot in #825
  • chore(deps): update plugin io.github.gradle-nexus.publish-plugin to v2 by @renovate in #620

Full Changelog: 17.26.0...17.27.0

17.27.0-alpha.1-mcg

11 Feb 08:12
Compare
Choose a tag to compare
17.27.0-alpha.1-mcg Pre-release
Pre-release

What's Changed

  • Update changelog by @ct-sdks in #816
  • [DEVX-468] Capture errors in telemetry middleware by @jenschude in #817
  • chore(deps): update actions/create-github-app-token digest to 67e27a7 by @renovate in #815
  • Fix deserialization of time attributes/custom-fields by @jenschude in #818
  • fix(deps): update all dependencies by @renovate in #795
  • chore(deps): pin gradle/actions action to 94baf22 by @renovate in #812
  • chore(deps): update codecov/codecov-action action to v5 by @renovate in #796
  • Update generated SDKs by @ct-sdks in #819
  • Update generated SDKs by @ct-sdks in #820
  • Update generated SDKs by @ct-sdks in #821
  • Update generated SDKs by @ct-sdks in #822
  • Update generated SDKs by @ct-sdks in #823

Full Changelog: 17.26.0...17.27.0-alpha.1-mcg

17.26.0

03 Feb 10:01
7d60c43
Compare
Choose a tag to compare

What's Changed

  • Update changelog by @ct-sdks in #811
  • Update generated SDKs by @ct-sdks in #814

Full Changelog: 17.25.0...17.26.0

17.25.0

23 Jan 13:19
548f590
Compare
Choose a tag to compare

What's Changed

  • Update changelog by @ct-sdks in #806
  • Update generated SDKs by @ct-sdks in #808
  • Update generated SDKs by @ct-sdks in #809
  • fix NPE when server response has no body by @jenschude in #810

Full Changelog: 17.24.0...17.24.1

17.16.2

23 Jan 08:54
12e8fe2
Compare
Choose a tag to compare

What's Changed

  • Update Apache HTTP client dependency with version with fix to HTTP/2 protocol to version 5.4.1

Full Changelog: 17.16.1...17.16.2