Skip to content

v0.13.0

Compare
Choose a tag to compare
@uetchy uetchy released this 17 Oct 04:46
· 74 commits to master since this release

New

  • New action: AddMembershipMilestoneItemAction. Refer to duration for a precise membership duration
  • New action: ShowPollPanelAction.
  • Add timestampColor and authorNameTextColor to SuperChat
  • New util stringify to transform YTRun[], YTRunContainer and YTSimpleText into string
  • New util formatColor to format Color into CSS rgba() or HEX string
  • New util durationToISO8601 to format duration text into ISO8601 duration string
  • New util durationToSeconds to format duration text into integer seconds
  • New util tsToDate to format timestampUsec to Date
  • New util tsToNumber to format timestampUsec to number

Improvements

  • BREAKING: normalized all the raw interfaces:
    • AddBannerAction
    • AddMembershipItemAction
    • AddMembershipTickerAction
    • AddPlaceholderItemAction
    • AddSuperChatTickerAction
    • AddSuperStickerItemAction
    • AddSuperStickerTickerAction
    • AddViewerEngagementMessageAction
    • ClosePanelAction
    • ShowPanelAction
    • ShowTooltipAction
  • BREAKING: renamed ShowLiveChatActionPanelAction -> ShowPanelAction
  • BREAKING: renamed UpdateLiveChatPollAction -> UpdatePollAction
  • BREAKING: renamed CloseLiveChatActionPanelAction -> ClosePanelAction
  • DEPRECATED: AddChatItemAction.rawMessage -> AddChatItemAction.message
  • DEPRECATED: AddSuperChatItemAction.rawMessage -> AddSuperChatItemAction.message
  • DEPRECATED: props of AddSuperChatItemAction.superchat has been flattened into AddSuperChatItemAction
  • BREAKING: end event will provide a reason ('privated' | 'deleted' | 'disabled' | 'aborted' | null)
    • streamPool.on('end', (mc) => {}) -> streamPool.on('end', (reason, mc) => {})
  • BREAKING: instance will emits end instead of error in some special cases where the unrecoverable error code is either private or unavailable and it was not occurred during the first request (this usually happens when a streamer deletes or privates their live stream after the stream ends)
  • BREAKING: runsToPlainText will expand watchEndpoint when text is a fragment of URL
  • use Uint8Array instead of Buffer in protobuf lib (by @jprochazk)

Fixes

  • BREAKING: remove unknown type from MasterchatError
  • Deprecate Credentials.SESSION_ID in favor of Credentials.DELEGATED_SESSION_ID