Yt v0.19.0 Release Notes

Release Date: 2015-04-28 // about 9 years ago
  • ⬆️ How to upgrade

    If your code never calls partnered_channels.includes(:viewer_percentages) on a Yt::ContentOwner, then you are good to go.

    If it does, then be aware that viewer percentage is not eager-loaded anymore, so the call above is equivalent to partenered_channels. The reason is that viewer percentage requires a time-range, and using a default range of the last 3 months can generate more confusion than added value.

    🗄 Also if your code still uses the deprecated:

    • .viewer_percentages method, replace with .viewer_percentage.
    • ⚡️ policy.time_updated method, replace with policy.updated_at.
    • video.uploaded? method, replace with video.uploading?.

    • [REMOVAL] Remove .includes(:viewer_percentages) on content_owner.partnered_channels.

    • [REMOVAL] Remove deprecated viewer_percentages (use viewer_percentage instead)

    • ⚡️ [REMOVAL] Remove deprecated policy.time_updated (use updated_at instead)

    • 🚚 [REMOVAL] Remove deprecated video.uploaded? (use uploading? instead)