Releases: commercetools/commercetools-sdk-java-v2
Releases · commercetools/commercetools-sdk-java-v2
6.2.1
- fix package for ProjectApiRoot
Package has been changed from com.commercetools..defaultconfig to com.commercetools..client, e.g.:com.commercetools.api.client.ProjectApiRoot
instead ofcom.commercetools.api.defaultconfig.ProjectApiRoot
6.2.0
- adds ProjectApiRoot class to be used as project scoped api root.
ProjectApiRoot root = ApiRootBuilder.of() .build("projectKey");
- adds possibilities to add multiple query parameters at once
6.1.0
- adds
equals
andhashCode
to resource method classes
6.0.0
New Features
- a new module with support for the Apache HTTP Async client has been added
- API Client and Auth client provide hints of possible misconfigurations
- Update of the Models to the latest API changes
Breaking change
- All model builders now check if all required fields have been set. An additional method buildUnchecked has been added.
5.2.0
5.1.0
Examples:
- added examples and test for Maven configured projects
OkHttp:
- specify more clearly a version range of the OkHttp client
- imports of the OkHttp client projects using the FQDN to avoid clashes in the classpath
Api:
- fixed return type for customer email token confirmation
- image upload improved to detect the content type if not given for the request
- type fix for the image upload query parameter
variant
- type fixes for deliveryAdress custom field update actions
- correct naming for StagedOrderUpdateActions
Import:
- querying import sinks allow multiply sort parameters
- added ImportOperation total
- import sink resourceType is nullable
ML:
- image upload improved to detect the content type if not given for the request
5.0.0
As some return types have been changed we released a new major version.
- Added a
BaseAddress
model to be able to useAddress
&AddressDraft
models when writing to the API. This should be mostly backwards compatible, but return types of Drafts and DraftBuilders methods for addresses have been changed. DeprecatableTrait
has been split toDeprecatable200Trait
andDeprecatable201Trait
- fixed InventoryEntry supplyChannel type to
ChannelReference
4.1.0
- Fixes issue with HTTP/2 connections which result in shutdown of the HTTP client connection pool by forcing HTTP/1.1 connections
- Introduces a compatibility layer for the JVM SDK
This allows to use SDKv1 commands with the new SDK. Use the CompatClient for mapping the results to the v2 SDK models. Use the CompatSphereClient to use the v2 SDK client as a SphereClient replacement - Query parameters use now primitive types as parameters
This allows autoboxing/unboxing and type conversions (e.g. int to long) to simplify the usage of query parameters - Fixed return types for Me endpoint methods
- Improved Tracing of the RetryMiddleware
4.0.1
4.0.0
Introduced ClientBuilder for easier creation of an ApiHttpClient instance
Deprecated ClientFactory
DateSerializer is now configurable to return Attribute dates as String
Support for form parameters in product search requests
Attribute with Numbers are now deserialized to a long if no decimal places are given
added Audit log SDK