Updating to Composable Storefront Version 6.0
Upgrading Your Angular Libraries
Before upgrading composable storefront to version 6.0, you first need to make sure your Angular libraries are up to date. Composable storefront 6.0 requires Angular 15.
To upgrade to Angular 15, follow the steps in the official Angular Update Guide
.
When upgrading your Angular libraries to version 15, you might have to append the --force flag if you encounter a mismatch between peer dependencies during the migration. The following is an example:
ng update @angular/cli@15 --force
Afterwards, you need to upgrade third party dependencies to the version that is compatible with Angular 15, such as ngx-infinite-scroll, @ng-select/ng-select or @ngrx/store.
Installing Composable Storefront Libraries from the Repository Based Shipment Channel
To upgrade composable storefront to version 6.0, you need to set up your access to the composable storefront 6.0 libraries in the Repository Based Shipment Channel (RBSC), as described in the following procedure.
Procedure
Upgrading Composable Storefront to 6.0
Composable storefront 6.0 includes many new features and fixes. Since this update is a major release, some of the updates may also be breaking changes for your application. In this case, additional work on your side may be required to fix issues that result from upgrading from 5.2 to 6.0.
To update to version 6.0 of composable storefront, run the following command in the workspace of your Angular application:
ng update @spartacus/schematics@6.0
Using Composable Storefront with SAP Commerce Cloud in the Public Cloud
SAP Commerce Cloud hosting service is used for both building and hosting JavaScript storefronts. However, as of May 2023, the hosting service cannot build composable storefront 5.x or later because the libraries are stored on the RBSC. Releases of Spartacus 4.x and earlier can still build. This is a temporary problem that should be resolved soon. In the meantime, as a workaround, you can build your composable storefront app locally, and upload the compiled application, as follows:
Procedure
Updating Your Composable Storefront Application to a New Patch Version
You can update your composable storefront app to a new patch version, as follows:
Procedure
Adding the VideoModule and PDFModule to Your Storefront App
The VideoModule and the PDFModule are not added by default when you install or upgrade your composable storefront app using schematics. However, you can add these modules manually, as described in the following procedure.
