Skip to content

v3.16.0 (@salesforce/retail-react-app@9.0.0 and @salesforce/commerce-sdk-react@5.0.0)

Latest

Choose a tag to compare

@kevinxh kevinxh released this 13 Feb 01:34
· 36 commits to develop since this release
6c5fadd

Highlights

  • One Click Checkout (Developer Preview) — Streamlined checkout experience with a single click for returning shoppers
  • Commerce SDK Isomorphic v5.0.0 — Introduces Payment Instrument SCAPI integration
  • Passwordless Login Enhancements — Email mode is now the default for passwordless login and password reset, with configurable mode across login page, auth modal, and checkout
  • PWA Integration with OMS — Order Details, Order History, shipping display, and BOPIS multishipment support
  • AWS SDK v2 to v3 Migration — Modernized cloud infrastructure dependency in pwa-kit-runtime

Enabling One Click Checkout (Developer Preview)

One Click Checkout is shipped as a Developer Preview feature and is disabled by default. To enable it, follow these steps:

Prerequisites

One Click Checkout requires a SLAS private client. If your project is not already configured to use a SLAS private client, follow the setup guide first: Use a SLAS Private Client.

1. Enable the feature flag

In your project's config/default.js, set the oneClickCheckout.enabled flag to true:

// config/default.js
app: {
    // ...existing config
    oneClickCheckout: {
        enabled: true
    }
}

2. Configure the SLAS private client proxy

In your project's ssr.js, add the onSLASPrivateProxyRes callback to the runtime options to handle passwordless login responses correctly:

onSLASPrivateProxyRes: (responseBuffer, proxyRes, req, res) => {
    // Undo the 404 → 200 masking for /oauth2/passwordless/login
    if (req.path?.match(/\/oauth2\/passwordless\/login/) && proxyRes.statusCode === 404) {
        res.statusCode = 404
        res.statusMessage = 'Not Found'
    }
    return responseBuffer
},

Developer Preview Disclaimer

This feature is available as a Developer Preview. Developer Preview features aren't generally available unless or until Salesforce announces general availability in documentation, press releases, or public statements. All commands, parameters, and other features are subject to change or deprecation at any time, with or without notice. Don't implement functionality developed with these commands or tools in production environments.


Package Changes

@salesforce/commerce-sdk-react@5.0.0

  • Upgrade to commerce-sdk-isomorphic v5.0.0 and introduce Payment Instrument SCAPI integration #3552
  • [Bugfix] Ensure code_verifier can be optional in resetPassword call #3567
  • [Improvement] Strengthening typescript types on custom endpoint options and fetchOptions types #3589
  • [Feature] Update authorizePasswordless, getPasswordResetToken, and resetPassword to support use of email mode #3525

@salesforce/retail-react-app@9.0.0

  • [Feature] One Click Checkout (in Developer Preview) #3552
  • [Feature] Add fuzzyPathMatching to reduce computational overhead of route generation at time of application load #3530
  • [Feature] PWA Integration with OMS
    • Integrate Order Details page to display orders data from OMS #3573
    • Integrate Order History page to display data from OMS #3581
    • Add shipping display support for OMS #3588
    • BOPIS multishipment with OMS #3613
    • Default to ECOM shipments in case OMS has no shipments #3639
  • [Feature] Update passwordless login and password reset to use email mode by default. The mode can now be configured across the login page, auth modal, and checkout page #3525
  • Update "Continue Securely" button text to "Continue" for passwordless login #3556
  • Util function for passwordless callback URI #3630
  • Allow shopper to manually input OTP during passwordless login #3554
  • [Bugfix] Fix Passwordless Login landingPath, Reset Password landingPath, and Social Login redirectUri value in config not being used #3560
  • [BREAKING] Remove unused absoluteUrl util from retail react app #3633

@salesforce/pwa-kit-runtime@3.16.0

  • Migrate AWS SDK from v2 to v3 #3566
  • Updated the SLAS private client proxy to enable customizing the proxy response body #3662

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

  • Add new One-Click Checkout configuration #3609
  • Support email mode by default for passwordless login and password reset in a generated app #3525
  • Util function for passwordless callback URI #3630
  • Add tokenLength to login configuration #3554

@salesforce/pwa-kit-dev@3.16.0

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