Releases: xiaolin/react-image-gallery
Releases · xiaolin/react-image-gallery
v2.0.5
Full Changelog: v2.0.4...v2.0.5
v2.0.4
Full Changelog: v2.0.3...v2.0.4
Fixes thumbnail swiping and general swiping/transitions
thumbnail bar swiping is fixed
Bullet limits and resize observer fix
- Fixes issue with resize observer not repositioning thumbnail and bullets
- Adds
maxBulletsprop to support limiting bullet dispaly
v2.0.0 - TypeScript Rewrite
v2.0.0 - TypeScript Rewrite
TLDR
Complete rewrite from JavaScript to TypeScript with modernized architecture, zero-config CSS, and improved touch/swipe handling.
✨ New Features
- Zero-config CSS - Styles auto-inject on import, no separate CSS import needed
- CSS custom properties - Easy theming via
--ig-primary-color,--ig-thumbnail-size, etc. - TypeScript support - Full type definitions included out of the box
🔧 Improvements
- Complete TypeScript rewrite - Entire codebase migrated from JS/JSX to TS/TSX
- Hooks-based architecture - Refactored from class components to functional components with custom hooks
- Better swipe handling - Improved touch gestures and thumbnail swiping
- Smaller bundle - ~14KB gzipped (JS + CSS)
⚠️ Breaking Changes
- Requires React 16.0.0+
- Requires Node.js 18.18+
- Removed SCSS source files (CSS only now)
- Internal component structure changed (if you were importing internals)
📦 Migration
// Before (v1.x)
import ImageGallery from 'react-image-gallery';
import 'react-image-gallery/styles/css/image-gallery.css';
// After (v2.0) - CSS auto-injects!
import ImageGallery from 'react-image-gallery';React 19 and esm support
Release:
1.3.0
remove defaultprops from functional components
#730 removing defaultProps for upcoming deprecation
hotfix: v1.2.11 when thumbnails are disabled
Fixes issue when thumbnails are disabled #703
Fix thumbnail container resizing on react 18
Fixes thumbnail container resizing issue with react 18 render #674