Skip to content

v0.12.1

Compare
Choose a tag to compare
@lauraluiz lauraluiz released this 18 Oct 10:02
· 168 commits to master since this release

Configuration

  • Removed "Demo Info Modal" configuration option and related templates.
  • Removed DI Modules left in conf/application.conf from previous release, now only SunriseModule is required. You can check Sunrise Starter Project's default Module class and conf/application.conf as an example of how they should look like in your project.

Technical

  • Changed the way session is handled with Carts, Customers and Orders:
  • Provided HandlebarsContextFactory class to allow changing the Handlebars Context, for example to change the ValueResolvers or to add context data.
  • Created an ErrorFormatter interface with some default implementation to easily override the way Sunrise formats the errors, e.g. form errors.
  • Enabled some new Hooks: CartLoadedActionHook, CartCreatedHook, CustomerSignInResultLoadedHook, CustomerUpdatedHook and CartCreateCommandHook.
  • Renamed SunriseFrameworkCartController to SunriseFrameworkShoppingCartController and added a shopping-cart framework tag to it.
  • Renamed methods:
    • requiringExistingCart() -> requireExistingCart()
    • requiringNonEmptyCart() -> requireNonEmptyCart()
  • Removed method getOrCreateCart(), use directly findCart() or createCart() methods.
  • Renamed UserBean to UserInfoBean and provided a Factory class for its creation.
  • Added email field to UserInfoBean.
  • Updated to commercetools JVM SDK 1.5.0.