Release Notes > 5.42.0
Upgrade From 5.41.x to 5.42.0
Learn how to upgrade Webiny from 5.41.x to 5.42.0.
- how to upgrade Webiny from 5.41.x to 5.42.x
Make sure to check out the 5.42.0 changelog to get familiar with the changes introduced in this release.
Step-by-Step Guide
1. Upgrade Webiny Packages
Upgrade all Webiny NPM packages by running the following command:
Once the upgrade has finished, running the yarn webiny --version
command in your terminal should return 5.42.0.
2. Upgrade Yarn to 4.6.0
We have updated the Yarn
version to 4.6.0
and we cannot update it automatically in the project, so you need to do it manually.
To upgrade Yarn to version 4.6.0
, run the following command:
This will effectively set your project Yarn to v4.6.0 and install all the packages with that Yarn version.
3. Run the Upgrade Command
The next step is to run the project upgrade:
4. Breaking Changes❗
This release contains a couple of breaking changes that might affect your project.
We have updated a lot of dependencies, and we are syncing Webiny dependency versions with your project, so they might cause some issues.
4.1. if You Have@editorjs/*
Packages in Your Project
If there are packages starting with @editorjs/*
in your project, they will probably produce an error during Typescript compile time.
We have added a code mode in our update script, but if there are any leftovers, please sort them out before deploying.
If there are any issues, it is due to the // ts-expect-error
comment in the code.
Build Your Project
After the upgrade, build your API, Admin, and Website project applications:
If you have issues with building the project, something related to @babel/*
packages, please delete your node_modules
directory, run yarn
and try building the project again.
6. Deploy Your Project
Proceed by redeploying your Webiny project:
dev
or staging
.