Skip to content

Releases: SalesforceCommerceCloud/pwa-kit

v2.10.0

30 Jul 18:14
8d8bcf5

Choose a tag to compare

What's Changed

  • Integrate commerce-sdk-react with PWA Kit v2.x and implement Hybrid Auth support #2510

Full Changelog: v2.9.1...v2.10.0

v3.11.0 (retail-react-app@7.0.0 and commerce-sdk-react@3.4.0)

22 Jul 22:16
ce537dc

Choose a tag to compare

@salesforce/commerce-sdk-react@3.4.0

  • Optionally disable auth init in CommerceApiProvider #2629
  • Now compatible with either React 17 and 18 #2506
  • Gracefully handle missing SDK Clients in CommerceApiProvider #2539
  • Refactor commerce-sdk-react to allow injecting ApiClients #2519

@salesforce/pwa-kit-create-app@3.11.0

  • Fix exiting before program.json content can be flushed #2699
  • Add program.json + Support for Agent-Friendly CLI Input via stdio #2662
  • Change the default ECOM instance in the generated application #2610
  • Load active data scripts on demand only #2623
  • Introduce the cursor rules to assist storefront project developers #2578 #2754
  • Add StoreLocatorProvider to the AppConfig template to support BOPIS #2753

@salesforce/pwa-kit-react-sdk@3.11.0

  • Fix the performance logging so that it'll capture all SSR queries, even those that result in errors #2486

@salesforce/pwa-kit-runtime@3.11.0

  • Fix the logger so that it will now print out details of the given Error object #2486
  • Only allow requests for /shopper/auth/ through the SLAS private client proxy. Also stop the proxy from swallowing SLAS errors #2608

@salesforce/retail-react-app@7.0.0

Breaking

  • [Breaking] Support Standard Products 2697
    There have been some method signatures changed as part of this PR. See the PR for more details.

New Features

  • Added support for Buy Online Pick up In Store (BOPIS) #2646 #2716 #2726
  • Introduce store locator #2542
  • Provide conditional support for partial hydration (feature flag PARTIAL_HYDRATION_ENABLED) #2696 #2846
  • Show Automatic Bonus Products on Cart Page #2704 #2760 #2815
  • Load active data scripts on demand only #2623
  • Provide base image for convenient perf optimizations #2642
  • Use <picture> element for responsive images #2724
  • Support saving billing phone number on user registration from order confirmation #2653
  • Support saving default shipping address on user registration from order confirmation #2706
  • Add Data Cloud partyIdentification events and improve error handling #2811

Bug Fixes

  • [a11y] Ensure voiceover announces contents of the email confirmation modal #2540
  • Fix Einstein event tracking for addToCart event #2558
  • Fix passwordless race conditions in form submission #2758

Other Changes

  • Updated 6 new languages #2495
  • Improved the layout of product tiles in product scroll and product list #2446
  • Update the configuration of datacloud #2467 #2540
  • Password Reset and Passwordless Integration Test #2669
  • Update latest translations for all languages #2616 #2726 #2629 #2823
  • Minor updates to support BOPIS E2E tests #2716

v3.10.0 (retail-react-app@6.1.0 and commerce-sdk-react@3.3.0)

23 May 22:09
da9ff1c

Choose a tag to compare

@salesforce/commerce-sdk-react@3.3.0

  • Fix inconsistency between dwsid and access token for guest login when hybrid authentication is enabled #2397
  • Invalidate cache instead of removing cache when triggering logout #2323
  • Fix dependencies vulnerabilities #2338
  • Allow custom parameters/body to be passed to SLAS authorize/authenticate calls via commerce-sdk-react auth helpers #2358

@salesforce/pwa-kit-create-app@3.10.0

  • Add Data Cloud API configuration to default.js #2318
  • Fix dependencies vulnerabilities #2338

@salesforce/pwa-kit-dev@3.10.0

  • Support source map for both client and server on MRT #2240
  • Fix dependencies vulnerabilities #2338

@salesforce/pwa-kit-react-sdk@3.10.0

  • Fix the performance logging util to use the correct delimiter for the server-timing header #2295

@salesforce/retail-react-app@6.1.0

New Features

  • Send PWA Kit events to Data Cloud #2229
  • PDP / PLP: Add page meta data tags that have been defined in BM #2232
  • Add Confirm New Password input field to Reset & Change Password flows #2395

Bug Fixes

  • Fix hreflang alternate links #2269
  • Fix dependencies vulnerabilities #2338
  • Fix accessibility issues #2375
  • Update cc-datacloud-typescript package to use a fixed lock version #2392
  • Update the configuration of datacloud #2467

v2.9.1

24 Mar 16:06
86613ba

Choose a tag to compare

Performance improvements

We are happy to announce v2.9.1 of the PWA Kit. This patch release introduces changes for high-scale projects can have a material impact on performance including:

  • Improved performance of garbage collection
  • More efficient logging of performance metrics

These can have a 100-300ms improvement in SSR requests for projects under heavy load.

v3.9.2

10 Mar 16:31
d982971

Choose a tag to compare

Performance improvements

We are happy to announce v3.9.2 of the PWA Kit. This patch release introduces changes for high-scale projects can have a material impact on performance including:

  • Improved performance of garbage collection (v3.9.1)
  • More efficient logging of performance metrics

These can have a 100-300ms improvement in SSR requests for projects under heavy load.

To adopt these enhancements simply bump your runtime dependency version. For v3 projects this should be trivial and introduce no breaking changes but always be sure to test thoroughly!

v3.9.1

10 Mar 16:30
c31cd50

Choose a tag to compare

Performance Improvements

  • @salesforce/pwa-kit-runtime@3.9.1 Improved performance of garbage collection

v3.9.0 (retail-react-app@6.0.0 and commerce-sdk-react@3.2.0)

18 Feb 21:42
bb69324

Choose a tag to compare

New Features

@salesforce/commerce-sdk-react@3.2.0

  • Allow cookies for ShopperLogin API #2190
  • Fix refresh token TTL warning from firing when override is not provided #2114
  • Readme updates for private clients #2212
  • Update CacheUpdateMatrix for mergeBasket mutation #2138
  • Clear auth state if session has been invalidated by a password change #2092
  • DNT interface improvement #2203
  • Support Node 22 #2218
  • Add authorizeIDP, loginIDPUser, authorizePasswordless, getPasswordLessAccessToken, getPasswordResetToken, and resetPassword wrapper functions to support Social Login, Passwordless Login, and Password Reset #2079

@salesforce/pwa-kit-create-app@3.9.0

  • Update default.js and ssr.js template to support new passwordless, social, and reset password flows. #2263
  • Support Node 22 #2218
  • Update default.js template to include new login configurations #2079
  • Handle import error when ssr.js imports from template retail react app #2270

@salesforce/pwa-kit-dev@3.9.0

  • Support Node 22 #2218
  • Set minimum target node version #2241

@salesforce/pwa-kit-react-sdk@3.9.0

  • Fix the performance logging util to not round duration. #2199
  • Add RedirectWithStatus component, allowing finer grained control of rediriects and their status code #2173
  • Support Node 22 #2218

@salesforce/pwa-kit-runtime@3.9.0

  • Fix stale service worker file that could cause requests to still use old Content-Security-Policy #2191
  • Support Node 22 #2218
  • Support Social Login, Passwordless Login, and Password Reset: update the default value for applySLASPrivateClientToEndpoints option #2250]

@salesforce/retail-react-app@6.0.0

  • DNT Consent Banner: #2203]
  • Support Node 22 #2218
  • Implemented opt-in Social & Passwordless Login features and fixed the Reset Password flow which now leverages SLAS APIs #2079
  • Allow store to be selectable in StoreLocator #2187
  • Replace transfer basket call with merge basket on checkout #2138

Bug Fixes

  • [BUG] Fixed GET /shopper-context API calls being made without the usid #2206
  • Update test data references to 2024, and unify to 01/2040 #2196
  • Fixed failing checkout tests #2195
  • [BUG] Fixed "getCheckboxProps is not a function" when rendering checkout page in generated app. #2140
  • [BUG] Fix images being fetced multiple times on Safari #2223

Accessibility Improvements

  • [a11y] Fix LinkList component to follow a11y practise #2098

v2.9.0

22 Jan 16:51
173916e

Choose a tag to compare

What's Changed

Full Changelog: v2.8.4...v2.9.0

v3.8.0 (retail-react-app@5.0.0 and commerce-sdk-react@3.1.0)

29 Oct 18:52
17b9e0c

Choose a tag to compare

retail-react-app v5.0.0 (Oct 28, 2024)

New Features

  • Implement ability to set Shopper Context via search parameters in the Retail React App #1986
  • Display a promo banner from Page Designer in the PLP page of the Retail React App #2016

Performance Improvements

  • PLP: When products are being refetched, only the pricing and promotions sections will display a skeleton in the ProductTile #2064
  • Remove ocapi session-bridging on phased launches #2011

Other Changes

  • [Hybrid Stability] - Attach dwsid to SCAPI request headers & remove OCAPI proxy #2090
  • Announce wishlist change in total for screen readers (a11y) #2033
  • Fixed a bug that incorrectly imports uninstalled package @chakra-ui/layout #2047
  • Replace getAppOrigin with useOrigin to have a better support for an app origin building. #2050
  • PWA Kit projects have Active Data tracking set to "true" by default #1983.

Bug Fixes

  • The unused njwt npm package had a security vulnerability, since it was unused, the package has been dropped
  • Remove save/edit billing action in checkout page for the registered user #1976
  • Product scroller: don't skip tiles if window is too large #2003
  • PDP / PLP: Render non HTTP 404 erros #2003
  • Error page: Render home page when clicking nav icon #2003
  • Encode non ASCII HTTP headers when encodeNonAsciiHttpHeaders flag is set to true in ssr.js #2009
  • Updated @salesforce/commerce-sdk-react to 3.0.1 to fix an issue with the expires attribute of cookies, ensuring it uses seconds instead of days #1994

Accessibility Improvements

  • [a11y] Hide svg from screenreader as they are decorative on homepage #1980
  • [a11y] Hide log out svg from screenreader as they are decorative #2000
  • [a11y] Ensure heading level matches the heading's visual importance/level #2000
  • [a11y] Provide a descriptive dialog title for Mobile Navigation Header #2000
  • Hide breadcrumb chevrons from screen readers #1965
  • Add descriptive text for screen readers on product edit modal in cart page #1965
  • A11y: Fix search bar header element focus order #1969
  • A11y: Order Details - hide decorative image and convert some p tags as proper headings #2026
  • Add aria-labels for buttons in product item wishlist component to ensure they are unique and descriptive. #2023
  • Focus onto the ToggleCard title whenever the component is opened to be editted #2029
  • Add descriptive acccessibility label for edit/remove buttons on account addresses and checkout pages #2037
  • [a11y] Mobile view account menu a11y adjustments #2059
  • [a11y] PLP - Use header tags for filter options #2065

commerce-sdk-react v3.1.0 (Oct 28, 2024)

  • [Hybrid Stability] Attach dwsid to SCAPI request headers #2090
  • Add the authorizeCustomer and getPasswordResetToken to the ShopperLoginMutations #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 refreshTokenRegisteredCookieTTL and refreshTokenGuestCookieTTL to Commerce API config #2077
  • Improve refresh token error logging #2028
  • Remove ocapi session-bridging on phased launches #2011
  • Add defaultDnt to support setting the dnt flag for SLAS. Upgrade commerce-sdk-isomorphic to v3.1.1 #1979
  • Update logout helper to work for guest users #1997
  • Update useCustomMutation hook to accept request body as a parameter to the mutate function #2030
  • Simplify useCustomMutation hook implementation #2034
  • Documentation for useCustomMutation hook along with new dynamic body param option #2042

pwa-kit-create-app v3.8.0 (Oct 28, 2024)

  • Removed OCAPISessionURL prop from provider template. #2090
  • Update ssr.js templates to include new feature flag to encode non ASCII HTTP headers #2048
  • Replace getAppOrigin with useOrigin to have a better support for an app origin building. #2050

pwa-kit-dev v3.8.0 (Oct 28, 2024)

(No changes)

pwa-kit-react-sdk v3.8.0 (Oct 28, 2024)

  • [Hybrid Stability] - Attach dwsid to SCAPI request headers #2090
  • Create useOrigin hook to return an app origin that takes x-forwarded-host header into consideration. #2050

pwa-kit-runtime v3.8.0 (Oct 28, 2024)

  • Add proxy handling for trusted agent on behalf of (TAOB) requests #2077
  • Encode non ASCII HTTP headers when encodeNonAsciiHttpHeaders flag is set to true in ssr.js in the retail react app #2009
  • Add x-forwarded-host header into res locals, which can be used to build an app origin #2050

v3.7.0 (commerce-sdk-react@3.0.1 and retail-react-app@4.0.1)

04 Sep 23:20
1fef72f

Choose a tag to compare

@salesforce/commerce-sdk-react@3.0.1


  • Fixed an issue with the expires attribute in cookies, ensuring it uses seconds instead of days #1994

@salesforce/retail-react-app@4.0.1


  • Update dependency @salesforce/commerce-sdk-react@3.0.1