npm / react-easy-crop
react-easy-crop
What changed in react-easy-crop 4 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
3 breaking1 new APIs and options2 behavior and defaults8 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initreact-easy-crop 67 changes
Behavior and default changes 2
Adds details to interaction callbacks, giving developers additional information about interactions.
Debounced during resize bursts.
Fixes and other changes 5
Declared @types/react as an optional peer dependency, so it is not required for every installation.
Fixes cover crop restoration on initial media load.
Fixes CommonJS type exports for developers using the package's types with CommonJS.
Fixes the generated CSS type declaration.
Fixes media sizing when CSS resets are present.
react-easy-crop 54 changes
Breaking changes 1
The auto-cover option was removed and replaced by cover; the logic choosing between horizontal and vertical was rewritten to pick the right choice more accurately.
Fixes and other changes 3
Handles zoom values below 1 when restricting position.
Prevents a NaN crop when previousCropSize.x or previousCropSize.y is zero.
Fixed the ESM build.
react-easy-crop 43 changes
Breaking changes 2
The onCropComplete() output changes when rotation is different than 0; it now represents bounding-box-relative values.
The onCropComplete() output changes when rotation is different than 0 and now generates bounding-box-relative values, requiring updates to code that generates the final image.
New APIs and options 1
Adds a more accurate alternative to initialCroppedAreaPixels that avoids rounding and better preserves crop state across save/restore operations.