Skip to content

v7.0.0

Compare
Choose a tag to compare
@streamich streamich released this 28 Mar 21:34
· 2501 commits to master since this release

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