dartbag 0.10.0
dartbag: ^0.10.0 copied to clipboard
A grab-bag of miscellaneous, lightweight utility libraries for Dart.
0.10.0 #
- Require Dart 3.8 and enable new lints.
- Breaking: Renamed
analysis_options.yamltorecommended.yaml.
0.9.0+1 #
- Minor correction to the
README.mdfile.
0.9.0 #
-
Require Dart 3.4.0 and enable new lints.
-
Added
padLeftandpadRightextension methods onIterable. -
Added a
zipLongestfunction. -
Replaced the
identityType<T>()function with anIdentityType<T>typedef.
0.8.4 #
- Added an
Iterable.startsWithextension method.
0.8.3+1 #
- Minor correction to the
README.mdfile.
0.8.3 #
- Added a
String.substringLooseextension method. - Fixed
readableNumberto accept numbers smaller than 10^-24. - Internal changes to make better use of Dart 3 patterns.
0.8.2 #
- Added a
Map<K, Future<V>>.waitextension property.
0.8.1 #
-
Reimplemented
toStringMatches. The new implementation is much simpler, although failure messages will be different. -
Added
String.escapeandRunes.escapeextension methods.
0.8.0 #
- Updated for Dart 3:
- Require Dart 3.0.0.
- Enabled new lints.
- Removed deprecated lints.
getTerminalSizenow returns a({int width, int height})record instead of usingOutputParameters.
0.7.1 #
- Added
identityType<T>andisNullable<T>functions. - Added a
String.lazySplitandString.partialSplitextension methods.
0.7.0+1 #
- Corrected some documentation.
- Improved test coverage.
0.7.0 #
This version includes multiple breaking changes.
- Moved
flattenDeepintocollection.dart. - Moved
compareIteratorsandComparableWrapperto a newcomparablelibrary. - Added a
Comparable.clampextension method. - Renamed the
int.padDigitsextension method toint.padLeftfor clarity. - Split the
IntUtilsextension into separateIntUtilsandPadLeftExtensionextensions. - Moved the
int.roundToMultipleOfRectangle.centerextension methods to a newmathlibrary. - Added
int.floorToMultipleOfandint.ceilToMultipleOfextension methods. - Added an
lcmfunction. - Replaced
currentDartPackagePathwith acurrentDartFilePathfunction. The package-relative path can be obtained by calling it withpackageRelative: true. - Added
DateTime.toStringWithOffsetandDateTime.toIso8601StringWithOffsetextension methods.
0.6.2 #
- Added a freestanding
tryAsfunction, which works better fordynamictypes.
0.6.1+2 #
- Corrected broken references in the documentation.
0.6.1 #
- Added a
ComparableWrapperclass. - Added a
PollableFutureclass.
0.6.0 #
- Added
hoursOnly,minutesOnly,secondsOnly,millisecondsOnly, andmicrosecondsOnlyextension getters toDuration. - Added a
tryParseDurationfunction. - Added a
mergeMapsfunction. - Require Dart 2.19.0 and enable new lints.
- Disable the
one_member_abstractslint.
0.5.0 #
- Renamed the
iterableslibrary tocollection. - Added a
compareIterablesfunction. - Added a
LinkedHashMap.sortextension method. - Added an
isSubtype<T1, T2>generic function. - Adjusted some timing-based tests to be less flaky by instead checking if they pass most of the time.
- Require Dart 2.18.0.
0.4.1 #
- Added a
Future.castextension method. - Added a
List.sortWithAsyncKeyextension method as an asynchronous version ofList.sortWithKey.
0.4.0 #
- Removed
RestartableTimer.package:asyncalready provides such a class. - Added a
timeAsyncOperationfunction as an asynchronous version oftimeOperation. - Added a
parseOptionValueextension method onpackage:args'sArgResults. - Added a
matcherlibrary with atoStringMatchesfunction.
0.3.0 #
- Added a
List.rotateLeftextension method. - Allow the
analysis_options.yamlfile to be consumed by other packages. - Moved
timeOperationfrommisc.darttodebug.dart. - Fixed
int.padLeftto work with negative integers. - Modified
RepeatableRandomto allow callers to specify the underlying pseudo-random-number generator. - Updated the
README.mdfile.
0.2.0 #
- Initial published version.