# Upgrades

## 1.2.1 to 1.2.2

### Node.js Version Upgrade

The required Node.js version has been updated from **20 LTS** to **22 LTS**. 
Ensure that your environment is running Node.js 22 LTS to maintain compatibility with the latest dependencies.

### Restriction on Image Resolutions

As of this update, a new limitation on the types of image resolutions that can be uploaded has been added. 
The build will fail if any resolutions other than the ones specified below are used:

- **MOBILE_WEBP_HI_RES**: 1000px x 2000px
- **WEBP_LOW_RES**: 200px x 200px
- **WEBP_HI_2X_RES**: 2000px x 2000px
- **MOBILE_WEBP_LOW_RES**: 100px x 200px
- **ORIGINAL**: The original version of the image, not resized.

Ensure that all images conform to these resolutions to prevent build failures.

### ESLint upgrade from 8 to 9

1. Create a file named ```eslint.config.cjs``` in custom app root directory.
2. Add the following content to the file:
```js
module.exports = require('@lightspeed/eslint-config-crane');
```
3. Remove existing ```.eslintrc.cjs``` file
