Skip to content

Releases: moubi/swipeable-react

React hooks rewrite 🎉

30 Apr 13:42
Compare
Choose a tag to compare

Thanks to @Yaxian 👏 Swipeable got a full rewrite using functional component and react hooks.

It means that consumer projects should have version of react >= 16.8.0

Older versions could be used as well. React dependency there is >= 15.5.0.

Remove dependencies and add contributing guides

28 Apr 06:51
Compare
Choose a tag to compare
  • react and react-dom were moved to devDependencies.
  • react goes to peerDependencies as min version of 15.0.0
  • CONTRIBUTING.md guide was added to help us organize our time
  • package-lock.json was removed by @ankitsilaich (we use yarn)
  • project logo was added as well

Replace prepublish

13 Apr 12:43
Compare
Choose a tag to compare

Use prepare and prepublishOnly scripts.

Minify build capabilities

11 Apr 21:07
Compare
Choose a tag to compare
  • yarn build will now minify the component in lib/index.js
  • yarn size - new script to output the gzip size of the components (1.4 kB)
  • small updates to the README

Bug fix

21 Mar 14:12
Compare
Choose a tag to compare
  • onSwipeRight prop will be called if it's present

v1.2.0

21 Mar 14:14
Compare
Choose a tag to compare
  • Example usage with functional component in the README.