Skip to content

Releases: SalesforceCommerceCloud/pwa-kit

v2.7.2

13 Jun 19:26
2c82d32
Compare
Choose a tag to compare

Bugfix

  • Add missing babel dependency #1231

v2.7.1

11 May 23:19
dabfcda
Compare
Choose a tag to compare

Featured Changes:

  • Added optional session bridge call to login for phased launch
  • Product-list refinements to allow multiple types and better handling of isChecked and query parameters
  • Fix multi-value query params being lost
  • Make mergeBasket conditional more robust to fix basket issues when a new account is created
  • Security package updates

Bugfixes

  • Changed type of the phone number field to bring up numberic keyboard on mobile devices
  • Fixed addresses not having preferred address listed first
  • Prevent modal from opening when add an item to cart fails
  • Fix getConfig referencing config from incorrect location
  • Performance improvements on webpack build
  • Remove duplicated site alias and locale from location.state.directedFrom path on hybrid sites
  • Fix Page Designer ImageWithText Link component
  • Fix a local dev memory leak issue when making changes to the retail react app
  • Fix file collisions when client side js have the same name as server side js
  • Replace invalid value for wrap property
  • Add internal lib build typescript dev dependency
  • Fix static file serving

Changes
Full changelog: See #1197

Contributors

Thank you to the following members of our community for contributing to this release!

2.7.0

03 Mar 19:55
02dfe24
Compare
Choose a tag to compare

Featured Changes

  • Initial release of Page Designer page rendering support in template-retail-react-app.
  • Support for product-set product types in template-retail-react-app.
  • Support for Node 16 across the board for PWA Kit.

Changes

Full changelog: release-2.6.x...release-2.7.x

commerce-sdk-react-preview

  • Add Page/Region/Component components for shopper experience/page designer page rendering #963.
  • Namespace Auth storage keys with site identifier to allow multi-site support #911.
  • Add Shopper Experience usePage and usePages hooks#958.
  • Refactors and security package updates.

pwa-kit-dev

  • Add explicit ws dependency #865.
  • Security package updates.

pwa-kit-runtime

  • Support Node 16 #965.
  • Security package updates.

template-retail-react-app

  • Add Page Designer ImageTile component #967.
  • Add Page Designer ImageWithText component #991.
  • Add Page Designer carousel component #977.
  • Add Page Designer layout components #993.
  • Support the product-set type #1019.

New Contributors

v2.6.0

26 Jan 01:00
d944dd6
Compare
Choose a tag to compare

Featured Change: Mega Menu Improvements

Performance of the mega menu used by the Retail React App has been improved.

Changes

Full changelog: release-2.5.x...develop

pwa-kit-dev

  • Upgrade prettier to v2. #926
  • Security package updates.

pwa-kit-runtime

  • Security package updates.

template-retail-react-app

  • Changes to the mega menu to improve site performance. The mega menu now accepts a configuration for initial render 'depth' and then lazy loads further submenus when the page is loaded. #875 and #910
  • Cache SLAS callback using request processor. #884
  • Fix padding of footer drawer component. #899
  • Fix to support order data tracking for the new Einstein event tracking. #920
  • Fix PropTypes. #924
  • Remove unnecessary map statement. #929

New Contributors

Release 2.5.0

07 Jan 00:34
eb7e4c0
Compare
Choose a tag to compare

Featured Change: New Preview of commerce-sdk-react Library

A new preview release of commerce-sdk-react is now available on npm.

The new commerce-sdk-react library includes ready-made React hooks for fetching data from B2C Commerce.

For more information on how to use commerce-sdk-react, see the README.

Changes

Full changelog: v2.4.0...v2.5.0

pwa-kit-create-app

  • Add instanceType to Einstein activity body #858.
  • Do not use a proxy to call Einstein #857.

pwa-kit-dev

  • Logging cid from res header instead of req in local development #821.

pwa-kit-react-sdk

  • Replace morgan stream to use console.log #847.
  • Do not use a proxy to call Einstein #857.
  • Reuse server correlation ID when hydrating error pages #846.

pwa-kit-runtime

  • Logging cid from res header instead of req in local development #821.
  • Replace morgan stream to use console.log #847.

template-retail-react-app

  • Add instanceType to Einstein activity body #858.
  • Do not use a proxy to call Einstein #857.
  • Einstein handle variants #867.
  • Fix cc exp year #874.

v2.4.0

02 Dec 03:31
e05036c
Compare
Choose a tag to compare

Featured Change: Preview of commerce-sdk-react Library

A preview release of commerce-sdk-react is now available on npm.

The new commerce-sdk-react library includes ready-made React hooks for fetching data from B2C Commerce.

For more information on how to use commerce-sdk-react, see the README.

Changes

Full changelog: v2.3.0...v2.4.0

pwa-kit-create-app

  • Update instanceUrl on retail-react-app-demo preset. #799
  • Update usage of zzrf-001 in ODS instances to the new short URL format. #816

pwa-kit-dev

  • Add tail-logs command. #789
  • Upgrade minimatch. #793

pwa-kit-react-sdk

  • Fix useServerContext returning isServerSide=false when on server. #782
  • Upgrade minimatch. #793 

template-retail-react-app

  • Dynamic footer copyright date. #741
  • Footer copyright: remove the remaining hardcoded year. #760
  • ImageGallery uses image.link when DIS is not set. #786
  • Use default locale as target if none is specified. #788
  • Password change bug fix. #803
  • Add command for tailing logs to pwa-kit-dev. #789
  • Update usage of zzrf-001 in ODS instances to the new short URL format. #816

v2.3.0

27 Oct 22:09
e6b8325
Compare
Choose a tag to compare

Featured Change: React Query Support 🎉

The pwa-kit-react-sdk now supports data fetching with React Query on the server side.

For details on how to migrate a v2.2 project to v2.3, see the Upgrade to v2.3 guide.

Changes

Full changelog: v2.2.0...v2.3.0

pwa-kit-react-sdk

  • Support react-query server-side data fetching. #724
  • Add a server-safe default configuration for queryClientConfig option. #734
  • Add useServerContext hook with the res response object and the isServerSide flag. #737
  • Handle react-query server-side errors. #735
  • Fix internal build script. #706
  • Add Correlation ID to SCAPI requests. #728

template-retail-react-app

  • Fix locale alias by including locale object inside the MultiSite Context. #716
  • Updated translations. #725
  • Add new Einstein API activities. #714
  • Fix search field to recognize the & character. #736
  • Fix filters on search results page. #742
  • Make copyright date in footer dynamic. #741
  • Bugfix: image gallery thumbnails not working without DIS. #786

pwa-kit-create-app

  • Fix missing required fields in the manifest.json file for generated projects. #729
  • Update ODS instance URL for the retail-react-app-demo preset. #799

pwa-kit-runtime

  • Performance: Skip retries when flushing CloudWatch metrics and prioritize returning a response instead. #720
  • Add correlation-id to the header of SCAPI requests. #728

pwa-kit-dev

  • Minimize "Module not found" errors during a webpack rebuild whenever a package dependency is being updated or built. #722
  • Update minimatch. #793

v2.2.0

26 Aug 23:33
a045d60
Compare
Choose a tag to compare

Changes

Full changelog: v2.1.0...v2.2.0

template-retail-react-app

  • Update zzrf-001 instance URL. #694
  • Optimize server-side performance. #667
  • Remove references to session bridging. #684

pwa-kit-dev

  • Added option to specify where the credentials can be saved to or read from. #647

New Contributors

v2.1.0

05 Jul 22:18
b3ac01f
Compare
Choose a tag to compare

Featured Change: Hot Reloading on Client Side 🔥

See your changes as soon as you make them! Hot reloading now works on the client side as well as the server side, thanks to hot module replacement.

A page reload is still required when:

  • Adding syntactically invalid changes.
  • Adding a new loadable page.
  • Updating a getProps function.

Changes

Full changelog: v2.0.0...v2.1.0

pwa-kit-dev

  • Replace Mobify references/links with proper PWA Kit values. #619
  • Add support for a custom build directory to pwa-kit-dev build. #628
  • Introduce client-side hot module replacement. #630

pwa-kit-react-sdk

  • Remove console logs from route component. #651

v2.0.0

17 May 02:24
cb136a8
Compare
Choose a tag to compare

What’s New

We’ve added lots of new features to PWA Kit v2, including:

  • 🥳 TypeScript support. The build tools now support TypeScript by default—without having to update the configuration files for Babel or Webpack.
  • 🧰 An updated development server that supports hot reloading on the server side and makes it possible to support hot reloading on the client side in a future release.
  • 🤓 An all-new command-line tool called pwa-kit-dev that bundles our recommended development tools like Webpack, Babel, and Jest to support zero-config project templates.
  • 🖌️ Experimental support for non-React apps for those users interested in using Managed Runtime to host other Express-based apps (not just the Retail React App).

See our Upgrade to v2 guide for details on how to migrate your v1 site to v2.

Changes

Full changelog: v1.5.2...v2.0.0

pwa-kit-create-app

  • Fix generator log #571
  • Fix incorrect site related values when generating without use of a preset #470
  • Support Multi-site implementation using dynamic config #469
  • Add verbose flag to generator #463
  • Environment Specific Configuration Support #477

pwa-kit-dev

  • Make the createApp API idiomatic for Express, fix service-worker loading. #536
  • Remove lodash and bluebird. #534
  • Allow pass thru cli options for test command #537
  • Ensure we copy the package.json file into the build folder. Also move logic for copying config files into the build script from the webpack config #524
  • Loading page: avoid seeing infinite reloads #532
  • Remove legacy remote proxy, which allowed remote environments to use proxy configs in package.json #425
  • Fix source maps cannot be found when debugging the server #526
  • Generate different reports for different bundles #508
  • Allow custom webpack config in projects #462
  • Hide webpack performance warnings #471
  • Support Multi-site implementation using dynamic config #469
  • Loading screen #473
  • Service worker loading for dev server #464
  • Environment Specific Configuration Support #477
  • Remove Webpack PwaKitConfigPlugin #443

pwa-kit-react-sdk

  • Remove lodash and bluebird. #534
  • Support Multi-site implementation using dynamic config #469
  • Support functions as default exports in the applications routes.jsx file. #447
  • Serialize application configuration in the HTML during rendering process. #447
  • Remove create-hash-manifest.js #425
  • Fix upload bug with extending an options object #419

pwa-kit-runtime

  • Make the createApp API idiomatic for Express, fix service-worker loading. #536
  • Add environment specific configuration support via getConfig. #447
  • Remove legacy remote proxy, which allowed remote environments to use proxy configs in package.json #425
  • Remove default body-parser middleware from express server. #444

Templates

template-retail-react-app

  • Multi-site, Fix the case when no site aliases is set #551
  • Fix invalid refresh token #528
  • Add valid token check before using refresh token on login #533
  • Fix localization scripts to output to the correct default locale #539
  • Merge guest cart and registered cart #540
  • Move retail react app jest setup out from pwa-kit-dev #545
  • Remove legacy remote proxy, which allowed remote environments to use proxy configs in package.json #425
  • Rename ‘pwa’ directory into ‘template-retail-react-app’ #485
  • Optimize visibility-off.svg #512
  • Support Multi-site implementation using dynamic config #469
  • Service worker loading for dev server #464
  • Environment Specific Configuration Support #477

template-express-minimal

template-typescript-minimal