All notable changes to this project will be documented in this file.
This project adheres to Semantic Versioning.
- Fix several file paths in
package.jsonexportsfield.
- Remove props no longer supported by YouTube:
modestBranding. - Remove runtime type checking using
YouTube.propTypes.
- Allow React 19 in peer dependencies range.
- Use TypeScript for source code.
- Support React 19.
- Add docs for the
useYouTubehook. - Add props for
origin/hostsettings. - Pass-through
mutedto 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
useYouTubehook. - 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: falsein package.json. - Add
stylepass-through property to set CSS properties on the container element. (@Authchirion in #90) - Document that the
showInfoprop is deprecated.
- Add typescript definitions.
- Update demo URL.
- Change the build paths from
lib/rollup.jstodist/react-youtube.js, for consistency with other modules under theu-waveorg.