React Cropper Versions Save

Cropperjs as React component

v2.1.6

3 years ago

What's new

  • Removes internal state where cropper was set and use ref to get cropper (for less re-render)
  • Introduces ReactCropperElement which extends HTMLImageElement to add missing cropper field
  • Upgrades cropperjs to v1.5.10

https://github.com/react-cropper/react-cropper/compare/v2.1.5...v2.1.6

v2.1.6-0

3 years ago

What's new

  • Removes internal state where cropper was set and use ref to get cropper (for less re-render)
  • Introduces ReactCropperElement which extends HTMLImageElement to add missing cropper field
  • Upgrades cropperjs to v1.5.10

https://github.com/react-cropper/react-cropper/compare/v2.1.5-0...v2.1.6-0

v2.1.5

3 years ago
  • Maintainance release
  • Update peer dependency react to allow react:17

https://github.com/react-cropper/react-cropper/compare/v2.1.4...v2.1.5

v2.1.4

3 years ago
  • feat(cropperjs): use cropperjs 1.5.9 (#325) c3233f8

https://github.com/react-cropper/react-cropper/compare/v2.1.3...v2.1.4

v2.1.3

3 years ago
  • feat(cropperjs): use v1.5.8 (#316) ad7d35e
  • build(deps): bump cropperjs from 1.5.7 to 1.5.8 (#315) 139d527

https://github.com/react-cropper/react-cropper/compare/v2.1.2...v2.1.3

v2.1.2

3 years ago
  • fix: allow only positive zoomTo value (#308) 2749ae9

https://github.com/react-cropper/react-cropper/compare/v2.1.1...v2.1.2

v2.1.1

3 years ago
  • fix: update conditions and tests (#283) 58c2cea
  • Update README.md f7e786f
  • fix(ref): allow render without ref too (#269) 3328475
  • fix: Ensure the image can fit inside the canvas by default (#268) 9540640

https://github.com/react-cropper/react-cropper/compare/v2.1.0...v2.1.1

v2.1.1-0

3 years ago

Fixes

  • Ensure the image can fit inside the canvas by default (thanks to @circlingthesun)
  • fix(ref): allow render without ref too

Compare

v2.1.0...v2.1.1-0

v2.1.0

3 years ago
  • feat(ref): re-enable ref option in react-cropper (#257) a96a250

https://github.com/react-cropper/react-cropper/compare/v2.0.0...v2.1.0

v2.0.0

3 years ago

Breaking Change (version >= 2.0.0)

  1. Support for ref has been removed. Use the onInitialized method to get the cropper instance.
  2. To set initial aspect ratio, instead of using aspectRatio use initialAspectRatio.
  3. Props data, canvasData and cropBoxData are directly passed on to cropperjs and their respective setters are not called as earlier.
  4. React Cropper now does not try to use/execute moveTo as earlier. Directly use the moveTo method from the cropper instance.
  5. React Cropper does not depend on @types/react-cropper and provides its own types. Please uninstall/remove @types/react-cropper as they might 'cause issues.

https://github.com/react-cropper/react-cropper/compare/1.3.0...v2.0.0