sugar 3.1.0 sugar: ^3.1.0 copied to clipboard
Forus Labs' standard library extension. Utilities for date-times, timezones, collections, monads & more.
3.1.0 (19/06/2023) #
sugar.collection
#
- Add
Sets.toggle(...)
- Change
Iterables.indexed()
toIterables.indexed
to be consistent withList.indexed
sugar.core
#
- Add
NotTested.thirdPartIntegration()
- Change
Disposable
from a mixin to an abstract interface class - Fix
Strings.toCamelCase()
throwing aStateError
on empty strings
sugar.math
#
- Add
Random.nextWeightedBool(...)
sugar.time.interop
#
- Add
Dates.leapYearMonths
- Add
Dates.nonLeapYearMonths
- ADd
DateTimes.fromDaysSinceEpoch(...)
- Add
DateTimes.toLocalDate()
- Add
DateTimes.toLocalDateTime()
- Add
DateTimes.toLocalTime()
- Add
DateTimes.toOffsetTime()
- Add
DateTimes.toZonedDateTime()
3.0.0+1 (15/05/2023) #
Update README.md
3.0.0 (14/05/2023) #
This release is a complete rework of the library, capitalizing on the real-life experiences gained over the past 2 years.
- Date-time and timezone API inspired by
java.time
. - Monads such as
Result<S,F>
&Maybe<T>
. - Syntax sugar for aggregating & manipulating collections.
- Types for representing and working with ranges & intervals.
2.4.1 (02/12/2022) #
This release fixes Equality.equals(...)
accepting a dynamic
instead of Object
.
2.4.0 (09/12/2021) #
This release bumps the minimum supported Dart version to 2.15
2.3.3 (08/12/2021) #
This release adds an accidentally omitted method.
- Add
Weekdays.unparse(Iterable<bool>)
2.3.2 (07/12/2021) #
This release adds a few additional convince methods.
- Add
Integers.from(bool)
- Add
Integers.toBool()
- Add
Weekdays.parse(int)
2.3.1 (19/11/2021) #
This release focuses on improving documentation and preparing for Dart 2.15.
- Add
disposable.dart
- Change
crypto.dart
tocryptography.dart
2.3.0 (10/09/2021) #
This release adds new higher-order functions for composing functions. In addition, the library now minimally requires Dart 2.14.
- Add
Call
type definition - Add
Calls
extension that contain higher-order functions for composingCall
s - Add
Consumer
type definition - Add
Consumers
extension that contain higher-order functions for composingConsumer
s - Add
Mapper
type definition - Add
Mappers
extension that contain higher-order functions for composingMapper
s - Add
Predicate
type definition - Add
Predicates
extension that contain higher-order functions for composingPredicate
s - Add
Supplier
type definition - Add
Suppliers
extension that contain higher-order functions for composingSupplier
s - Change
Lists.repeat(int)
extension toLists.operator *(int)
. - Remove
hash(Iterable<dynamic>)
- function has been superseded byObject.hash(...)
indart:core
.
2.2.0 (21/07/2021) #
- Add
Debounce
2.1.1 (17/07/2021) #
- Add
List<T>.repeat(T)
- Change
List<T>.separate(T)
toList<T>.alternate(T)
2.1.0 (30/06/2021) #
This release adds new annotations & cryptological functions.
- Add
@PlatformDependent
- Add
@Subset
- Add
@Throws
- Add
@annotation
- Add
@throws
- Add
HashExtensions
- Add
nonce(...)
- Change
Result.present
toResult.successful
- Change
Result.notPresent
toResult.failure
- Change
Result.ifPresent(...)
tpResult.ifSuccessful(...)
- Change
Result.ifNotPresent(...)
tpResult.ifFailure(...)
2.0.1 - (29/06/2021) #
Downgrade meta
from 1.4.0
to .1.3.0
to enable compatibility with Flutter
2.0.0 - We have awoken! (25/06/2021) #
This release focuses on supporting null safety.
1.0.0 - Initial Launch! 🚀 (06/10/2020) #
- Add collection library
- Add core library
- Add time library