Releases: SalesforceCommerceCloud/commerce-sdk-isomorphic
Releases · SalesforceCommerceCloud/commerce-sdk-isomorphic
v1.10.3
v1.10.3
Bug fixes
- Fix
expandquery parameter forshopper-products - Remove
retrieveCredQualityUserInfoendpoint fromshopper-loginas this functionality was removed from SLAS
v1.10.2
v1.10.2
Documentation
- Descriptions for certain
shopper-loginandshopper-contextoperations have been updated on the generated documentation site
v1.10.1
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.
v1.9.0
v1.8.0
v1.8.0
API Changes
Shopper Login
-
New Endpoints
Endpoint Name Description getSessionBridgeAccessToken Get a shopper JWT access token for a registered customer using session bridge getTrustedAgentAuthorizationToken Obtains a new agent on behalf authorization token for a registered customer getTrustedAgentAccessToken Get a shopper JWT access token for a registered customer using a trusted agent (Merchant)
Enhancements
- SLAS helpers support the
channel_id(siteId) parameter
v1.7.1
v1.7.1
Bug fixes
- Fix SLAS callback error handling
- Fix SLAS logout function
v1.7.0
- Export API type definitions. They are available as top-level exports, following the pattern
<API Name>Types.
Example usage:
import {ShopperBaskets, ShopperBasketsTypes} from "commerce-sdk-isomorphic"
const basketsClient = new ShopperBaskets(config)
const basket: ShopperBasketsTypes.Basket = await basketsClient.getBasket({ basketId: "some-basket" })v1.6.0
v1.6.0
API Changes
Shopper Login
-
New Endpoints
Endpoint Name Description getPasswordResetToken Request a reset password token resetPassword Creates a new password
Enchancements
- More error handling has been added in the SLAS helpers
Bug fixes
- SLAS helper
loginRegisteredUserB2Cno longer callsredirectURIwhen running server side
Documentation
READMEupdated to explicitly note lack of CORS support for SCAPI