Skip to content

Releases: SalesforceCommerceCloud/commerce-sdk-isomorphic

v1.10.3

15 Sep 20:36
23d049b

Choose a tag to compare

v1.10.3

Bug fixes

  • Fix expand query parameter for shopper-products
  • Remove retrieveCredQualityUserInfo endpoint from shopper-login as this functionality was removed from SLAS

v1.10.2

07 Sep 18:12
f53810b

Choose a tag to compare

v1.10.2

Documentation

v1.10.1

26 Apr 18:38
07a5ca4

Choose a tag to compare

Bug fixes

  • The 'To is not a function' issue is fixed.

v1.10.0

12 Apr 21:14
061a9e3

Choose a tag to compare

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.

v1.9.0

30 Jan 20:56
7376648

Choose a tag to compare

v1.9.0

API Added

v1.8.0

31 Oct 18:01
39cb328

Choose a tag to compare

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

11 Aug 20:52
8fce68b

Choose a tag to compare

v1.7.1

Bug fixes

  • Fix SLAS callback error handling
  • Fix SLAS logout function

v1.7.0

15 Jul 19:45
0e2a46c

Choose a tag to compare

  • 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

28 Jun 20:47
5fdb8e7

Choose a tag to compare

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 loginRegisteredUserB2C no longer calls redirectURI when running server side

Documentation

  • README updated to explicitly note lack of CORS support for SCAPI

v1.5.2

25 Apr 19:44
16173b5

Choose a tag to compare

v1.5.2

New Features

  • If the throwOnBadResponse flag is set, the error thrown now includes the full HTTP response object.

Bug Fixes

  • An error about invalid user-agent is no longer printed to console when making requests in a browser.