From 708c8cef184b6b2548ebfc8efdcf688e566b3877 Mon Sep 17 00:00:00 2001 From: Jonny Buchanan Date: Tue, 19 Mar 2024 02:26:58 +1000 Subject: [PATCH] Release v0.4.0 Added - Added a `thumbnail` prop, enabling use of the alternate screenshot thumbnails YouTube provides - Added a `cookie` flag prop to opt-in to using `www.youtube.com/embed` instead of `www.youtube-nocookie.com/embed` - Added JSDoc to props to improve editor DX Changed - The embed now uses `www.youtube-nocookie.com/embed` by default - The static embed thumbnail `` now uses `loading="lazy"` by default - The static embed now uses a black background, so there isn't a flash of gradient when the thumbnail `` lazy-loads - The static embed now uses `i.ytimg.com` instead of `img.youtube.com` for the thumbnail ``, as per the YouTube site and its API - The `modestbranding` embed parameter was deprecated by YouTube on August 15, 2023 and now has no effect - removed it from the `embedParams` defaults and marked it as deprecated - The `thumbnailRes` prop now also supports passing the `mq`/`hq`/`sd` abbreviations YouTube uses Fixed - Fixed overriding defaulted `