v1.10.0
v1.10.0
Enhancements
- Cookies are disabled by default.
- The cross-fetch dependency has been removed. Now commerce-sdk-isomorphic uses native fetch in browser and node-fetch library in node. This has potential impact for client implementations. Passing
fetchOptions: {redirect: 'manual'}as called on the server-side to prevent following of redirects prior to this upgrade had no effect on the client becausecross-fetchusedXMLHttpRequestand was silently ignored. The new approach respects thisredirect: 'manual'directive, potentially causing redirects on the client (given these optional parameters) to not be followed, which breaks flows including the SLASauthorizeCustomermethod, which could fail with anopaqueredirecterror.
API Added
Shopper Baskets
-
New Endpoints
Endpoint Name Description updateAsAgentBasket Marks a basket as an agent basket. addPriceAdjustmentToBasket Adds a custom manual price adjustment to the basket. removePriceAdjustmentFromBasket Removes a custom manual price adjustment from the basket. updatePriceAdjustmentInBasket Updates a custom manual price adjustment on the basket. updateAsStorefrontBasket Marks a basket as a storefront basket.