NOTE: This changelog only contains release notes for PWA Studio and Venia 9.0.1. For older release notes, see PWA Studio releases.
- What's new in 9.0.1
- Pull requests merged in this release
- Known issues
- Upgrading from a previous version
PWA Studio 9.0.1 contains the same features, refactors, and various improvements in the previous 9.0.0 release plus a hotfix for the create-pwa
CLI tool.
This release fixes a bug that crashes the scaffolding tool whenever you run yarn create @magento/pwa
or npx @magento/create-pwa
.
Description | Change type | PR |
---|---|---|
Removed lodash from create-pwa | Bugfix | #3003 |
Added venia-concept as a dependency of create-pwa | Bugfix | #3008 |
- If you are using Multi-Source Inventory(MSI), a GraphQL issue prevents users from adding a configurable product to the shopping cart on non-default store views.
- Prerender feature is unable to cache HTML on Fastly enabled environments.
- The
yarn watch
process may run out of memory if left running for an extended amount of time. If an error occurs because of this, restart the watcher.
The method for updating to 9.0.1 from a previous version depends on how PWA Studio is incorporated into your project. The following are common use cases we have identified and how to update the project code.
Using the scaffolding tool is the recommended method for starting a new storefront project. This tool generates a copy of the storefront project defined in the Venia concept package.
Since scaffolded projects consume PWA Studio libraries as dependencies, you just need to update your PWA Studio dependencies in your package.json
file to use the released version.
After that, install the new dependencies using the install command:
yarn install
or
npm install
If you need to update other project files, such as configuration and build scripts, you need to use a diff tool to compare your projects files with those of Venia concept. This will help determine what changes you need to manually copy into your project files.
Many PWA Studio users have forked the PWA Studio Git repository. Even though their codebase may have diverged a great deal from the current codebase, there is still a Git relationship.
Pull and Merge the changes from the upstream repository using Git. Most of the conflicts will be in components that we have fully refactored.
We recommend merging the library code we changed and updating component calls with any new prop signatures introduced in this version.
Some PWA Studio users have copied parts of the code into their own projects. This is similar to the Git workflow, but without the merging tools Git provides.
Updating this code involves manually copying updates for the code they use. New code may also need to be copied over if the updated code depends on it.
This method can be a chore, and we hope that some of the features in 5.0.0+ will help these users migrate to a package management approach.
Some users have imported the PWA Studio libraries using NPM. This is the easiest way to work with the released versions of PWA Studio.
To upgrade to the latest version (currently 9.0.1), simply call yarn add
on each of the @magento
packages. This will both update package.json
in your project, as well as install the latest versions.
Sample command:
yarn add @magento/eslint-config @magento/pagebuilder @magento/peregrine @magento/pwa-buildpack @magento/upward-js @magento/venia-ui