Broadleaf Microservices
  • v1.0.0-latest-prod

Commerce SDK Release Notes

Upgrade Guidance

Consider adding the following script to your storefront project to make upgrading CommerceSDK dependencies easier:

+

#!/bin/sh

GREEN=$'\e[0;32m'
CYAN=$'\e[0;36m'
NC=$'\e[0m'

echo "Upgrading Commerce SDK versions to $1..."

yarn add @broadleaf/commerce-browse@$1 @broadleaf/commerce-cart@$1 @broadleaf/commerce-content@$1 @broadleaf/commerce-core@$1 @broadleaf/commerce-customer@$1 @broadleaf/commerce-menu@$1 @broadleaf/commerce-sandbox@$1 @broadleaf/commerce-tenant@$1 --exact

echo "\n${GREEN}Finished${NC}"

And then add this to the scripts in your package.json

{
  "scripts": {
    "upgrade:commerce": "./upgrade-commerce-version.sh"
  }
}

Then you can upgrade to the latest version of each module using this from the command line:

# for latest 1.6 patch of each module, commerce-browse, commerce-cart, and commerce-content, etc.
yarn upgrade:commerce latest-1.6
Tip
Not every module has changes for each release, so @broadleaf/commerce-browse might increment its version but @broadleaf/commerce-cart and @broadleaf/commerce-content might not change.