react-compare-image v2.0.4 Release Notes

Release Date: 2020-01-19 // 4 months ago
  • Patches

    • 🔒 upgrade handlebars for security fix.

Previous changes from v2.0.0

  • 💥 Breaking Changes

    • Container's aspect ratio decision logic has changed.
      • With previous versions(version 0, 1), When displaying two images with different aspect ratios, container's aspect ratio was determined by the aspect retio of the right side image
      • From version 2, container size will be determined by taller image's aspect ratio.
      • You can change this behavior by setting aspectRatio props to 'taller' or 'wider'.
      • 'taller' means:
      • the taller image when the images are displayed with the same width.
      • 'wider' means:
      • the shorter image when the images are displayed with the same width.
      • In other words, the wider image when the images are displayed with the same height.

    🆕 New Features

    • ➕ Add vertical comparison feature. use the 'vertical' prop.
    • Hide labels properly.