All Versions
10
Latest Version
Avg Release Cycle
37 days
Latest Release
1898 days ago
Changelog History
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 whendirection=row
(default). Photos per row are now determined by the new algorithm keeping in mind the user definedtargetRowHeight
. - ImageComponent renamed to
renderImage
targetRowHeight
. New prop. The algorithm will do its best to keep rows close to this heightlimitNodeSearch
. New prop. Limits the amount of neighboring nodes to check for the best row
- ๐ New algorithm being used which ignores
-
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- โฌ๏ธ upgrade to [email protected]
- ๐ fix #115
- ๐ fix #108
- ๐ fix #109
-
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) orrow
(default) based layout.
- โ Add feature to let user choose between