Skip to content
This repository was archived by the owner on Feb 19, 2024. It is now read-only.

Releases: thiervoj/Slidemanager

v1.2.0

Choose a tag to compare

@thiervoj thiervoj released this 19 Feb 11:35

πŸ“£ 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 .index from 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

Choose a tag to compare

@thiervoj thiervoj released this 29 Oct 15:57

❗ BREAKING CHANGES

  • startAuto and stopAuto methods are now named start() and stop.

πŸ› BUG FIXES

  • Prevent start and stop from being called while an animation is not done.
  • Fixed a bug where the timer was not automatically stopped when goTo was 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

Choose a tag to compare

@thiervoj thiervoj released this 13 Nov 11:33

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

Choose a tag to compare

@thiervoj thiervoj released this 10 May 16:20

Breaking changes :

  • The class name has been changed from SlideManager to Slidemanager in order to be simpler.
  • callback function : renamed its parameter property new to current in order to prevent from using the protected keyword "new". Now the parameter can use destructuring (callback: ({ current, previous }) => {})
  • callback function : done function is now passed as a property in the callback parameter.

Other changes :

  • Uses microbundle to build package
  • Uses requestAnimationFrame for auto mode instead of setInterval

v0.4.8

Choose a tag to compare

@thiervoj thiervoj released this 08 Jul 12:38

v0.4.6

Choose a tag to compare

@thiervoj thiervoj released this 19 Dec 09:03

v0.4.2

Choose a tag to compare

@thiervoj thiervoj released this 03 Jul 14:58

Added

  • New next and prev functions to navigate easily πŸŒͺ
  • New mouseSwipe option to choose whether the mouse should be used to detect swipe or not πŸ–±

Changed

  • The element parameter is now an optional el property 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

Choose a tag to compare

@thiervoj thiervoj released this 16 Mar 20:54

Added

  • You need to go to a given index without any animations ? πŸ’¨

    • goTo() method has a new parameter skipAnims.
    • Set it to true to receive in your callback event a event.skipAnims value 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

Choose a tag to compare

@thiervoj thiervoj released this 24 Apr 08:50

New options:

  • random : (true / false) default is false
  • startAt : (number) the index from which to initialize the slider
  • hammer : (true / false) enables / disables the usage of hammerjs to detect swipe. Default is true

Published to npm πŸŽ‰

Choose a tag to compare

@thiervoj thiervoj released this 31 Jan 15:09
v0.0.5

0.0.5