Skip to content

Releases: igordanchenko/react-photo-album

v3.0.2

21 Aug 22:35
b3bf06d
Compare
Choose a tag to compare

3.0.2 (2024-08-21)

Bug Fixes

v3.0.1

05 Aug 19:28
3b35b74
Compare
Choose a tag to compare

3.0.1 (2024-08-05)

Bug Fixes

  • infinite-scroll: add onClick callback (3b35b74)

v3.0.0

26 Jul 14:13
Compare
Choose a tag to compare

3.0.0 (2024-07-26)

Release 3.0 comes with several new exciting features and an internal redesign to reduce the JS bundle size:

  • Replacement of CSS-in-JS styling with an external CSS stylesheet
  • Splitting the all-in-one PhotoAlbum component into three layout-specific components (the bundle is now tree-shakeable)
  • Experimental SSR component (zero-CLS SSR)
  • Experimental InfiniteScroll component (rows and masonry layouts)
  • Experimental ServerPhotoAlbum server component (zero client-side JS bundle)

Here is the overall impact on the JS bundle size (minified gzip):

  • rows layout: 2.9 KB (38% decrease)
  • columns layout: 2.9 KB (39% decrease)
  • masonry layout: 2.3 KB (51% decrease)
  • 3-in-1: 3.8 KB (19% decrease)

BREAKING CHANGES

  • CSS stylesheet is required
  • PhotoAlbum component is replaced with 4 separate components
  • the library is now ESM-only
  • CJS build is no longer bundled
  • React 16 and React 17 are no longer supported
  • minimum Node version is set to Node 18
  • output target is set to ES2020
  • renderContainer is replaced with render.container render function
  • renderRowContainer is replaced with render.track render function
  • renderColumnContainer is replaced with render.track render function
  • renderPhoto is replaced with more granular render functions; see docs
  • componentsProps.containerProps is replaced with componentsProps.container
  • componentsProps.rowContainerProps is replaced with componentsProps.track
  • componentsProps.columnContainerProps is replaced with componentsProps.track
  • componentsProps.imageProps is replaced with more granular props; see docs
  • images photo prop is no longer supported

Features

  • add experimental InfiniteScroll component (fb2a048)
  • add experimental ServerPhotoAlbum component (b5cabe4)
  • add experimental SSR component (61b8a42)
  • add SSR fallback skeleton (475f2fb)
  • enhance SSR component styling options (4398aad)
  • forward photo album ref (00edf7c)
  • improve types usability (f200a6c)
  • offload offscreen photos in InfiniteScroll (eb3dd0d)

Bug Fixes

  • add client boundary to aggregate layout (34a24c9)
  • fix minPhotos edge case (7a04f02)
  • move SSR component to subpath export (a1b0c28)
  • set container box-sizing to border-box (b2aebf4)

Miscellaneous

  • feat!: v3 rewrite (b67e436)
  • chore!: bump output target to ES2020 (9df797b)
  • chore!: bump React peer dependency version to 18 (86ed361)
  • chore!: convert to ESM (f1bc7a4)
  • chore!: drop deprecated photo images prop (644e2f9)

v3.0.0-rc.7

25 Jul 19:14
b4af314
Compare
Choose a tag to compare
v3.0.0-rc.7 Pre-release
Pre-release

3.0.0-rc.7 (2024-07-25)

Features

  • improve types usability (b4af314)

v3.0.0-rc.6

03 Jul 22:33
a971cf6
Compare
Choose a tag to compare
v3.0.0-rc.6 Pre-release
Pre-release

3.0.0-rc.6 (2024-07-03)

Bug Fixes

  • set container box-sizing to border-box (15494e0)

Features

  • forward photo album ref (076293e)
  • offload offscreen photos in InfiniteScroll (bfb0775)

v3.0.0-rc.5

02 Jul 00:49
a3e99f2
Compare
Choose a tag to compare
v3.0.0-rc.5 Pre-release
Pre-release

3.0.0-rc.5 (2024-07-02)

Features

  • add experimental ServerPhotoAlbum component (a668225)
  • enhance SSR component styling options (a3e99f2)

v3.0.0-rc.4

30 Jun 17:23
5a279be
Compare
Choose a tag to compare
v3.0.0-rc.4 Pre-release
Pre-release

3.0.0-rc.4 (2024-06-30)

Features

  • add experimental InfiniteScroll component (74c99cf)

v3.0.0-rc.3

27 Jun 21:29
bd4ba39
Compare
Choose a tag to compare
v3.0.0-rc.3 Pre-release
Pre-release

3.0.0-rc.3 (2024-06-27)

Bug Fixes

  • move SSR component to subpath export (bd4ba39)

v3.0.0-rc.2

27 Jun 20:32
fbd8819
Compare
Choose a tag to compare
v3.0.0-rc.2 Pre-release
Pre-release

3.0.0-rc.2 (2024-06-27)

Bug Fixes

  • add client boundary to aggregate layout (eba5afb)
  • fix minPhotos edge case (2bce4de)

Features

  • add experimental SSR component (fbd8819)
  • add SSR fallback skeleton (0ea7a26)

v3.0.0-rc.1

26 Jun 12:33
3a155b9
Compare
Choose a tag to compare
v3.0.0-rc.1 Pre-release
Pre-release

3.0.0-rc.1 (2024-06-26)

  • chore!: bump output target to ES2020 (27b9cd7)
  • chore!: bump React peer dependency version to 18 (5f165c7)
  • chore!: convert to ESM (1ea484e)
  • chore!: drop deprecated photo images prop (fb68f23)
  • feat!: v3 rewrite (3a155b9)

BREAKING CHANGES

  • CSS stylesheet is required
  • PhotoAlbum component is replaced with 4 separate components
  • renderContainer is replaced with render.container render function
  • renderRowContainer is replaced with render.track render function
  • renderColumnContainer is replaced with render.track render function
  • renderPhoto is replaced with more granular render functions; see docs
  • componentsProps.containerProps is replaced with componentsProps.container
  • componentsProps.rowContainerProps is replaced with componentsProps.track
  • componentsProps.columnContainerProps is replaced with componentsProps.track
  • componentsProps.imageProps is replaced with more granular props; see docs
  • the library is now ESM-only
  • CJS build is no longer bundled
  • React 16 and React 17 are no longer supported
  • output target is set to ES2020
  • minimum Node version is set to Node 18
  • images photo prop is no longer supported