Skip to content

Releases: jonahallibone/react-tilty

3.0.0

03 Feb 22:12
Compare
Choose a tag to compare

What's Changed

  • Added typescript typing by @au5ton in #14
  • TypeScript Conversion by @csandman in #20
    • Convert the entire project to TypeScript using the types from #14 as a base
      • Fix all issues that came up, especially when using the strict TS config
      • Switch to isomorphic layout config to prevent SSR warnings about useLayoutEffect
    • Update eslint config to match current preferences (and include TypeScript rules)
    • Remove the example project as it was not working properly
    • Add CodeSandbox CI for testing pull requests
    • Update all packages

New Contributors

Full Changelog: 2.0.1...v3.0.0

v2.0.1

19 Nov 19:24
Compare
Choose a tag to compare

Switched to hooks and native React event listeners.

Breaking changes

  • Now has a peer dependency of >[email protected] due to the internal use of hooks.
  • All settings props are now set as base props of the component, no longer using a settings object prop or data- props.
  • Remove unused transition and glare-prerender props.
  • The max-glare setting has been changed to the camel cased maxGlare base prop.

New Features

  • There is now a glareStyle prop to add custom styles to the glare on tilt. These will be overwritten by the native styles that are required for the component to function.
  • There are 3 new event callbacks that can be added to the component, onMouseEnter, onMouseMove, and onMouseLeave.
  • The callback for the custom tiltChange event can now be added as a prop onTiltChange instead of manually adding an event listener.