Skip to content

Releases: BirjuVachhani/screwdriver

Release v5.7.0

28 Oct 12:30
d8b5ee9
Compare
Choose a tag to compare
  • Support WASM by removing dart:html dependency and replacing it with web and dart:js_interop.
  • Add reverseIf extension for List.
  • Add completer helper function to use Completer api in a more concise way.

Release v5.6.0

20 Sep 06:41
fb6f835
Compare
Choose a tag to compare
  • Add byNameOrNull extension on enum.
  • Add toFixedString extension on int.
  • [BREAKING] Fix flatMap extension to behaving correctly.
  • Iterable extensions:
    • Add flatMapNotNull extension.
    • Add mapNotNull extension.
    • Add mapNotNullIndexed extension.
    • Add 'flattenedNotNull' extension.
  • Add << operator extension for List.
  • randomInt function improvements:
    • add seed option.
    • Change default max value to max int value allowed by Random.
  • Add reversed, findByValue and findByValueOrNull map extensions.
  • Add plus, minus, multiply, divide and mod extensions for num.

Release v5.5.0

10 Aug 06:53
c2b047e
Compare
Choose a tag to compare
  • Add hasExactMatch extension for Pattern and RegExp.
  • Add matchesExactly extension for String.
  • Add isBlank, isNotBlank, and toMap extensions for Iterable.
  • Add prefix and suffix extensions for String.
  • Add toBase64, 'toUint8List', and toUint16List extensions for Iterable<int>.
  • Add toBytes, toUtf16Bytes, and toUnicodeBytes extension for String.

Release v5.4.0

17 Jun 12:37
Compare
Choose a tag to compare
  • add isTruthy and isFalsy extensions for generic nullable types.
  • Add immediateFirstRun option for DeBouncer to run the first call immediately.
  • Global debouncer instance and debounce function for easy access to the debouncer.
  • DeBouncer now allows returning a value from the debounced function in form of a Future<R> where R is the return
    type.
  • Fix capitalized extension not working properly for strings with emojis.

Release v5.3.1

23 Mar 10:20
Compare
Choose a tag to compare
  • Add Map.where, Map.whereNot, Map.removeKeys, and Map.only extensions.
  • Add double.roundToPrecision extension.
  • Allow Iterable for Map.except extension.
  • Fix lint warnings.

Release v5.3.0

01 Oct 15:57
Compare
Choose a tag to compare
  • [BREAKING] Remove deprecated global run function.
  • Add num.inRadians and num.inDegrees extensions for angle unit conversion.
  • Add num.clampAtLeast and num.clampAtMost extensions for clamping a number to a minimum or maximum value
    respectively.

Release v5.2.1

31 Aug 11:23
c73f0f5
Compare
Choose a tag to compare
  • Change return type of tryJsonDecode to dynamic.
  • Add pub topics to package metadata.
  • Upgrade dependencies.

Release v5.2.0

30 Jun 18:07
e117e78
Compare
Choose a tag to compare
  • Fix runCaching function not caching exceptions properly.
  • Improve runCaching function to have a FutureOr<T?> return type allowing either synchronous or asynchronous
    execution.
  • Improve runCaching function to cache exceptions even on onError callback.
  • Avail list of all the extensions and functions in the package in EXTENSIONS.md file.
  • [BREAKING] Tighten the generic upper bound to Object for apply, run, takeIf, takeUnless and tryCast
    extensions for improved type safety. Use null-safe(?.) operator to fix.
  • [DEPRECATED] Deprecate global run function.

Release v5.0.1

28 Jun 16:33
d029389
Compare
Choose a tag to compare
  • Add T.tryCast() extension on generics to cast an object to a type if possible.
  • Add records extension for Iterable.
  • Add tryJsonDecode function to safely decode JSON.
  • Add closeTo extension on double.
  • Add max and min extensions on num.
  • Add replaceFirstWhere and replaceLastWhere extensions on List.
  • Add findBy, findByOrNull and findAllBy extensions on Iterable.

Release v5.0.0

22 Jun 06:10
a7eed39
Compare
Choose a tag to compare
  • Add splitMapJoinRegex and splitMap extensions for String.
  • Add records extension for Map.
  • [BREAKING] Remove deprecated Pair class.
  • [BREAKING] Remove deprecated Triple class.
  • [BREAKING] Remove deprecated to() and pairWith() extensions on generic.
  • [BREAKING] Remove deprecated previous() extension on RuneIterator in favor of movePrevious.