7.0.0 (2019-03-28)
Bug Fixes
- ๐ fix TypeScript build errors (5c95f28)
- ๐ make sure all paths in usePageLeave return (6655092)
- ๐ track "over" state better in useDrop hook (acc355c)
Features
- ๐ธ add clear() to useList, use fn for state updates (b20cf7c)
- ๐ธ add createRenderProp function for creating render-props (f4fd748)
- ๐ธ add useDrop hook (6e415cf)
- ๐ธ add useDropArea hook (676d0de)
- ๐ธ add useEvent hook (2a13cfb)
- ๐ธ add useKey hook (299fd86)
- ๐ธ add useKeyboardJs hook (3516aa6)
- ๐ธ add usePageLeave hook (33ac91b)
- ๐ธ add useThrottleFn hook that throttles function (0ccdf95)
- ๐ธ improve useFullscreen hook (7c38165)
- ๐ธ keep keyboard events in useKeyPress hook (00fecab)
- ๐ธ refactor useKeyPressEvent hook (c0658f6)
- ๐ธ return events from useKeyboardJs hook (aa277b8)
- ๐ธ simplify and improve useThrottle hook (452e8d9)
- ๐ธ useKeyPress hook now uses useKey, KeyboardJS removed (727743b)
BREAKING CHANGES
- ๐งจ useKeyPressEvent hook modified for dependency injection and providing
event objects to user - ๐งจ KeyboardJS now available anymore in useKeyPress hook, instead it will be
a separate useKeyPressKJ hook. - ๐งจ useThrottle is now a completely different hook