Antd-img-crop, a handy tool for integrating image cropping functionality into Ant Design-based React applications, saw a significant update between versions 4.1.0 and 4.2.0. Developers considering upgrading should note several key changes.
The core dependency, react-easy-crop, was bumped from version 4.0.1 to 4.1.3, potentially bringing performance improvements and bug fixes within the cropping component itself. Furthermore, the development environment received considerable upgrades. Babel dependencies were replaced with a newer Typescript setup, transitioning from @babel/core, @babel/preset-env, @babel/preset-react , @babel/plugin-transform-runtime to using typescript, @rollup/plugin-typescript, @types/react and @types/react-dom. This shift suggests improvements in code maintainability, type safety, and the overall developer experience. It is also worth to note that the antd and react libraries were added as devDependencies, potentially for testing purposes.
Other notable changes are the updates to development dependencies like eslint, prettier, and rollup, along with corresponding configuration packages such as eslint-config-prettier and eslint-plugin-prettier. These updates indicate a modernization of the project's tooling, leading to better code quality and consistency. While the peer dependencies for antd, react, and react-dom remained consistent, developers should always ensure compatibility with their existing project versions. Also, the fileCount and unpackedSize metrics of the package are slightly higher in the newer version(4.2.0) which is understandable given the migration to Typescript and the newer versions of the used dependencies.
The are not vulnerabilities for the version 4.2.0 of the package antd-img-crop