Releases: SalesforceCommerceCloud/pwa-kit
Releases · SalesforceCommerceCloud/pwa-kit
v2.10.0
v3.11.0 (retail-react-app@7.0.0 and commerce-sdk-react@3.4.0)
@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.jsoncontent 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
StoreLocatorProviderto theAppConfigtemplate 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
addToCartevent #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)
@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
@salesforce/pwa-kit-dev@3.10.0
@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
v2.9.1
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
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
v3.9.0 (retail-react-app@6.0.0 and commerce-sdk-react@3.2.0)
New Features
- Passwordless Login
- Social Logins
- Password Reset
- Do Not Track
- Node 22 support for v3 projects
- Stores can be selected via store locator
- Redirects with http status other than 302
- Cookies are now allowed on SLAS calls
- Sessions on other browsers are cleared on password change
@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, andresetPasswordwrapper functions to support Social Login, Passwordless Login, and Password Reset #2079
@salesforce/pwa-kit-create-app@3.9.0
- Update
default.jsandssr.jstemplate to support new passwordless, social, and reset password flows. #2263 - Support Node 22 #2218
- Update
default.jstemplate 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
@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
applySLASPrivateClientToEndpointsoption #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
What's Changed
- Support Node 20 #2189
- Update Auth class in retail-react-app to pass required
channel_idto SLAS #2189- For more information about the SLAS changes, please see the Salesforce developer docs and the release notes for
v2.8.4.
- For more information about the SLAS changes, please see the Salesforce developer docs and the release notes for
Full Changelog: v2.8.4...v2.9.0
v3.8.0 (retail-react-app@5.0.0 and commerce-sdk-react@3.1.0)
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
njwtnpm 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
encodeNonAsciiHttpHeadersflag is set to true inssr.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
ToggleCardtitle 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
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
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)
v3.7.0 (commerce-sdk-react@3.0.1 and retail-react-app@4.0.1)
@salesforce/commerce-sdk-react@3.0.1
- Fixed an issue with the
expiresattribute 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