Releases: Emiliano-Bucci/react-spring-carousel-js
Bug fix
Bug fix
Fix a minor bug related to customEvents.
v1.3.0
BREAKING CHANGES
This new version introduces an improvement that regard the custom event that the carousel emit. Previously we were using browser native events to emit custom events, and we were adding an event listener for every event; while this solution was working perfectly fine, it required to create multiple handlers and listeners. To improve the performances, reduce the amount of boilerplate from development experience to listen for a particular event and eliminate the need of create new listeners for every event, we changed the way in which events are dispatched and listened, implementing Observables through rxjs.
Check https://react-spring-carousel-js.emilianobucci.com/events to eventually update your implementation.
v1.2.1
This small release implements the disableGestures prop to programmatically disable the gesture feature.
Small improvements
This new minor release introduces a small improvement (that also fix some small bugs) related to the clean phase of the custom hook used to listen to the carousel events. This minor release also includes a small improvement regarding the use of the carousel context. Now you can use useSpringCarouselContext or useTransitionCarouselContext safetely (without having to manually import the react useContext hook) and throwing an error if those context is used outside the proper scope.
v1.1.28
- Attach and remove screenful listener on every side effect instead of the first mount of the carousel component.
- Improve the automatic resize of the carousel when after entering/exiting from fullscreen mode.
- Adjust
prepareThumbsDatamethod by removing the necessity to also pass therenderItemproperty as it isn't needed to render the thumbs.
v1.1.0
- Add possibility to show multiple items per slide through the
itemsPerSlideprop. - Add possitiblity - when
withLoop={true}- to define a starting position of the current active item through theinitialStartingPositionprop. - Add the possibility to set an initial active item through the
initialActiveItemprop. - Improve
slideTomethods logic. - Refactor event names removing the
RSCJSprefix. - Minor improvements.