WooCommerce 4.0 is now available, but is not fully backwards compatible

WooCommerce 4.0 is a “major” release. This means that this version is not fully backwards compatible with sites running various versions of WooCommerce 3.x. Therefore, we recommend testing the upgrade on a staging site copy before upgrading your live store and creating a backup of your code and database.
Source