screwdriver 5.8.0  screwdriver: ^5.8.0 copied to clipboard
screwdriver: ^5.8.0 copied to clipboard
A dart package aiming to provide useful extensions and helper functions to ease and speed up development.
5.8.0 #
- Add takeAfter,takeAfterLast,takeBefore,takeBeforeLast, andtakeBetweenextensions forString.
- Bump up minimum Dart SDK version to 3.3.0.
- [DEPRECATED] Deprecate inDegreesandinRadiansextensions fornumin favor ofdegrees.inRadiansandradians.inDegrees.
- [BREAKING] Rename countextension forIterabletocountBy.
- Add countextension forIterableto count occurrences of an element.
- Add Degrees, 'Radians', and 'Turns' extension types for angle unit conversion.
- Add degrees,radians, andturnsextensions fornumto convert to angle units.
5.7.0 #
- Support WASM by removing dart:htmldependency and replacing it withwebanddart:js_interop.
- Add reverseIfextension forList.
- Add completerhelper function to useCompleterapi in a more concise way.
5.6.0 #
- Add byNameOrNullextension on enum.
- Add toFixedStringextension on int.
- [BREAKING] Fix flatMapextension to behaving correctly.
- Iterable extensions:
- Add flatMapNotNullextension.
- Add mapNotNullextension.
- Add mapNotNullIndexedextension.
- Add 'flattenedNotNull' extension.
 
- Add 
- Add <<operator extension for List.
- randomIntfunction improvements:- add seedoption.
- Change default max value to max int value allowed by Random.
 
- add 
- Add reversed,findByValueandfindByValueOrNullmap extensions.
- Add plus,minus,multiply,divideandmodextensions for num.
5.5.0 #
- Add hasExactMatchextension forPatternandRegExp.
- Add matchesExactlyextension forString.
- Add isBlank,isNotBlank, andtoMapextensions forIterable.
- Add prefixandsuffixextensions forString.
- Add toBase64, 'toUint8List', andtoUint16Listextensions forIterable<int>.
- Add toBytes,toUtf16Bytes, andtoUnicodeBytesextension forString.
5.4.0 #
- Add isTruthyandisFalsyextensions for generic nullable types.
- Add immediateFirstRunoption forDeBouncerto run the first call immediately.
- Global debouncerinstance anddebouncefunction for easy access to the debouncer.
- DeBouncer now allows returning a value from the debounced function in form of a Future<R>whereRis the return type.
- Fix capitalizedextension not working properly for strings with emojis.
5.3.1 #
- Add Map.where,Map.whereNot,Map.removeKeys, andMap.onlyextensions.
- Add double.roundToPrecisionextension.
- Allow IterableforMap.exceptextension.
- Fix lint warnings.
5.3.0 #
- [BREAKING] Remove deprecated global runfunction.
- Add num.inRadiansandnum.inDegreesextensions for angle unit conversion.
- Add num.clampAtLeastandnum.clampAtMostextensions for clamping a number to a minimum or maximum value respectively.
5.2.1 #
- Change return type of tryJsonDecodeto dynamic.
- Add pub topics to package metadata.
- Upgrade dependencies.
5.2.0 #
- Fix runCachingfunction not caching exceptions properly.
- Improve runCachingfunction to have aFutureOr<T?>return type allowing either synchronous or asynchronous execution.
- Improve runCachingfunction to cache exceptions even ononErrorcallback.
- Avail list of all the extensions and functions in the package in EXTENSIONS.mdfile.
- [BREAKING] Tighten the generic upperbound to Objectforapply,run,takeIf,takeUnlessandtryCastextensions for improved type safety. Use null-safe(?.) operator to fix.
- [DEPRECATED] Deprecate global runfunction.
5.0.1 #
- Add T.tryCast()extension on generics to cast an object to a type if possible.
- Add recordsextension forIterable.
- Add tryJsonDecodefunction to safely decode JSON.
- Add closeToextension ondouble.
- Add maxandminextensions onnum.
- Add replaceFirstWhere and replaceLastWhere extensions on List.
- Add findBy,findByOrNullandfindAllByextensions onIterable.
5.0.0 #
- Add splitMapJoinRegexandsplitMapextensions forString.
- Add recordsextension forMap.
- [BREAKING] Remove deprecated Pairclass.
- [BREAKING] Remove deprecated Tripleclass.
- [BREAKING] Remove deprecated to()andpairWith()extensions on generic.
- [BREAKING] Remove deprecated previous()extension onRuneIteratorin favor ofmovePrevious.
4.1.0 #
- Add hasContentandorEmptyextensions forString?.
- Add missing docs.
- Fix example not showing up in pub.flutter-io.cn.
- Remove unnecessary backslashes from email regex.
- Add Debouncer.isRunninggetter to check if the debouncer is running.
- [DEPRECATED] Deprecate Pairclass in favor of Records in Dart 3. UseRecordinstead ofPairin all the APIs.Pairwill be removed in the next major release.
- [DEPRECATED] Deprecate Tripleclass in favor of Records in Dart 3. UseRecordinstead ofTriplein all the APIs.Triplewill be removed in the next major release.
- [DEPRECATED] Deprecate pairWithandtoextensions on generic in favor of Records in Dart 3.
- [BREAKING] Refactor associateandassociateToextensions onIterableto use Records instead ofPair.
- [BREAKING] Refactor +operator onMapto use Records instead ofPair.
4.0.0 #
- Bump up minimum Dart version to 3.0.0.
- Upgrade dependencies.
- Add DateTime.onlyextension to duplicateDateTimewith only specific fields.
3.1.1 #
- Fix MAX_INT_VALUEandMIN_INT_VALUEnot compiling for JS.
- [BREAKING]: Remove elementAtOrNullsince it is added in thecollectionspackage.
- Upgrade dependencies.
3.1.0 #
- Added StreamSubscriptionMixinto manage stream subscriptions. Supports scoped subscriptions as well.
- Replace BidirectionalIteratorScrewdriverwithRuneIteratorScrewdriverbecause of the deprecation ofBidirectionalIterator.
3.0.0 #
- Added IntRangehelper class.
- Added rangeTo,untilanddownToextensions forintto createIntRange.
- Added coerceAtLeast,coerceAtMost, andcoerceInextensions forComparable.
- Added exceptextension forMap.
- Added except,containsAll,containsNone,lastIndex,elementAtOrNull, andhasOnlyOneElementextensions forIterable.
- Added readBytesextension forhtml.File.
- Added roundToPrecisionextension fordoubleandnum.
- Added JsonMap,IntList,StringList,DoubleList,IntSet,StringSetandDoubleSettypedefs.
- Added SerializableMixinmixin.
- Added isNullandisNotNullextensions forObject?.
- Added orZero,orOne, andorextensions fornum?.
- Update hashcode implementation for IntRange,Pair, andTriple.
2.1.1 #
- Added String extensions count,parseJsonArray,find,title,toggledCase,equalsIgnoreCase.
- Added Duration extension fromNow.
- Used explicit dynamics where required for strong mode.
2.1.0 #
- Added back isNullOrEmpty,isNotNullOrEmptyextensions forIterable?.
- Added back isNullOrEmpty,isNotNullOrEmpty,isNullOrBlank,isNotNullOrBlankextensions forString?.
- Added collection as a part of the package, so it can now be used from screwdriver. No need to explicitly add it.
2.0.0 #
- Migrated to null safety.
- Removed following extensions either because they are redundant in favor of non-nullable types or they are already
available in the null safe version of official dart package collection.
- Iterable.firstOrNull
- Iterable.firstOrNullWhere
- Iterable.lastOrNullWhere
- Iterable.singleOrNullWhere
- Iterable.isNullOrEmpty
- Iterable.isNotNullOrEmpty
- Iterable.none
- Iterable.whereIndexed
- Iterable.mapIndexed
- Iterable.forEachIndexed
- Iterable.foldIndexed
- Iterable.foldIndexed
- Iterable.sum
- Iterable.average
- Iterable.max
- Iterable.min
- String.isNullOrEmpty
- String.isNotNullOrEmpty
- String.isNullOrBlank
- String.isNotNullOrBlank
 
- Added some more extensions in favor of null safety:
- Iterable.randomOrNull
- Iterable.maxByOrNull
- Iterable.maxByLastOrNull
- Iterable.minByOrNull
- Iterable.minByLastOrNull
 
1.2.2 #
- Fixed email extension & tests.
- upgraded test package dependency.
1.2.1 #
- Upgraded dependencies with specific version bounds.
1.2.0 #
- Add isNullOrEmptyandisNotNullOrEmptyextensions for collections.
- Add isNullOrEmptyandisNotNullOrEmptyextensions for string.
- Add isNullOrBlankandisNotNullOrBlankextensions for string.
1.1.1 #
- Add extensions isInYearsandinYearsforDuration.
- Add extension fromNow()forDateTime.
- Fix Issue: DeBouncerthrowing null pointer exception when callingcancel().
1.1.0 #
- Added extension format date using DateFormatfrom intl package.
- Added debouncer helper class that allows to debounce calls to a method for certain amount of time.
- Added extension tofor generic to create pairs like it is done in Kotlin.
1.0.1 #
- Fix pub.flutter-io.cn warnings.