dartbag 0.7.0+1 dartbag: ^0.7.0+1 copied to clipboard
A grab-bag of miscellaneous, lightweight utility libraries for Dart.
0.7.0+1 #
- Correct some documentation.
- Improve test coverage.
0.7.0 #
This version includes multiple breaking changes.
- Moved
flattenDeep
intocollection.dart
. - Moved
compareIterators
andComparableWrapper
to a newcomparable
library. - Added a
Comparable.clamp
extension method. - Renamed the
int.padDigits
extension method toint.padLeft
for clarity. - Split the
IntUtils
extension into separateIntUtils
andPadLeftExtension
extensions. - Moved the
int.roundToMultipleOf
Rectangle.center
extension methods to a newmath
library. - Added
int.floorToMultipleOf
andint.ceilToMultipleOf
extension methods. - Added an
lcm
function. - Replaced
currentDartPackagePath
with acurrentDartFilePath
function. The package-relative path can be obtained by calling it withpackageRelative: true
. - Added
DateTime.toStringWithOffset
andDateTime.toIso8601StringWithOffset
extension methods.
0.6.2 #
- Added a freestanding
tryAs
function, which works better fordynamic
types.
0.6.1+2 #
- Corrected broken references in the documentation.
0.6.1 #
- Added a
ComparableWrapper
class. - Added a
PollableFuture
class.
0.6.0 #
- Added
hoursOnly
,minutesOnly
,secondsOnly
,millisecondsOnly
, andmicrosecondsOnly
extension getters toDuration
. - Added a
tryParseDuration
function. - Added a
mergeMaps
function. - Require Dart 2.19.0 and enable new lints.
- Disable the
one_member_abstracts
lint.
0.5.0 #
- Renamed the
iterables
library tocollection
. - Added a
compareIterables
function. - Added a
LinkedHashMap.sort
extension 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.cast
extension method. - Added a
List.sortWithAsyncKey
extension method as an asynchronous version ofList.sortWithKey
.
0.4.0 #
- Removed
RestartableTimer
.package:async
already provides such a class. - Added a
timeAsyncOperation
function as an asynchronous version oftimeOperation
. - Added a
parseOptionValue
extension method onpackage:args
'sArgResults
. - Added a
matcher
library with atoStringMatches
function.
0.3.0 #
- Added a
List.rotateLeft
extension method. - Allow the
analysis_options.yaml
file to be consumed by other packages. - Moved
timeOperation
frommisc.dart
todebug.dart
. - Fixed
int.padLeft
to work with negative integers. - Modified
RepeatableRandom
to allow callers to specify the underlying pseudo-random-number generator. - Updated the
README.md
file.
0.2.0 #
- Initial published version.