Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add lite-mode options for thumbnail format and YouTube Player API access #248

Merged
merged 5 commits into from
Mar 10, 2024

Conversation

gfscott
Copy link
Owner

@gfscott gfscott commented Mar 10, 2024

Lite YouTube Embed was recently bumped to v0.3.2 with #244, and it added a few new options. This PR matches that dependency update and adds some options that align its functionality with the upstream package:

  1. Lite YouTube Embed recently improved its support for WebP images. You can now opt-in to WebP instead of the default JPG format by passing the thumbnailFormat: 'webp' option.
  2. The library also recently added support for a js-api parameter, which enables access to the YouTube IFrame Player API. You can enable this by passing the jsApi: true option.

@gfscott gfscott self-assigned this Mar 10, 2024
Copy link

changeset-bot bot commented Mar 10, 2024

🦋 Changeset detected

Latest commit: 5dd5a8e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
eleventy-plugin-youtube-embed Minor
eleventy-plugin-embed-everything Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

codecov bot commented Mar 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (0e29884) to head (5dd5a8e).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #248   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            7         7           
  Lines          168       177    +9     
=========================================
+ Hits           168       177    +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gfscott gfscott merged commit a40eae7 into main Mar 10, 2024
9 checks passed
@gfscott gfscott deleted the youtube-lite-0.3.2-options branch March 10, 2024 17:31
@github-actions github-actions bot mentioned this pull request Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant