21 April 2023
DevelopmentGeneral
The Application Kit packages have been released with a new major version
v22, as well as the UI Kit packages with a major version v16.This release contains breaking changes.
This release contains some major dependency version updates. We don't expect any migration steps necessary aside some minor test adjustments (see migration steps below).
The following libraries have been updated to new major versions:
@commercetools-frontend/ui-kitand all@commercetools-uikit/*packages have been updated tov16.react-intland@formatjs/clihave been updated tov6.jestand@types/jesthave been updated tov29.jsdomhas been updated tov21.eslint-plugin-jesthas been updated tov27.
Furthermore, we dropped support for Node.js
v14. Make sure you are using v16 or v18 at least.Finally, we removed support for Google Analytics tracking. If you were using it via the
trackingGtm value, you would need to implement the setup on your own.Upgrading peer dependencies
Make sure to upgrade the following dependencies:
react-intland@formatjs/clitov6jestand@types/jesttov29jest-runner-eslinttov2jest-watch-typeaheadtov2
Migrating Jest
The package
@commercetools-frontend/jest-preset-mc-app contains most of the updates and migration changes.We don't expect any specific migration effort besides updating all Jest dependencies to their latest version (including possible Jest plugins being used).
However, there are a couple of possible necessary updates to consider:
- Jest snapshots format changed a bit. You might need to update your snapshots by passing the option
-uto the Jest command. - The ESLint plugin for Jest might yield some new errors due to its breaking changes. See changelog.
For more detailed information about upgrading Jest, please refer to the official guides: