From 545f4ad8f3777faefa20e9f6ec6f19129637b517 Mon Sep 17 00:00:00 2001 From: Nerixyz Date: Thu, 21 Nov 2024 19:08:25 +0100 Subject: [PATCH 1/2] chore: add `DebatedSocialIssuesAndPolitics` CCL --- CHANGELOG.md | 1 + src/stream.rs | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index d09ba71..dc31b05 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ [Commits](https://github.com/twitch-rs/twitch_types/compare/v0.4.7...Unreleased) +- Added `ContentClassificationId::DebatedSocialIssuesAndPolitics` - Changed `ResubscriptionEmote` to `EmoteOccurrence` - Deprecated `ResubscriptionEmote` (alias to `EmoteOccurrence`) 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", From 9307755db6d6e3621c7914fb1af13ed8687319eb Mon Sep 17 00:00:00 2001 From: Nerixyz Date: Thu, 21 Nov 2024 19:25:07 +0100 Subject: [PATCH 2/2] release twitch_types 0.4.8 --- CHANGELOG.md | 6 +++++- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 2 +- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dc31b05..6a0a7a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,11 @@ ## [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` 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