Skip to content

Commit

Permalink
Prepare release v3.5.0 (#345)
Browse files Browse the repository at this point in the history
* Prepare changelog for release v3.5.0
  • Loading branch information
carstendietrich authored Nov 8, 2021
1 parent e872ed2 commit 8b1c578
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
15 changes: 6 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog
## v3.5.0 [upcoming]
## v3.6.0 [upcoming]

## v3.5.0
**general**
* Switch to MIT License

**cart**
* Add convenience function to clone carts
* DefaultCartBehaviour now returns real cart clones to prevent data races on cart fields
Expand Down Expand Up @@ -30,14 +35,6 @@
* **Breaking**: Remove the fields `getAdditionalData, additionalDataKeys, additionalDeliveryInfoKeys` from the `Commerce_CartDeliveryInfo` type
* **Breaking**: `Commerce_Cart_UpdateDeliveryShippingOptions` mutation responded with slice of `Commerce_Cart_DeliveryAddressForm` which was incorrect as we don't process any form data within the mutation. It responds now rightly only with `processed` state.
* **Breaking**: Upgrade github.com/go-playground/form to v4, all types are fully compatible, but import paths have to be changed
* **Breaking**: Do not allow cart mutations via GET anymore. All Add, Update, Delete and Clean actions are affected:
* `/cart/add/:marketplaceCode`
* `/cart/update/:id`
* `/cart/delete/all`
* `/cart/clean`
* `/cart/delivery/:deliveryCode`
* `/cart/delete/delivery/:deliveryCode`
* `/cart/delete/:id`

**checkout**
* Introducing Flamingo events on final states of the place order process
Expand Down
12 changes: 6 additions & 6 deletions cart/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,25 +162,25 @@ func (r *routes) Routes(registry *web.RouterRegistry) {
registry.HandleAny("cart.view", r.viewController.ViewAction)
registry.MustRoute("/cart", "cart.view")

registry.HandlePost("cart.add", r.viewController.AddAndViewAction)
registry.HandleAny("cart.add", r.viewController.AddAndViewAction)
registry.MustRoute("/cart/add/:marketplaceCode", `cart.add(marketplaceCode,variantMarketplaceCode?="",qty?="1",deliveryCode?="")`)

registry.HandlePost("cart.updateQty", r.viewController.UpdateQtyAndViewAction)
registry.HandleAny("cart.updateQty", r.viewController.UpdateQtyAndViewAction)
registry.MustRoute("/cart/update/:id", `cart.updateQty(id,qty?="1",deliveryCode?="")`)

registry.HandlePost("cart.deleteAllItems", r.viewController.DeleteAllAndViewAction)
registry.HandleAny("cart.deleteAllItems", r.viewController.DeleteAllAndViewAction)
registry.MustRoute("/cart/delete/all", "cart.deleteAllItems")

registry.HandlePost("cart.clean", r.viewController.CleanAndViewAction)
registry.HandleAny("cart.clean", r.viewController.CleanAndViewAction)
registry.MustRoute("/cart/clean", "cart.clean")

registry.HandleDelete("cart.clean", r.viewController.CleanAndViewAction)
registry.MustRoute("/cart/delivery/:deliveryCode", "cart.clean")

registry.HandlePost("cart.cleanDelivery", r.viewController.CleanDeliveryAndViewAction)
registry.HandleAny("cart.cleanDelivery", r.viewController.CleanDeliveryAndViewAction)
registry.MustRoute("/cart/delete/delivery/:deliveryCode", `cart.cleanDelivery(deliveryCode?="")`)

registry.HandlePost("cart.deleteItem", r.viewController.DeleteAndViewAction)
registry.HandleAny("cart.deleteItem", r.viewController.DeleteAndViewAction)
registry.MustRoute("/cart/delete/:id", `cart.deleteItem(id,deliveryCode?="")`)
r.apiRoutes(registry)
}
Expand Down

0 comments on commit 8b1c578

Please sign in to comment.