Skip to content

Releases: igordanchenko/react-photo-album

v2.0.2

14 Feb 20:17
9fa51d6
Compare
Choose a tag to compare

2.0.2 (2023-02-14)

Bug Fixes

  • pass cursor style to wrapperStyle (c3f5c8a)

v2.0.1

03 Feb 20:47
e5e73d1
Compare
Choose a tag to compare

2.0.1 (2023-02-03)

Bug Fixes

  • de-duplicate srcSet images (4f27d56)
  • optimize container width observer (e5e73d1)

v2.0.0

09 Dec 22:01
Compare
Choose a tag to compare

2.0.0 (2022-12-09)

Upgrading from v1?

Review the v2 Breaking Changes

Bug Fixes

  • add explicit root entrypoint to package exports map (7fc1930)
  • fix componentsProps.imageProps type (e8547d9)
  • make RenderContainerProps.containerRef required (88f65d0)
  • replace 'require' export with 'default' (d3ec23d)

Code Refactoring

Features

  • add loading="lazy" and decoding="async" image attributes (4e70cb5)
  • drop instrumentation (e2c6866)
  • improve client-side rendering (936af66)
  • improve onClick callback DX (8f5a15c)
  • overhaul package bundle (85b7514)
  • refactor TypeScript types (ac8f702)
  • remove deprecated ForwardRefExoticComponent option from renderContainer prop (b527cd4)
  • remove resizeObserverProvider prop (b3798ca)
  • render empty columns when there aren't enough photos (237d481)

Reverts

  • chore: remove assets from GitHub releases (7d11200)
  • fix: add explicit root entrypoint to package exports map (d055386)

BREAKING CHANGES

  • rename RowContainerProps type to RenderRowContainerProps
  • rename ColumnContainerProps type to RenderColumnContainerProps
  • delete ContainerProps type
  • rename PhotoProps type to RenderPhotoProps
  • instrumentation prop is no longer supported
  • remove defaultContainerWidth default value
  • PhotoAlbum renders empty markup in SSR if defaultContainerWidth is not defined
  • containerWidth parameter in the componentsProps functional supplier is now optional
  • layoutOptions prop is replaced with layout prop in custom renderContainer function
  • viewportWidth prop is no longer provided as part of the layoutOptions object
  • RenderContainer, ContainerProps and RenderContainerProps are no longer generic
  • columnConstraints prop is no longer supported
  • change onClick callback method signature
  • resizeObserverProvider is no longer supported
  • renderContainer prop no longer accepts React.forwardRef
  • rename ESM bundle from index.esm.js to index.mjs
  • rename CJS bundle from index.cjs.js to index.js
  • switch JSX runtime back to React.createElement

v2.0.0-rc.9

09 Dec 03:07
9fb6ffa
Compare
Choose a tag to compare
v2.0.0-rc.9 Pre-release
Pre-release

2.0.0-rc.9 (2022-12-09)

Bug Fixes

  • fix componentsProps.imageProps type (ddb3cb3)
  • make RenderContainerProps.containerRef required (784e091)

Code Refactoring

BREAKING CHANGES

  • rename RowContainerProps type to RenderRowContainerProps
  • rename ColumnContainerProps type to RenderColumnContainerProps

v2.0.0-rc.8

17 Nov 16:23
f161b9a
Compare
Choose a tag to compare
v2.0.0-rc.8 Pre-release
Pre-release

2.0.0-rc.8 (2022-11-17)

Features

  • refactor TypeScript types (36e882a)

BREAKING CHANGES

  • delete ContainerProps type
  • rename PhotoProps type to RenderPhotoProps

v2.0.0-rc.7

07 Nov 16:44
1db8873
Compare
Choose a tag to compare
v2.0.0-rc.7 Pre-release
Pre-release

2.0.0-rc.7 (2022-11-07)

Bug Fixes

  • replace 'require' export with 'default' (ad0dce4)

Reverts

  • fix: add explicit root entrypoint to package exports map (4ce4ee7)

v2.0.0-rc.6

01 Nov 23:19
ce4f448
Compare
Choose a tag to compare
v2.0.0-rc.6 Pre-release
Pre-release

2.0.0-rc.6 (2022-11-01)

Bug Fixes

  • add explicit root entrypoint to package exports map (ce4f448)

v2.0.0-rc.5

01 Nov 16:12
00a49bf
Compare
Choose a tag to compare
v2.0.0-rc.5 Pre-release
Pre-release

2.0.0-rc.5 (2022-11-01)

Features

BREAKING CHANGES

  • instrumentation prop is no longer supported

v2.0.0-rc.4

01 Nov 15:57
27bef74
Compare
Choose a tag to compare
v2.0.0-rc.4 Pre-release
Pre-release

2.0.0-rc.4 (2022-11-01)

Features

  • improve client-side rendering (58258a0)

BREAKING CHANGES

  • remove defaultContainerWidth default value
  • PhotoAlbum renders empty markup in SSR if the defaultContainerWidth is not defined
  • containerWidth parameter in the componentsProps functional supplier is now optional
  • layoutOptions prop is replaced with layout prop in custom renderContainer function
  • viewportWidth prop is no longer provided as part of the layoutOptions object
  • RenderContainer, ContainerProps and RenderContainerProps are no longer generic

v2.0.0-rc.3

28 Oct 14:06
c5d720e
Compare
Choose a tag to compare
v2.0.0-rc.3 Pre-release
Pre-release

2.0.0-rc.3 (2022-10-28)

Features

  • render empty columns when there aren't enough photos (0cc747e)

BREAKING CHANGES

  • columnConstraints prop is no longer supported