Shogun Frontend Release 22-06-08

Hi, everyone! We are pleased to announce a new version of the Frontend Checkout, using the latest Shopify Cart API. We also added support for h4-h6 elements to the RichText Component, improved how you can filter in CMS, and much more!

๐Ÿš€ What's New

Frontend Checkout ๐Ÿ›’

  • Added support for the Shopify Cart API, enabling access to new functionality like Bot Protection and Selling Plan data. Learn more here.

Shogun Frontend API ๐ŸŽ

  • Deprecated the requirement to include your Store Token for theย publishSiteย andย publishSitePreviewย mutations. Now all mutations use the same authentication method and only require the api-key header.

Frontend UI ๐Ÿงฑ

  • Added support to preload ResponsiveBackgroundImage and ResponsiveImage image URLs when the loading prop is set to preload. To improve the Lighthouse score, this optimization should only be used for the main hero background image that is the Largest Contentful Paint (LCP) on a page.
  • Added support for h4-h6 elements to the RichText component.

Storefront ๐Ÿฌ

  • Added the fetchpriority high priority hint to improve the performance of images in the viewport.

CMS ๐Ÿ“‹

  • Added the ability to filter by multi-value reference fields in the CMS.
  • Include empty values in the result for the "does not equalโ€ operator when filtering on single-value reference fields in the CMS.
  • Added ability to search by SKU for ProductVariant references in the XM.
  • Improved how customers use ProductVariants within the XM
    • Added ability for developers to fetch product information in the Section code when a variant is selected in the XM.

๐Ÿ“ˆ Improvements

  • Improved build times by skipping installation of npm packages when no changes of dependencies have been made. Build times will be about 20 to 30 seconds faster.

๐Ÿ› ๏ธ Fixes

  • Fixed a bug where the dependencies' version input select failed to render when the dependency name contained a /, i.e., @chakra-ui/react.
  • Fixed a bug where the Site Manager wouldn't show all the builds until the page was refreshed in the browser.
  • Fixed a bug where the page status "Ready to Publish" was reading as "Draft" in the Site Manager.
  • Fixed a bug with intermittent timeouts when building stores.
  • Fixed a bug where the โ€œAdd fieldโ€ button in the CMS was disabled until you click on another input in the form.