v6
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 nativematches
(see browser support). - Remove deprecated
delimeter
option (the misspelled one). Use thedelimiter
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 callupdate()
within the event callback.- Removed
throttleit
dependency - Removed
throttle
option. - Removed
throttleTime
option.
- Removed
- 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 useselement.dataset.groups
.dataset
is very well supported now.
New features
- Minified file size
- Before: 20.8 kB
- After: 16.9 kB
- Added
force
option toupdate
method to force shuffle to update even if it's disabled (#321).shuffle.update({ force: true });
Other
- Convert demos to ES6 classes.
- Move browsers list to
.browserslistrc
. - Add prettier
- Add BMC button.
- Remove polyfill.io links -- they add nothing with current versions of Chrome and others.
- Run sass division migration
- Remove dist files from git
- Recreate demos to codepen. Collection.