Skip to content

Releases: simc/dartx

v0.4.0

03 May 18:08
Compare
Choose a tag to compare

Iterable

  • PR-41 New Iterable<T>.containsAny(Iterable<T>) extension
  • PR-46 New Iterable<num>.median() extension
  • PR-53 New Iterable<T>.asStream() extension converts any Iterable to a Stream
  • PR-59 New Iterable<T>.cached extension creates a cached Iterable preventing lazy operators such as .map to execute again
  • PR-56 Make Iterable<Iterable<T>>.flatten() typesafe and return Iterable<T> instead of Iterable<dynamic>
  • PR-62 New Iterable<T>.chunkWhile(bool Function(T, T) predicate): Iterable<List<E>> extension splits a collection into a lazy Iterables of chunks, where chunks are created as long as predicate is true for a pair of entries.
  • PR-62 New Iterable<T>.splitWhen(bool Function(E, E) predicate): Iterable<List<E>> extension splits a collection into a lazy Iterable, where each split will be make if predicate returns true for a pair of entries.
  • PR-54 New Iterable<Future<T>>.asStreamAwaited(): Stream<T> extension to create a stream from a group of futures.

String

  • PR-72 New String.isNullOrEmpty extension
  • PR-43 New String.toInt({int radix}) extension as alias for int.parse(String, {int radix}) (also String.toIntOrNull({int radix}))
  • PR-75 Deprecate String.chars in favour of String.characters from the official characters package.

Ranges

  • PR-74 New Comparable<T>.rangeTo(Comparable<T> end) extension to create ranges of DateTime or String.
  • PR-45 New num.between(num first, num endInclusive): bool extension
  • PR-45 New num.inRange(Range<num> range): bool extension
  • PR-45 New Comparable<T>.between(T first, T endInclusive): bool extension
  • PR-45 New Comparable<T>.inRange(ComparableRange<T> range): bool extension

Thanks to our external contributors @ThinkDigitalSoftware, @shinayser, @yongjhih, @AKushWarrior, @rrousselGit, @simolus3 and @MohiuddinM!

v0.3.0

17 Jan 11:24
Compare
Choose a tag to compare
  • PR-14 New int.rangeTo(int) extension
  • PR-24 Default implementations for Comparable <, <=, >= and > operators.
  • PR-13 Removed quiver dependency
  • PR-21 New String.md5 to calculate a MD5 digest
  • PR-25 New FileSystemEntity.withName(String newName) to get a File with a different name
  • PR-25 New FileSystemEntity.extension to get the file extension
  • PR-17 Callable.invoke() is now marked as Deprecated in favour of darts call() method. It will not be removed though, until darts .call() methods gets auto-completion.
  • PR-30 New Comparable.coerceIn(), Comparable.coerceAtLeast() and Comparable.coerceAtMost()
  • PR-31 Fixed num.toBytes()
  • PR-33 Fixed .thenBy() and .thenWith() extensions for Lists

v0.2.0

04 Jan 11:20
Compare
Choose a tag to compare

diff

  • Moved to time.dart library for time extensions

v0.1.2

27 Oct 10:51
Compare
Choose a tag to compare
  • Fixed docs
  • Added Function.curry(), Function.invoke(), Function.partial() and Function.flip()
  • 'string'.reversed now correctly handles grapheme clusters (like emoji)
  • Breaking: 'string'.chars now returns the grapheme clusters instead of Runes

v0.1.1

26 Oct 13:09
Compare
Choose a tag to compare
  • Bugfixes
  • More tests

v0.1.0

24 Oct 15:41
Compare
Choose a tag to compare
  • Initial release