v5.2.2
Jest
Moved to jest for testing #278
TypeScript definitions #287
Fixes
- Fix bad default parameters for
enable
,update
, andgetSize
. - Fix missing
Css
export onShuffle.ShuffleItem.Css
. - Fix
Shuffle.ALL_ITEMS
andShuffle.FILTER_ATTRIBUTE_KEY
not being overridable.
New
- Add types for
.sort()
method's options:SortOptions
. - Add types for
.filter()
's function signature. - Add types for
ShuffleItem.Css
.
Tests
- Add test
ts
file. - Run
tsc
on test file during tests.
Breaking for TypeScript users:
- Changed all
Element
toHTMLElement
. Shuffle.ShuffleOptions
is now exported top-level.import Shuffle, { ShuffleOptions, SortOptions } from 'shufflejs';
Full changes: v5.2.1...v5.2.2