Skip to content

v1.10.0

Choose a tag to compare

@tarcang tarcang released this 12 Apr 21:14
· 268 commits to main since this release
061a9e3

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 because cross-fetch used XMLHttpRequest and was silently ignored. The new approach respects this redirect: 'manual' directive, potentially causing redirects on the client (given these optional parameters) to not be followed, which breaks flows including the SLAS authorizeCustomer method, which could fail with an opaqueredirect error.

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.