Skip to content

v1.0.0

Compare
Choose a tag to compare
@TahaSh TahaSh released this 14 Dec 08:29
· 10 commits to main since this release

I’m excited to announce that v1.0.0 is a complete rewrite of Swapy, with lots of new features, performance improvements, and bug fixes.

What's New:

  • New Full Docs – Check out the new, detailed documentation to learn everything you need about Swapy.
  • Minor API Tweaks – Some event objects have been updated for better consistency and clarity. Check out the events section to learn about them.
  • Zero Dependencies – Swapy is now fully written in pure JS with no external dependencies (without Veloxi).
  • New Config Options – Added dragOnHold, dragAxis, and enabled to give you more control over your setup.
  • Non-Draggable Areas – You can now specify areas in your items that are not draggable. Check out no-drag attribute.
  • Dynamic Updates – Use the new update method to refresh your Swapy instance dynamically as the DOM changes.
  • Swap Control – Now you can easily enable or disable swaps dynamically with onBeforeSwap.
  • Custom Drag Styling – Customize your drag item styles using the new [data-swapy-dragging] CSS selector.
  • Easier Framework Integration – New utility functions to seamlessly integrate with frameworks and dynamically add/remove items.
  • Dual Licensing – I’ve switched to a dual license model: GPLv3 and Commercial. Read more about the licensing.

I hope you find these updates useful! As always, feel free to reach out with feedback or questions.