This repository was archived by the owner on Feb 19, 2024. It is now read-only.
Repository navigation
Releases: thiervoj/Slidemanager
Releases Β· thiervoj/Slidemanager
Release list
v1.2.0
π£ ANNOUNCEMENT
This is the last modification that will be made on this repo.
Slidemanager will now be archived β°οΈ
ποΈ CHANGELOG
β BREAKING
getIndex()method has been removed. Use.indexfrom now on.
π§ CHORES
- Switch from microbundle to Vite which makes the repo lighter by having less files and less folders.
- Use private class methods and properties.
- Added a dev page to test.
Full Changelog: 1.1.0...v1.2.0
v1.1.0
β BREAKING CHANGES
startAutoandstopAutomethods are now namedstart()andstop.
π BUG FIXES
- Prevent
startandstopfrom being called while an animation is notdone. - Fixed a bug where the timer was not automatically stopped when
goTowas called.
π SECURITY
- Updated dev dependencies for security purposes (eslint 8.1.0 and microbundle 0.14.1).
π DOCS
- Added JSDoc.
Full Changelog: 1.0.1...1.1.0
v1.0.1 - Security update
Fixes
- Fixed wrong direction when slider has only 2 elements.
Security
- Updated dev dependencies after dependabot security warning (microbundle)
v1.0.0 - Building with Microbundle
Breaking changes :
- The class name has been changed from
SlideManagertoSlidemanagerin order to be simpler. callbackfunction : renamed its parameter propertynewtocurrentin order to prevent from using the protected keyword "new". Now the parameter can use destructuring (callback: ({ current, previous }) => {})callbackfunction :donefunction is now passed as a property in the callback parameter.
Other changes :
- Uses
microbundleto build package - Uses
requestAnimationFrameforautomode instead ofsetInterval
v0.4.8
v0.4.6
v0.4.2
Added
- New
nextandprevfunctions to navigate easily πͺ - New
mouseSwipeoption to choose whether the mouse should be used to detectswipeor not π±
Changed
- The
elementparameter is now an optionalelproperty in the options object
Fixed
- The direction of the vertical swipe was inverted π
- Auto was not working well π¬
v0.3.5 β It's all good in the hood
Added
-
You need to go to a given index without any animations ? π¨
goTo()method has a new parameterskipAnims.- Set it to true to receive in your
callbackevent aevent.skipAnimsvalue to true.
Fixed
-
The
destroy()function is now working πͺ -
The direction is now correct when going from first to last elem and vice-versa π₯
Options added
New options:
random: (true/false) default isfalsestartAt: (number) the index from which to initialize the sliderhammer: (true/false) enables / disables the usage ofhammerjsto detect swipe. Default istrue