Releases: moubi/swipeable-react
Releases · moubi/swipeable-react
React hooks rewrite 🎉
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
reactandreact-domwere moved todevDependencies.reactgoes topeerDependenciesas min version of15.0.0CONTRIBUTING.mdguide was added to help us organize our timepackage-lock.jsonwas removed by @ankitsilaich (we use yarn)- project logo was added as well
Replace prepublish
Use prepare and prepublishOnly scripts.
Minify build capabilities
yarn buildwill now minify the component inlib/index.jsyarn size- new script to output the gzip size of the components (1.4 kB)- small updates to the README