Releases: BirjuVachhani/screwdriver
Releases · BirjuVachhani/screwdriver
Release v5.7.0
- Support WASM by removing
dart:html
dependency and replacing it withweb
anddart:js_interop
. - Add
reverseIf
extension forList
. - Add
completer
helper function to useCompleter
api in a more concise way.
Release v5.6.0
- Add
byNameOrNull
extension on enum. - Add
toFixedString
extension on int. - [BREAKING] Fix
flatMap
extension to behaving correctly. - Iterable extensions:
- Add
flatMapNotNull
extension. - Add
mapNotNull
extension. - Add
mapNotNullIndexed
extension. - Add 'flattenedNotNull' extension.
- Add
- Add
<<
operator extension for List. randomInt
function improvements:- add
seed
option. - Change default max value to max int value allowed by Random.
- add
- Add
reversed
,findByValue
andfindByValueOrNull
map extensions. - Add
plus
,minus
,multiply
,divide
andmod
extensions for num.
Release v5.5.0
- Add
hasExactMatch
extension forPattern
andRegExp
. - Add
matchesExactly
extension forString
. - Add
isBlank
,isNotBlank
, andtoMap
extensions forIterable
. - Add
prefix
andsuffix
extensions forString
. - Add
toBase64
, 'toUint8List', andtoUint16List
extensions forIterable<int>
. - Add
toBytes
,toUtf16Bytes
, andtoUnicodeBytes
extension forString
.
Release v5.4.0
- add
isTruthy
andisFalsy
extensions for generic nullable types. - Add
immediateFirstRun
option forDeBouncer
to run the first call immediately. - Global
debouncer
instance anddebounce
function for easy access to the debouncer. - DeBouncer now allows returning a value from the debounced function in form of a
Future<R>
whereR
is the return
type. - Fix
capitalized
extension not working properly for strings with emojis.
Release v5.3.1
- Add
Map.where
,Map.whereNot
,Map.removeKeys
, andMap.only
extensions. - Add
double.roundToPrecision
extension. - Allow
Iterable
forMap.except
extension. - Fix lint warnings.
Release v5.3.0
- [BREAKING] Remove deprecated global
run
function. - Add
num.inRadians
andnum.inDegrees
extensions for angle unit conversion. - Add
num.clampAtLeast
andnum.clampAtMost
extensions for clamping a number to a minimum or maximum value
respectively.
Release v5.2.1
- Change return type of
tryJsonDecode
to dynamic. - Add pub topics to package metadata.
- Upgrade dependencies.
Release v5.2.0
- Fix
runCaching
function not caching exceptions properly. - Improve
runCaching
function to have aFutureOr<T?>
return type allowing either synchronous or asynchronous
execution. - Improve
runCaching
function to cache exceptions even ononError
callback. - Avail list of all the extensions and functions in the package in
EXTENSIONS.md
file. - [BREAKING] Tighten the generic upper bound to
Object
forapply
,run
,takeIf
,takeUnless
andtryCast
extensions for improved type safety. Use null-safe(?.) operator to fix. - [DEPRECATED] Deprecate global
run
function.
Release v5.0.1
- Add
T.tryCast()
extension on generics to cast an object to a type if possible. - Add
records
extension forIterable
. - Add
tryJsonDecode
function to safely decode JSON. - Add
closeTo
extension ondouble
. - Add
max
andmin
extensions onnum
. - Add replaceFirstWhere and replaceLastWhere extensions on
List
. - Add
findBy
,findByOrNull
andfindAllBy
extensions onIterable
.
Release v5.0.0
- Add
splitMapJoinRegex
andsplitMap
extensions forString
. - Add
records
extension forMap
. - [BREAKING] Remove deprecated
Pair
class. - [BREAKING] Remove deprecated
Triple
class. - [BREAKING] Remove deprecated
to()
andpairWith()
extensions on generic. - [BREAKING] Remove deprecated
previous()
extension onRuneIterator
in favor ofmovePrevious
.