diff --git a/CHANGELOG.md b/CHANGELOG.md index 629d2db..0e0cd45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,22 @@ # Changelog -# Next version (0.11.2) +## 0.12.0 + +### Breaking changes + +- Updated `enumset` from 0.3 to 0.4 + +### API updates + +- Add `Cursive::take_user_data`, replaces the current user data with `()`. + +### Improvements + +- `DebugConsole` now has horizontal scrolling enabled. +- `pancurses` backend now correctly recognizes the "Enter" key from the numpad + as "Enter". + +## 0.11.2 ### API updates diff --git a/Cargo.toml b/Cargo.toml index 9a85b35..5862cf2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,8 +19,8 @@ repository = "gyscos/Cursive" repository = "gyscos/Cursive" [dependencies] -enum-map = "0.5.0" -enumset = "0.3.17" +enum-map = "0.5" +enumset = "0.4" log = "0.4.6" owning_ref = "0.4.0" toml = "0.5.0" @@ -32,7 +32,7 @@ term_size = { version = "0.3.1", optional = true } crossbeam-channel = "0.3.8" lazy_static = "1.3.0" chrono = "0.4.6" -hashbrown = "0.2.1" +hashbrown = "0.3" cfg-if = "0.1.7" [dependencies.num] @@ -60,7 +60,7 @@ version = "0.16.1" [dependencies.pulldown-cmark] default-features = false optional = true -version = "0.4.1" +version = "0.5" [dependencies.termion] optional = true diff --git a/src/theme/style.rs b/src/theme/style.rs index b03ad5e..aaf22cf 100644 --- a/src/theme/style.rs +++ b/src/theme/style.rs @@ -62,7 +62,7 @@ impl Style { impl From for Style { fn from(effect: Effect) -> Self { Style { - effects: enum_set!(Effect, effect), + effects: enum_set!(effect), color: None, } } diff --git a/src/utils/markup/.mod.rs.rustfmt b/src/utils/markup/.mod.rs.rustfmt deleted file mode 100644 index a1843eb..0000000 --- a/src/utils/markup/.mod.rs.rustfmt +++ /dev/null @@ -1,89 +0,0 @@ -//! Parse various text markup formats. -//! -//! Each module is optional and relies on a feature. - -#[cfg(feature = "markdown")] -pub mod markdown; - -#[cfg(feature = "markdown")] -pub use self::markdown::MarkdownText; -use owning_ref::OwningHandle; -use owning_ref::StringRef; -use std::ops::Deref; -use theme::Style; - -use utils::span::{StSpannedString; - -/// A parsed string with markup style. -/// -/// Contains both the source string, and parsed information indicating the -/// style to apply. -pub type StyledString = SpannedString