Skip to content

v6

Compare
Choose a tag to compare
@Vestride Vestride released this 15 Feb 07:18
· 42 commits to main since this release

Breaking

  • Remove IE 11 from browsers list. If you need to support IE 11 (sorry), please use v5. Did you know Microsoft 365 apps and services stopped supporting IE 11 in August 2021?
  • Remove matches-selector package and use the native matches (see browser support).
  • Remove deprecated delimeter option (the misspelled one). Use the delimiter option instead.
  • Replace window resize event listener with ResizeObserver (#321). Browser support for it is very good, but if you want to support a browser that doesn't have it, you can manually add a window resize event and call update() within the event callback.
    • Removed throttleit dependency
    • Removed throttle option.
    • Removed throttleTime option.
  • Changed the method signature for update().
    -shuffle.update(true);
    +shuffle.update({ recalculateSizes: false });
  • Changed how data attribute are accessed. Previously, Shuffle used element.getAttribute('data-groups'). Now, it uses element.dataset.groups. dataset is very well supported now.

New features

  • Minified file size
    • Before: 20.8 kB
    • After: 16.9 kB
  • Added force option to update method to force shuffle to update even if it's disabled (#321).
    shuffle.update({ force: true });
    

Other