Skip to content

Latest commit

 

History

History
134 lines (77 loc) · 2.77 KB

CHANGELOG.md

File metadata and controls

134 lines (77 loc) · 2.77 KB

nonempty-collections

0.2.9 (2024-08-26)

Added

  • NonEmptyIterator::group_by.
  • NVec::sort_by and NEVec::sort_by_key.
  • An impl of Extend for NEVec.

Fixed

  • NEVec::sort avoids a second internal sort.

0.2.8 (2024-08-19)

Added

  • Missing FromNonEmptyIterator for HashMap.

0.2.7 (2024-07-22)

Added

  • serde support for NEMap and NESet.

0.2.6 (2024-06-27)

Fixed

  • Ownership issues in nem! when using non-Copy types.

0.2.5 (2024-04-09)

Added

  • Implementation of NonEmptyIterator for fixed-sized stdlib Arrays.

0.2.4 (2024-04-04)

Added

  • Added NEVec::partition_point to match the function of the same name in std.

Fixed

  • Render feature-gated types on docs.rs.

0.2.3 (2024-03-19)

Fixed

  • More edge cases involving NEChunks.

0.2.2 (2024-03-18)

Fixed

  • IntoIterator for NEChunks yielding the wrong type.
  • NonEmptyIterator for NEChunks missing a cutoff condition.

0.2.1 (2024-03-15)

Added

  • The missing IntoIterator impl for NEChunks.
  • IntoIteratorExt for direct conversion from anything that implements IntoIterator. Thanks to Rinde van Lon.

Fixed

  • A bug involving repeated keys in NEMap and NEIndexedMap. Thanks to Rinde van Lon.

0.2.0 (2024-03-14)

Added

  • NEIndexMap, thanks to Rinde van Lon.
  • NonEmptyIterator::max_by_key and NonEmptyIterator::min_by_key, also thanks to Rinde.
  • NEVec::with_capacity
  • NEVec::nonempty_chunks and NESlice::nonempty_chunks

Changed

  • BREAKING: All len implementations and NonEmptyIterator::count have had their return type changed to NonZeroUsize.

0.1.5 (2024-01-12)

Added

  • NonEmptyIterator::reduce, which yields a concrete Self::Item instead of an Option.
  • IteratorExt::to_nonempty_iter for converting any given Iterator into a non-empty one (if possible).
  • The NEVec::dedup* series for removing duplicate items in-place.

Fixed

  • Account for potentially duplicated head value when converting into an NESet from other nonempty iterators.

0.1.4 (2023-11-02)

Added

  • FromNonEmptyIterator impls for NEMap and NESet.
  • Debug, Clone, PartialEq, and Eq for NEMap.

0.1.3 (2023-09-15)

Added

  • NESlice for when what you have on hand is already borrowed. Thanks again to Greg Shuflin.

0.1.2 (2023-09-05)

Added

  • A FromNonEmptyIterator instance for Result, meaning you can collect into a guaranteed Result<NEVec<...>, Error> (or other nonempty type). Thanks to Greg Shuflin.

0.1.1 (2023-04-08)

Added

  • Missing IntoNonEmptyIterator instances.
  • Missing Intoiterator instance for FlatMap.

Fixed

  • Incorrect IntoIterator for Take.