All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.
- Add docs for the
useYouTube
hook. - Add props for
origin
/host
settings. - Pass-through
muted
to the player initially, so<YouTube autoplay muted />
works as expected.
- Fix unmount order.
- Start player synchronously if the SDK is already loaded.
- Expose all functionality as a
useYouTube
hook. - Remove props no longer supported by YouTube:
showInfo
,suggestedQuality
.
- Improve typings.
- Remove duplicate
defaultProps
.
- Use hooks internally.
- Drop support for React 16. This version requires React 17 or 18.
- Target evergreen browsers. If you need to support older browsers, you need to transpile this dependency.
- Fix a warning about workspaces when installing with yarn.
- Allow React 18 in peerDependency range.
- Test with React 16, 17, and 18 on CI.
- Allow React 17 in peerDependency range.
- Test with React 16 and React 17 on CI.
- Set
sideEffects: false
in package.json. - Add
style
pass-through property to set CSS properties on the container element. (@Authchirion in #90) - Document that the
showInfo
prop is deprecated.
- Add typescript definitions.
- Update demo URL.
- Change the build paths from
lib/rollup.js
todist/react-youtube.js
, for consistency with other modules under theu-wave
org.