v0.10.0
Technical
-
Checkout's Payment and Shipping pages have been reworked and are now completely integrated in Sunrise Framework:
- Some related templates have been changed, check shipping-form.hbs and payment-form.hbs.
- The associated view models are generated via injected factories.
- The injected factories are using Play Forms instead of own classes.
- Pages are correctly displaying form errors.
- Controllers are completely overridable and allow components to be registered.
- Controllers are following Form structure from Sunrise.
-
A cart instance in commercetools platform is now only created when is strictly necessary (i.e. when adding a product to the cart), so no unnecessary carts are generated.
-
Removed unused classes
ShippingRateBean
,ShopShippingRate
,ProductVariantBeanFactoryInjectless
,UserFeedback
,CountryFormFieldBean
,FormBean
and all its subclasses, plus someFormUtils
methods that are not needed anymore due to the change of Form handling. -
Renamed
Settings
beans toSettingsBean
to follow same pattern as other view models. -
All view models are following an uniformed structure and extending from
ModelBean
, which enables dynamic data to be passed. -
Renamed and moved Play Framework extended classes to their own package
com.commercetools.sunrise.play
, which affectsapplication.conf
:play.application.loader = "com.commercetools.sunrise.common.configuration.SunriseApplicationLoader" play.http.filters = "com.commercetools.sunrise.common.basicauth.BasicAuthHttpFilters" play.http.errorHandler = "com.commercetools.sunrise.http.SunriseDefaultHttpErrorHandler"
Are now
play.application.loader = "com.commercetools.sunrise.play.inject.SunriseGuiceApplicationLoader" play.http.filters = "com.commercetools.sunrise.play.http.SunriseHttpFilters" play.http.errorHandler = "com.commercetools.sunrise.play.http.SunriseDefaultHttpErrorHandler"
-
Added global CSRF Filter so that a CSRF token is always available and it forces to receive a CSRF token on certain requests without the need of explicitly declare it via
@AddCSRFToken
and@RequireCSRFToken
. -
Renamed
InfoData
toTitleDescriptionBean
to provide a better description of what it contains. -
Reworked Cart related bean classes and factories:
- Created
MiniCartBeanFactory
to generateMiniCartBean
CartLikeBean
andCartLikeBeanFactory
has been split toCartBean
/OrderBean
andCartBeanFactory
/OrderBeanFactory
respectively, whileCartLikeBeanFactory
has become an abstract class.MiniCartLineItemBean
andMiniCartLineItemBeanFactory
has been renamed toLineItemBean
andLineItemBeanFactory
respectively.LineItemBean
andLineItemBeanFactory
has been renamed toLineItemExtendedBean
andLineItemExtendedBeanFactory
respectively.LineItemsBean
has been renamed toLineItemListBean
and replacesMiniCartLineItemsBean
too.LineItemsBeanFactory
has been removed and the logic is now inCartLikeBeanFactory
.
- Created
-
Fixed memory issue that generated an increasing amount of
SphereClient
instances that could not be garbage collected. -
Fixed another issue with JavaMoney API, which might raise on certain situations rounding related exceptions.