Yt v0.23.0 Release Notes
Release Date: 2015-05-18 // almost 9 years ago-
⬆️ How to upgrade
If your code expects reports to return results by day then you must add 0️⃣ the
by: :day
option to your report method. The new default isby: :range
. For instancechannel.views
would return{Wed, 8 May 2014 => 12.4, Thu, 9 May 2014 => 3.2, Fri, 10 May 2014 => …}
and now returns the same as calling
channel.views by: :range
:{total: 3450}
Additionally, if you expect reports by day then you must specify the
:since
option to your report method. Previously, this value was set to 0️⃣5.days.ago
, but now is required.:until
still defaults toDate.today
.0️⃣ Finally, if you expect reports for the entire range, notice that the default
:since
option is now set to the date when YouTube opened. Therefore calling a method likechannel.views
now returns the lifetime views of a channel.- 0️⃣ [ENHANCEMENT] Change default from
by: :day
toby: :range
. - [ENHANCEMENT] Require
:since
options for any report by day. - 0️⃣ [ENHANCEMENT] Change default range for reports by range to lifetime.
- 0️⃣ [ENHANCEMENT] Change default from