Releases: ValentinH/react-easy-crop
Releases · ValentinH/react-easy-crop
v3.1.1
v3.1.0
v3.0.1
v3.0.0
Package size diet release ❤️
Thanks to @stefanoruth in #127, we have remove the dependency on @emotion
to manage the styles. This decreased the gzipped size from 12.5KB to 4KB 😱
Breaking changes?
If you were using the classnames
property, you might have to manually import the CSS file starting from 3.0.0. See https://github.com/ricardo-ch/react-easy-crop#styles
Except for this, everything should be the same 🙂
Commits
v2.1.2
v2.1.1
v2.1.0
v2.0.1
v2.0.0
v2.0.0
Typescript
The library has been rewritten to Typescript and now ships its own definitions.
⚠️ Breaking changes
We have removed all the deprecated props and some other props that were actually useless.
Here are the (few) migration steps:
crossOrigin
was removed: you can directly pass thecrossOrigin
attribute to themediaProps
property.onImgError
andonMediaError
were removed: you can directly pass theonError
callback to themediaProps
property.onImageLoaded
was removed: you should now use theonMediaLoaded
property