All Versions
10
Latest Version
Avg Release Cycle
37 days
Latest Release
1759 days ago

Changelog History

  • v8.0.0 Changes

    July 01, 2019
    • Gallery uses React.memo
    • ๐Ÿ‘‰ Use hooks
    • โšก๏ธ Update examples
    • โšก๏ธ Update tests
    • โฌ†๏ธ Bump default limitNodeSearch to 2
    • ๐Ÿ”„ Change the way renderImage works. You now need to pass in your own key. The component is no longer wrapped in a div with a key.

    Possible breaking changes

    • โš  if your are using a custom component (renderImage prop), you may get a warning about keys. It could also stop interacting correctly with other libraries that use an HOC.
    • โšก๏ธ the Gallery uses React.memo. That means it does a shallow update of props. If you are mutating your photos array directly, it will no longer trigger a change. You will need to make sure your prop values are immutable if you want them to trigger Gallery updates.
  • v7.0.0 Changes

    April 20, 2019

    ๐Ÿ’ฅ Breaking Changes

    • ๐Ÿ†• New algorithm being used which ignores columns prop when direction=row (default). Photos per row are now determined by the new algorithm keeping in mind the user defined targetRowHeight.
    • ImageComponent renamed to renderImage
    • targetRowHeight. New prop. The algorithm will do its best to keep rows close to this height
    • limitNodeSearch. New prop. Limits the amount of neighboring nodes to check for the best row
  • v6.3.2 Changes

    April 20, 2019
    • โž• Add Typescript def file thanks to @vadistic
  • v6.3.0 Changes

    December 31, 2018
    • pr #124 - columns prop can be a function that returns width of Gallery
    • โฌ†๏ธ upgrade to Babel 7
  • v6.2.2 Changes

    November 23, 2018
  • v6.2.1 Changes

    September 05, 2018
    • ๐Ÿ›  fix unnecessary rendering by only calling observer callback if the width has changed
    • return render early when no container width to save on calculations (because no container width on first render)
  • v6.2.0 Changes

    August 14, 2018
    • 0๏ธโƒฃ Makes columns prop optional and provide default columns at breakpoints based on Gallery's size
  • v6.1.6 Changes

    August 13, 2018
    • ๐Ÿ‘ Allow columns property number to be less than photos.length
  • v6.1.3 Changes

    August 11, 2018
    • โž• Address issue #103. Do not stretch images across last rows when photos left is less than column number
    • โž• Add type restriction to columns so that it cannot be greater than the length of photos
  • v6.1.0 Changes

    August 02, 2018
    • โž• Add feature to let user choose between column (masonry) or row (default) based layout.