Skip to content

6.0.0

Compare
Choose a tag to compare
@neptunian neptunian released this 12 Sep 11:46
· 247 commits to master since this release

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.