Skip to content

Releases: simc/dartx

v1.2.0

18 Jul 12:22
Compare
Choose a tag to compare
  • Official Dart 3.0 release
  • General cleanup and CI update

v1.1.0

12 Apr 15:35
Compare
Choose a tag to compare
  • PR-151 New: String?.isNullOrBlank, String?.isNotNullOrBlank
  • PR-149 Fix type of extension: IterableForthItem -> IterableFourthItem
  • PR-147 New: int.toChar(): String
  • PR-147 New: String?.orEmpty: bool
  • PR-147 New: String.matches(RexExp): bool
  • PR-147 New: String.urlEncode and String.urlDecode
  • PR-147 New: buildString to build a StringBuffer an immediately return it
  • PR-156 Fix: Iterable.takeFirst(n) and Iterable.takeLast(n) crashed when n > length

v1.0.0

10 Dec 12:40
Compare
Choose a tag to compare
  • Promote to stable version
  • Remove deprecated extensions

v0.8.0

01 Nov 11:36
Compare
Choose a tag to compare
  • PR-136 New: Multiple extensions for Map. all(), any(), count(), filter(), filterKeys(), filterNot, filterValues, getOrElse(), mapEntries(), mapKeys(), mapValues(), maxBy(), maxWith(), minBy(), minWith, none(), toList(), toMap(), orEmpty()
  • PR-127 Improve: sumBy is now generic and works equally for num/int/double
  • PR-131 Fix: min()/max() which returned the wrong item for reversed ordered lists
  • PR-133 New: plus()/minus() and plusOrNull/minusOrNull to num which handle null
  • PR-138 Improve: Iterable.second returns T instead of T?. Analog to first
  • PR-142 Fix: isUpperCase/isLowerCase now threat only [a-zA-Z] chars as being uppercase

Also, all linting issues have been fixed and the README has been drastically improved. Thanks @minhqdao

v0.7.1

22 Mar 00:22
Compare
Choose a tag to compare
  • PR-126 Improve runtime of elementAtOrNull for List
  • PR-125 Fix whereNotNull to actually return non-null elements

v0.7.0

14 Mar 17:24
Compare
Choose a tag to compare
  • All extensions methods now have their own extension which can be imported explicitly with show/hide. This allows the usage of package:collection and dartx in the same file.
  • Undeprecate firstOrNullWhere until dartx can export package:collection itself
  • New Directory.file and Directory.directory extensions to quickly create file/directory references
  • Update time package

v0.6.0

01 Mar 13:01
Compare
Choose a tag to compare
  • PR-120 Migrate to nullsafety
  • Fix minBy, maxBy NPE for empty lists
  • PR-69 New Dictionary.contains
  • PR-57 New Iterable.slice

v0.5.0

21 Jul 21:04
b488b17
Compare
Choose a tag to compare
  • PR-94 Breaking: Iterable<T>.zip(other, transform) now supports zipping iterables of other types the T. This is a breaking change because it is now required to add types in the transform function.
    final amounts = [2, 3, 4];
    final animals = ['dogs', 'birds', 'cats'];
    final all = amounts.zip(animals, (int amount, String animal) => '$amount $animal');
    // lambda types are now required:  ⇧           ⇧
    // all: ['2 dogs', '3 birds', '4 cats']
  • PR-90 New String extensions
    • String removePrefix(String prefix)
    • String removeSuffix(String suffix)
    • String removeSurrounding({String prefix, String suffix})
    final name = 'James Bond'.removePrefix('James '); // Bond
    final milliseconds = '100ms'.removeSuffix('ms'); // 100
    final text = '<p>Some HTML</p>'.removeSurrounding(prefix: '<p>', suffix: '</p>'); // Some HTML
  • PR-88 New List extension void swap(int, int) which swaps the elements in the indices provided.
    final list = [1, 2, 3, 4];
    list.swap(0, 2); // [3, 2, 1, 4]
  • PR-100 Relax the upper version constraint of collection to support Flutter 1.20 (which uses collection: 1.3.0-nullsafety)
  • PR-101 Relax the upper version constraint of crypto

v0.4.2

17 Jun 16:01
Compare
Choose a tag to compare
  • Increase dependency range of characters to include 1.0.0. Fixes #87
  • Raise min sdk version to 2.6.0 to prevent pub publishing warning for pre-release versions

v0.4.1

14 May 08:53
Compare
Choose a tag to compare
  • PR-84 Increase path version range to be compatible with Flutter 1.17
  • PR-83 Run tests on macOS