Skip to content

Releases: sekoyo/react-image-crop

1.0.0-rc2

24 Apr 18:14
Compare
Choose a tag to compare
  • Ensure correct aspect ratio on re-renders
  • Tweak to npm scripts so that development of either JS or SCSS only require npm start

1.0.0-rc1

08 Apr 14:16
Compare
Choose a tag to compare

Update to React v15, which has full support for SVG meaning we can get rid of dangerouslySetInnerHtml and thus improve performance for non-webkit browsers.

Change to ES6 classes.

Add max-width: 100% to container or else the image can still extend beyond the container bounds in Firefox.

Fix issue with <babel5

25 Mar 19:01
Compare
Choose a tag to compare

The fix in 0.1.8 caused an issue due to the use of import with babel <5 (#29). Using babel-plugin-add-module-exports plugin to export the default for CommonJS fixes this issue.

Workaround for babel6 exporting module under "default" for CommonJS

23 Mar 22:52
Compare
Choose a tag to compare

Fix an issue with the previous patch

22 Mar 22:21
Compare
Choose a tag to compare
0.1.7

Change onComponentMouseTouchDown operator back to &&

Fix inability to select new crop in some browser versions

22 Mar 22:11
Compare
Choose a tag to compare

Only use props when creating crop state object

02 Mar 16:34
Compare
Choose a tag to compare

Add pre-commit build hook & build the project

27 Feb 00:21
Compare
Choose a tag to compare

Build was missed in the last 2 patch versions, I've added a pre-commit hook to stop this happening until a CI is in place (someday..)

Max-width 100% and extra param for onImageLoaded

25 Feb 15:23
Compare
Choose a tag to compare

It was non-obvious that .ReactCrop--image-copy also needed max-width set as seen in #21. Also by providing the image DOM element to onImageLoaded the user could use the image dimensions to decide on an optimum crop (e.g. depending on landscape vs portrait)

Firefox compatibility update

25 Feb 15:01
Compare
Choose a tag to compare
  • Make crop darkened background work on Firefox (FF doesn't support clip-path: inset)
  • Use object-assign package and declare it as a peerDependency