X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;ds=sidebyside;f=RELEASES.md;h=6c4bebad92d0b5cf3d2b3266ca9db3b4ca2b76d8;hb=a430550cd6a3c9b1ef636d37f75dede7616f5b62;hp=145492326d49b2adc4c1d1eb16c43bd96943e79a;hpb=428a3cfc43dc077a8919d39e15b413c9d097a23a;p=enumset.git diff --git a/RELEASES.md b/RELEASES.md index 1454923..6c4beba 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,12 +1,38 @@ -# Version 1.0.0 (2020-04-01) - Unreleased +# Version 1.0.2 (2021-01-25) +* Fixed critical error compiling on newer versions of `syn` caused by a + mistaken import from a private module. + +# Version 1.0.1 (2020-08-09) +* Implemented `ExactSizeIterator` for `EnumSetIter`. + +# Version 1.0.0 (2020-04-06) + +## Breaking Changes * **[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. +* Renamed `to_bits`/`from_bits` to `as_u128`/`from_u128`. * `EnumSet::bit_width` and `EnumSet::variant_count` now return a `u32` instead of a `u8` for future-proofing. +* Removed `nightly` feature flag, as it is no longer required. + +## New features +* Added a series of functions like `as_u128`/`from_u128` for other unsigned + numeric types. (e.g. `as_u8`/`from_u8`, `as_u16`/`from_u16`, etc) +* Added variants of `as_u128`/`from_u128` that return an `Option` instead of + panicking when the conversion cannot be done. +* Added variants of `as_u128`/`from_u128` that truncate unknown bits instead + of panicking. +* Implemented `Extend>` and `FromIterator>` for + `EnumSet`. +* Added an `#[enumset(crate_name = "renamed_enumset")]` annotation for + handling renamed crates. + +## Bugfixes +* Fixed a bug where the procedural macro would fail on enums with a repr + annotation set. While reprs larger than u8 are supported, negative enum + variants or enum variants above 127 are still not currently supported. # Version 0.4.5 (2020-02-19) * Fixed a bug where compilation failed when the `serde` flag was enabled, and