This repository was archived by the owner on Mar 5, 2021. It is now read-only.
Releases: commercetools/sphere-play-sdk
Releases · commercetools/sphere-play-sdk
Release list
0.36
API
- The Java client can now handle i18n for the name, description and the meta
attributes ofCategoryandProductinstances
Play SDK
- Default locale can be set in
application.conf'ssphere.defaultLocale
0.34
General
New error handling: Errors returned by the Sphere Projects Web Service are now properly parsed and reported.
See the API docs for reference.
Play SDK
API
Sphere.products,Sphere.ordersetc. are now methods instead of public final fields to allow for easier mocking.- New error handling: the return type of all async methods that modify backend state changed
fromPromise<T>toPromise<SphereResult<T>>.
Java client
API
- Added a method
SphereClient.shutdownthat releases all resources acquired by the SphereClient.
This closes all HTTP connections and shuts down all internal thread pools. - New error handling: the return type of all async methods that modify backend state changed
fromListenableFuture<T>toListenableFuture<SphereResult<T>>.
MISC
Image.getSizefalls back to the original image if requested size is not available.- Updated Async HTTP client to 1.7.16
- Updated Joda time to 2.2
- Updated Joda convert to 1.3.1
- Updated Jackson to 1.9.10
- Removed dependency on Apache commons codec
0.33
General
API
- All service methods that used to accept the
(id, version)pair now accept aVersionedId.
Play SDK
API
- Renamed
CurrentCustomer.updateCustomertoCurrentCustomer.update. - Renamed
CurrentCart.unsetShippingAddress[Async]toclearShippingAddress[Async]. - Merged the class
SphereClientintoSphere. - All service methods that modify backend state now have two versions: synchronous and asynchronous. This is to
make callingservice.update(...)less error prone: previously such call would do nothing unless you said
service.update(...).execute().
Java client
API
- Changed the type of variant id from
Stringtoint. - Annotated all data object methods that are guaranteed to never return null with
@Nonnull. - Added a
getIdAndVersionmethod to all versioned data objects. This method returns aVersionedId, which is an id plus version.
Removed thegetVersionmethod, but keptgetIdfor convenience as it is often needed. - Removed
SphereClientandAppClientthat don't have a good use case yet. - Renamed
ShopClienttoSphereClient. - Added
LineItemContainer.customerEmail. - Added
Customer.getAddressById - Order now has a
getCurrencymethod. - Renamed
OrderService.orderCarttocreateOrder. - Removed methods to get individual parts of Customer's name. Use
Customer.getName. - Removed
ScaledImage.getScaleRatio, added 'Image.isSizeAvailable(size)'. - Renamed
[Comment|Review]Update.setAuthorNametosetAuthor. - Renamed
[Comment|Review].getAuthorNametogetAuthor. - Renamed
CustomerUpdate.unsetDefault[Shipping|Billing]AddresstoclearDefault[Shipping|Billing]Address.
MISC
- Improved Javadoc
0.32
General
MISC
- Removed test dependency on Scalamock.
Play SDK
API
- Config key
sphere.api.moderenamed tosphere.products.mode. Valid values are"published","staged". - Config keys
sphere.cartCurrency,sphere.cartInventoryModeare nowsphere.cart.currency,sphere.cart.inventoryMode. - Renamed
checkoutSummaryIdtocheckoutSnapshotId. - `resetPassword1 is now a method of CustomerService.
Java client
API
CustomerService.signup()andsignupWithCart()now accept aCustomerNameobject.
FIX
- Customer update actions now match the backend by referring to addresses by ids.
MISC
- Removed dependency on Scala standard library.)`