Skip to content

Releases: neptunian/react-photo-gallery

v6.0.29

25 Jul 20:48
Compare
Choose a tag to compare
  • Remove addEventListener from the window 'resize' event and use ResizeObserver polyfill to watch for changes to the element size instead of the window size.

6.0.28

09 Jun 19:47
Compare
Choose a tag to compare
  • fix error when rendering on the server side #95
  • let srcSet and sizes accept strings
  • change default Photo component from React PureComponent to function

6.0.26

25 May 19:09
Compare
Choose a tag to compare

6.0.23

17 Apr 10:33
f74b806
Compare
Choose a tag to compare
  • update react and react-dom to 16.3.2
  • bug fix for issue #86 and issue #81 'Maximum update depth exceeded'

Fix warnings for React 16.0.0

03 Oct 15:17
Compare
Choose a tag to compare
6.0.7

update build files 6.0.7

6.0.0

12 Sep 11:46
Compare
Choose a tag to compare

Updates

  • add eslint, prettier checks
  • update react, react-dom, react-measure
  • new optional ImageComponent prop on Gallery

Breaking changes

  • cols props is columns
  • srcset props is srcSet
  • onClickPhoto is onClick
  • onClick (previously onClickPhoto) returns parameters in a different order and different data:
onClick(event, {
      index,
      photo: photos[index],
      previous: photos[index - 1] || null,
      next: photos[index + 1] || null,
    });

Special thanks to @smeijer for lots of guidance, ideas, and contributed code.

5.6.2

09 Sep 12:38
Compare
Choose a tag to compare
  • ES2015 refactor
  • fix bug in certain breakpoints layout breaks
  • remove jquery, remove, _ from dev dependencies used in the example app

Update to React v15.5.0

29 May 06:47
Compare
Choose a tag to compare
  • Fixes warnings for this component

5.4.0

28 May 12:28
Compare
Choose a tag to compare
  • Removes examples, tests, original source code, gulpfile and various *.swo files from the NPM package, reducing the size from 1.66 MB to 30.4 KB.

  • Demo app - Load more photos if you reach the end of the array while going through the lightbox

  • Demo app - Update page styles

5.2.0

06 Mar 16:16
Compare
Choose a tag to compare

Add feature that let's user define 'srcset' and 'sizes' attribute on each gallery image