Skip to content

Releases: dominictobias/react-image-crop

9.0.4

06 Sep 18:23
Compare
Choose a tag to compare
  • Non-functional Typescript improvements (#439 + #440)

9.0.3

26 Aug 16:09
Compare
Choose a tag to compare
  • Add spin prop. A non-visual prop to keep pointer coords accurate when a parent element is rotated. Not to be confused with the rotate prop which rotates the image itself. Defaults to 0, range is from -180 to 180. This behaviour is typically found in an image editing app when rotating both the image and the crop. #436

9.0.2

20 Aug 08:14
Compare
Choose a tag to compare

This is a technical bug fix release to changes related to converting to Typescript. Versions 9.0.0 + 9.0.1 are deprecated.

9.0.1

20 Aug 01:12
Compare
Choose a tag to compare

This fixes the default export. Note there were more fixes to make so use 9.0.2.

9.0.0

20 Aug 00:46
Compare
Choose a tag to compare

Note that you should use 9.0.2 (9.0.0 + 9.0.1 are deprecated due to some issues)

The library is now written in Typescript and comes with two breaking changes:

  1. You should remove @types/react-image-crop as the library is now self-documenting.
  2. If you were importing the .scss file, the path is now src/ReactCrop.scss instead of lib/ReactCrop.scss.

There are also two new props:

  • scale: For zooming the image in and out. Defaults to 1. Combine with react-zoom-pan-pinch if you want pinch and scroll zooming.
  • rotate: For rotating the image between -180 to 180. Defaults to 0.

scale-rotate

8.6.12

16 Jun 10:01
Compare
Choose a tag to compare
  • Fix dragging of crop on touch devices in React 17+ (regression) #405

You can ignore 8.6.11, it does no harm but doesn't fix the issue.

8.6.10

14 Jun 15:16
Compare
Choose a tag to compare

⚠️ Edit: This is a breaking change for some SASS users of ReactCrop.scss ⚠️
Apologies this should have been a breaking change. ReactCrop.scss is now compatible with https://www.npmjs.com/package/sass only, not with the deprecated packages node-sass or dart-sass which was done in the process of fixing deprecation warnings for #426
Alternatively if you aren't changing any SCSS variables you can import ReactCrop.css instead.

  • Fixed "Minimum height/width not respected on mobile if user "taps" the image" #425
  • Fixed deprecation warning when using new sass library #426
  • Fixed scrolling window when dragging to move/resize crop on touch.
  • Some internal changes to simplify/reduce some code.
  • Removed support for proprietary IE .setActive function instead of .focus (IE support was dropped and not working properly for a while anyway).
  • Switch to using pointer events instead of touch + mouse.

8.6.9

26 Apr 12:22
Compare
Choose a tag to compare
  • Fix for touchmove event warnings on mobile #419

8.6.8

25 Apr 10:57
Compare
Choose a tag to compare
  • Accidentally didn't publish /lib folder to NPM in 8.6.7 meaning that if you were importing the .scss file it would've broken. #418

8.6.7

24 Apr 13:00
Compare
Choose a tag to compare
  • PR #417: Fix events so that they don't produce warnings in React 17 and potentially infinite loops in modals