What's Changed
Bug Fixes
-
Fix
autoplayprop not working (#265) βautoplaynow loads the iframe immediately on mount so YouTube'sautoplay=1parameter is actually respected. Previously the iframe only loaded on click, makingautoplaya no-op. Note: browsers requiremutedfor unmuted autoplay (browser autoplay policy). Thanks to @virasasan for the detailed report and reproduction case. -
Fix
paramsprop TypeScript type (#257) βparamsnow correctly accepts bothstringandRecord<string, string | number>as the documentation always stated. The TypeScript type was incorrectly narrowed tostringonly. Thanks to @SKOLZ for the report. -
Fix npm provenance attestation in release CI (#256) β The
publish-npmworkflow step was missingNODE_AUTH_TOKEN, causing CI publishes to fail silently and packages to be published manually (without provenance). Going forward all releases will include cryptographic provenance attestation verifiable vianpm audit signatures.
Contributors
Thank you to everyone who reported issues and helped improve this package:
- @virasasan β reported autoplay behavior (#265)
- @SKOLZ β reported params type mismatch (#257)
Full Changelog: v3.5.1...v3.6.0