diff --git a/CHANGELOG.md b/CHANGELOG.md index d09ba71..6a0a7a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,13 @@ ## [Unreleased] - ReleaseDate -[Commits](https://github.com/twitch-rs/twitch_types/compare/v0.4.7...Unreleased) +[Commits](https://github.com/twitch-rs/twitch_types/compare/v0.4.8...Unreleased) +## [v0.4.8] - 2024-11-21 + +[Commits](https://github.com/twitch-rs/twitch_types/compare/v0.4.7...v0.4.8) + +- Added `ContentClassificationId::DebatedSocialIssuesAndPolitics` - Changed `ResubscriptionEmote` to `EmoteOccurrence` - Deprecated `ResubscriptionEmote` (alias to `EmoteOccurrence`) diff --git a/Cargo.lock b/Cargo.lock index 824c7d9..d6413df 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -463,7 +463,7 @@ dependencies = [ [[package]] name = "twitch_types" -version = "0.4.7" +version = "0.4.8" dependencies = [ "arbitrary", "serde", diff --git a/Cargo.toml b/Cargo.toml index 3f93fe7..96b9340 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "twitch_types" -version = "0.4.7" +version = "0.4.8" edition = "2021" repository = "https://github.com/twitch-rs/twitch_types" license = "MIT OR Apache-2.0" diff --git a/README.md b/README.md index 1e91411..75f2308 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Twitch Types | Rust library for common types used in Twitch -[![github]](https://github.com/twitch-rs/twitch_types) [![crates-io]](https://crates.io/crates/twitch_types) [![docs-rs-big]](https://docs.rs/twitch_types/0.4.7/twitch_types) +[![github]](https://github.com/twitch-rs/twitch_types) [![crates-io]](https://crates.io/crates/twitch_types) [![docs-rs-big]](https://docs.rs/twitch_types/0.4.8/twitch_types) [github]: https://img.shields.io/badge/github-twitch--rs/twitch__types-8da0cb?style=for-the-badge&labelColor=555555&logo=github [crates-io]: https://img.shields.io/crates/v/twitch_types.svg?style=for-the-badge&color=fc8d62&logo=rust diff --git a/src/stream.rs b/src/stream.rs index b96d5c4..a97cd13 100644 --- a/src/stream.rs +++ b/src/stream.rs @@ -348,6 +348,10 @@ impl core::fmt::Display for CommercialLengthParseError { #[cfg_attr(feature = "serde", derive(serde_derive::Deserialize))] #[cfg_attr(feature = "serde", serde(field_identifier))] pub enum ContentClassificationId { + /// Politics and Sensitive Social Issues + /// + /// Discussions or debates about politics or sensitive social issues such as elections, civic integrity, military conflict, and civil rights in a polarizing manner. + DebatedSocialIssuesAndPolitics, /// Drugs, Intoxication, or Excessive Tobacco Use /// /// Excessive tobacco glorification or promotion, any marijuana consumption/use, legal drug and alcohol induced intoxication, discussions of illegal drugs. @@ -381,6 +385,9 @@ impl Serialize for ContentClassificationId { fn serialize(&self, serializer: S) -> Result where S: serde::Serializer { serializer.serialize_str(match self { + ContentClassificationId::DebatedSocialIssuesAndPolitics => { + "DebatedSocialIssuesAndPolitics" + } ContentClassificationId::DrugsIntoxication => "DrugsIntoxication", ContentClassificationId::SexualThemes => "SexualThemes", ContentClassificationId::ViolentGraphic => "ViolentGraphic",