github imbhargav5/rooks rooks@7.0.0

latest releases: rooks@7.14.1, rooks@7.14.0, rooks@7.13.0...
2 years ago

Major Changes

  • ae9a465: useFullscreen hook rewrite
    • Before:

       const {
          element,
          exit,
          isEnabled: Boolean(document[fullscreenControls.fullscreenEnabled]),
          isFullscreen,
          //@deprecated
          onChange,
          //@deprecated
          onError,
          request,
          toggle,
        } = useFullscreen({
          onChange,
          onError,
          options,
       });
    • After

      const {
           isFullscreenAvailable,
           isFullscreenEnabled, 
           fullscreenElement, 
           enableFullscreen, 
           disableFullscreen, 
           toggleFullscreen
        } = useFullscreen({
          target?: HTMLElement, 
          onChange: () => {}, 
          onError: (error) => {}, 
          options : fullscreenoptions
       })

Patch Changes

  • b2003b8: bundle size decrease
  • 886a672: Make useKey target option support undefined

Don't miss a new rooks release

NewReleases is sending notifications on new releases.