X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=RELEASES.md;h=145492326d49b2adc4c1d1eb16c43bd96943e79a;hb=428a3cfc43dc077a8919d39e15b413c9d097a23a;hp=723636f7e9e6b0be65db74245fb49bbdb3ae234d;hpb=b74eeea5f512c522f4606cfa883436ac19e187eb;p=enumset.git diff --git a/RELEASES.md b/RELEASES.md index 723636f..1454923 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,3 +1,45 @@ +# Version 1.0.0 (2020-04-01) - Unreleased +* **[WARNING: Potential silent breaking change]** Changed `EnumSet::insert` to + return whether a value was newly inserted, rather than whether the value + already existed in the set. This corresponds better with the behavior of + `HashSet::insert` and `BTreeSet::insert`. +* Renamed `to_bits`/`from_bits` to `to_u128`/`from_u128` and added additional + methods for other built-in numeric types. +* `EnumSet::bit_width` and `EnumSet::variant_count` now return a `u32` instead + of a `u8` for future-proofing. + +# Version 0.4.5 (2020-02-19) +* Fixed a bug where compilation failed when the `serde` flag was enabled, and + another trait that defined `serialize` or `deserialize` was in scope. + +# Version 0.4.4 (2019-10-12) +* Fixed a bug where `#[enumset(serialize_as_list)]` did not work when `Result` + is shadowed. + +# Version 0.4.3 (2019-10-08) +* Implemented `Extend` and `FromIterator` for `EnumSet`. + +# Version 0.4.2 (2019-09-28) +* Fixed a bug preventing empty enums and enums with one value from compiling. + +# Version 0.4.1 (2019-09-27) +* Fixed bug in `EnumSetIter::size_hint`. + +# Version 0.4.0 (2019-05-06) +* Removed outdated macros and attributes. +* All attributes for the custom derive are now written as `#[enumset(...)]` +* Implemented `#[enumset(serialize_deny_unknown)]` +* Implemented `#[enumset(serialize_repr="...")]` +* `#[derive(EnumSetType)]` now only implements `Copy`, `Clone`, `PartialEq` and + `Eq` automatically. + +# Version 0.3.19 (2019-05-02) +* Fix a bug when deserializing enums containing invalid bits set. + +# Version 0.3.18 (2019-03-11) +* Fix an off-by-one error causing enums with 9, 17, 33, etc variants to behave + unexpectedly. + # Version 0.3.17 (2019-03-11) * Add an `#[enumset_serialize_as_list]` attribute to cause the `Deserialize` and `Serialize` implementations for `EnumSet` to serialize it as a seq @@ -16,8 +58,8 @@ EnumSetTypes. * Fixed a major issue that would have prevented `enumset` from being used in `#[no_std]` crates. -* Minimum required version is now 1.30.0+. There should be no more need to bump - the minimum Rust version in the forseeable future. +* Minimum required version is now 1.30.0+. There should be no more need to + bump the minimum Rust version in the forseeable future. # Prior versions