Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3 Breaking Changes #172

Closed
igordanchenko opened this issue Jun 26, 2024 · 1 comment · Fixed by #175
Closed

v3 Breaking Changes #172

igordanchenko opened this issue Jun 26, 2024 · 1 comment · Fixed by #175
Labels
enhancement New feature or request released Implemented and released

Comments

@igordanchenko
Copy link
Owner

igordanchenko commented Jun 26, 2024

v3 Breaking Changes

Release 3.0 comes with a number of breaking changes. Please review the items applicable in your case.

Photo album component and CSS stylesheet

v3 provides 4 different components depending on the layout you intend to use. Each component comes with its own CSS stylesheet. CSS stylesheet is not optional!

Rows layout:

import { RowsPhotoAlbum } from "react-photo-album";
import "react-photo-album/rows.css";

Columns layout:

import { ColumnsPhotoAlbum } from "react-photo-album";
import "react-photo-album/columns.css";

Masonry layout:

import { MasonryPhotoAlbum } from "react-photo-album";
import "react-photo-album/masonry.css";

3-in-1:

If you use more than one layout in our app, you may opt for the aggregate component, which bundles all three layouts.

import PhotoAlbum from "react-photo-album";
import "react-photo-album/styles.css";

React version

React 18 is the minimum supported React version.

Node version

Node 18 is the minimum supported Node version.

ESM

The library is now ESM-only.

renderContainer

renderContainer is no longer supported. Use render.container instead.

renderRowContainer

renderRowContainer is no longer supported. Use render.track instead.

renderColumnContainer

renderColumnContainer is no longer supported. Use render.track instead.

renderPhoto

renderPhoto is no longer supported. Use render.image, render.wrapper, render.link, render.button or render.photo instead.

componentsProps.containerProps

componentsProps.containerProps is no longer supported. Use componentsProps.container instead.

componentsProps.rowContainerProps

componentsProps.rowContainerProps is no longer supported. Use componentsProps.track instead.

componentsProps.columnContainerProps

componentsProps.columnContainerProps is no longer supported. Use componentsProps.track instead.

componentsProps.imageProps

componentsProps.imageProps is no longer supported. Use componentsProps.image, componentsProps.wrapper, componentsProps.link or componentsProps.button instead.

Photo images prop

The deprecated images prop is no longer supported. Use srcSet instead.

@igordanchenko igordanchenko added the enhancement New feature or request label Jun 26, 2024
Repository owner locked and limited conversation to collaborators Jul 2, 2024
Repository owner deleted a comment from xucongli1989 Jul 19, 2024
Repository owner unlocked this conversation Jul 26, 2024
@igordanchenko igordanchenko mentioned this issue Jul 26, 2024
1 task
@igordanchenko igordanchenko pinned this issue Jul 26, 2024
Copy link

🎉 This issue has been resolved in version 3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot added the released Implemented and released label Jul 26, 2024
Repository owner locked and limited conversation to collaborators Jul 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request released Implemented and released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant