From 4b04adb077641dd16274f4d32deca8a44cb86f4c Mon Sep 17 00:00:00 2001 From: Chris Emerson Date: Fri, 23 Feb 2024 08:02:01 +0000 Subject: [PATCH] Update to 0.12.2. Bump lightningcss version from 1.0.0-alpha51 to -alpha54 as there was a breaking change (extra enum variants). --- CHANGELOG.md | 4 ++++ Cargo.toml | 4 ++-- src/css.rs | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 59ab8ad..7a41616 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,10 @@ Possible log types: - `[fixed]` for any bug fixes. - `[security]` to invite users to upgrade in case of vulnerabilities. +### 0.12.2 + +- [changed] Bump version of lightningcss dependency to fix build failures. + ### 0.12.1 - [fixed] Fix a case where Err(TooNarrow) was returned unnecessarily. (thanks sftse) diff --git a/Cargo.toml b/Cargo.toml index 53b1519..405cecd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "html2text" -version = "0.12.1" +version = "0.12.2" authors = ["Chris Emerson "] description = "Render HTML as plain text." repository = "https://github.com/jugglerchris/rust-html2text/" @@ -20,7 +20,7 @@ tendril = "0.4" unicode-width = "0.1.5" backtrace = { version = "0.3", optional=true } thiserror = "1.0.50" -lightningcss = { version = "1.0.0-alpha.51", optional=true } +lightningcss = { version = "1.0.0-alpha.54", optional=true } # Keep dashmap back; 5.5 has a higher MSRV. dashmap = "~5.4" log = { version = "0.4.20", optional = true } diff --git a/src/css.rs b/src/css.rs index 063c0d9..51c2579 100644 --- a/src/css.rs +++ b/src/css.rs @@ -204,6 +204,8 @@ fn is_transparent(color: &CssColor) -> bool { CssColor::LAB(_) => false, CssColor::Predefined(_) => false, CssColor::Float(_) => false, + CssColor::LightDark(_, _) => false, + CssColor::System(_) => false, } }