- Update CacheUpdateMatrix for mergeBasket mutation #2138
- Clear auth state if session has been invalidated by a password change #2092
- Add wrappers for social login helpers:
authorizeIDPandloginIDPUser#2049 - Clear auth state if session has been invalidated by a password change #2092
- [Server Affinity] Attach dwsid to SCAPI request headers #2090
- Add the
authorizeCustomerandgetPasswordResetTokento theShopperLoginMutations#2056 - Add useDNT hook to commerce-sdk-react and put DNT in auth #2067
- Add Trusted Agent on Behalf of (TAOB) support for SLAS APIs #2077
- Add optional
refreshTokenRegisteredCookieTTLandrefreshTokenGuestCookieTTLto Commerce API config #2077 - Improve refresh token error logging #2028
- Remove ocapi session-bridging on phased launches #2011
- Add
defaultDntto support setting the dnt flag for SLAS. Upgradecommerce-sdk-isomorphicto v3.1.1 #1979 - Update logout helper to work for guest users #1997
- Update
useCustomMutationhook to accept request body as a parameter to the mutate function #2030 - Simplify
useCustomMutationhook implementation #2034 - Documentation for
useCustomMutationhook along with new dynamicbodyparam option #2042
- Fixed an issue where the
expiresattribute in cookies, ensuring it uses seconds instead of days. #1994
- Add
meta.displayNameto queries. It can be used to identify queries in performance metrics or logs. #1895 - Upgrade to commerce-sdk-isomorphic v3.0.0 #1914
Starting July 31st 2024, all endpoints in the Shopper context API will require the siteId parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025. You can read more about the planned change here in the notes section.
SLAS will soon require new tenants to pass channel_id as an argument for retrieving guest access tokens. You can read more about the planned change here.
Please be aware that existing tenants are on a temporary allow list and will see no immediate disruption to service. We do ask that all users seek to adhere to the channel_id requirement before the end of August to enhance your security posture before the holiday peak season.
In practice, we recommend:
- For customers using the SLAS helpers with a private client, it is recommended to upgrade to
v3.0.0of thecommerce-sdk-react.
- Updated StorefrontPreview component to make siteId available #1874
- Fix private slas proxy config for commerce api in provider #1883
- Fix
useCustomQueryerror handling #1883 - Fix
updateCustomersquashing existing data #1883 - Fix
transferBasketupdating the wrong customer basket #1887
- Add
useCustomQueryanduseCustomMutationfor SCAPI custom endpoint support #1793 - Add Shopper Stores hooks #1788
- Add a helper method to add an item to either new or existing basket #1677
- Add
updateItemsInBasketmutation #1852 - Upgrade to commerce-sdk-isomorphic v2.1.0 #1852
- Update SLAS private proxy path #1752
- Add missing params keys
allVariationPropertiesandperPricebookfor Shopper Search #1750
- Add Support for SLAS private flow #1722
- Fix invalid query params warnings and allow custom query #1655
- Fix cannot read properties of undefined (reading 'unshift') #1689
- Add Shopper SEO hook #1688
- Update useLocalStorage implementation to be more responsive #1703
- Storefront Preview: avoid stale cached Commerce API responses, whenever the Shopper Context is set #1701
- Add support for node 20 #1612
- Add StorefrontPreview component 'onContextChange' property to prepare for future Storefront Preview release #1527
- Update engine compatibility to include npm 10 #1597
- Add StorefrontPreview component #1508
- Using
loginfor authentication instead ofemailin registration process #1464 - Fix bug to remove cookies using the default attributes used when setting cookie #1505
- commerce-sdk-react: have typedoc-related deps as dev dependencies #1425
- Updated commerce-sdk-isomorphic to v1.10.4 #137
- Updated the expiry of the guest refresh token cookie to 30 days, to match the actual duration of the token. #1342
- Fix potential security vulnerability in
semverdependency #1358 - Fix request headers to be the intended headers, rather than parameters #1377
- First public release of package on npm under
@salesforce/commerce-sdk-react - Add missing cache invalidation for contexts/customers/login/order #1073
- Upgrade React 18, React DOM 18, @types/react@18, @types/react-dom@v18 Testing library 14 #1166
The older versions below were published without the @salesforce namespace.
- Re-generate lock files and fix hook lib tests #1186
- Add additional properties to ShopperLogin test types #1185
- Add missing cache invalidation for contexts/customers/login/order #1073
- Fix Shopper Baskets Test case #1082
- Implement remaining Shopper Baskets cache logic #1070
- Decode pre-fetched token and save auth data in storage #1052
- Allow query hook parameters to be null. #1046
- Implement updateCustomerPassword as no-op. #1031