screwdriver 5.0.0
screwdriver: ^5.0.0 copied to clipboard
A dart package aiming to provide useful extensions and helper functions to ease and speed up development.
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.firstOrNullIterable.firstOrNullWhereIterable.lastOrNullWhereIterable.singleOrNullWhereIterable.isNullOrEmptyIterable.isNotNullOrEmptyIterable.noneIterable.whereIndexedIterable.mapIndexedIterable.forEachIndexedIterable.foldIndexedIterable.foldIndexedIterable.sumIterable.averageIterable.maxIterable.minString.isNullOrEmptyString.isNotNullOrEmptyString.isNullOrBlankString.isNotNullOrBlank
- Added some more extensions in favor of null safety:
Iterable.randomOrNullIterable.maxByOrNullIterable.maxByLastOrNullIterable.minByOrNullIterable.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.