Releases: pedropalau/react-bnb-gallery
Releases · pedropalau/react-bnb-gallery
react-bnb-gallery@2.2.0
Minor Changes
-
Prepare
2.2.0with styling and migration improvements while preserving 2.x compatibility:- Keep
backgroundColordeprecated, but restore it as a compatibility alias for overlay color in 2.x. - Add and document stable
gallery-*CSS hooks andis-*state classes. - Expand token-based theming guidance around the
--rbg-*contract. - Document a clearer 2.x -> 3.0.0 deprecation and migration path.
- Keep
react-bnb-gallery@2.1.5
Patch Changes
- ebea33c: Add support for
ReactNodevalues inGalleryPhoto.captionandGalleryPhoto.subcaption, so consumers can render rich caption content (for example links and styled metadata). Keep accessibility fallbacks safe by using text-only caption values for image alt/thumbnail labels when explicit alt fields are not provided.
react-bnb-gallery@2.1.4
Patch Changes
- 3465f6a: Fix Firefox click handling for the active gallery image by ensuring the active photo button consistently occupies the full photo area, restoring reliable
activePhotoPressedcallback behavior when clicking the image.
react-bnb-gallery@2.1.3
Patch Changes
- a048fa7: Add
GalleryPhoto.altandGalleryPhoto.thumbnailAltto support explicit accessible image text for main and thumbnail images. Keep backward-compatible fallback behavior (captionremains default; thumbnail falls back toaltthencaption).
react-bnb-gallery@2.1.2
Patch Changes
-
Fix
wrapboundary navigation semantics so:wrap={false}stops at the first/last photo.wrap={true}loops across boundaries as documented.
Also adds behavior tests for keyboard navigation at boundaries and control visibility in both wrap modes.
react-bnb-gallery@2.1.0
Minor Changes
-
6fd8b74: Prepare the
2.1.0release train with the post-2.0.0modernization work:- TypeScript migration finalized with strict typing and generated declarations.
- Runtime
propTypesandairbnb-prop-typesvalidation removed in favor of TS-only contracts. - React surface modernization completed via hooks-based internals while keeping the public API stable.
- Fixed thumbnail strip synchronization when opening the gallery at a non-zero
activePhotoIndex. - Docs and migration guidance updated for
2.1.xadoption.
react-bnb-gallery@2.0.0
Major Changes
-
bbbe07c: ## 2.0.0
Breaking changes
- React peer support is now
^18.0.0 || ^19.0.0. - React 17 and older are no longer supported.
What changed
- Modernized the library build and package exports with a Vite-based pipeline and dual ESM/CJS output.
- Hardened runtime behavior in the gallery and related utilities to address correctness issues found during modernization.
- Migrated tests to Vitest + Testing Library with behavior-focused coverage and CI gating.
- Modernized and unified docs/demo experience under a current Next.js app structure.
- Hardened release automation with Changesets-based versioning and npm provenance publishing.
Migration notes
- Upgrade your application to React 18+ before adopting
react-bnb-gallery@2.0.0. - Reinstall dependencies with
pnpmif your local setup still reflects legacy lockfile/package-manager state.
- React peer support is now
v1.4.4
Fix build issue
v1.4.3
Update dependencies
v1.2.6
Update dependencies and make some enhancements