Fatures:
- Add helpers for
AsyncData<Result>
(6319ada)
Fixes:
- Fixed a formatting issue causing an incorrec type (b9af1ee)
Fixes:
- Fixed a typing issue with optional keys in
Dict.entries
(bc73bd8)
Breaking changes:
- Renamed
future.get
tofuture.onResolve
(7fd9442) - Remove
isPending
,isCancelled
andisResolved
from Future (d759e66)
Features:
- Improve discriminating unions (d759e66)
Breaking changes:
- Make
Array.keepMap
callback return an option instead of a nullable (ff967f9)
Features:
- Add
allFromDict
helpers (04a4662) - Add
Array.zip
&Array.unzip
(04a4662)
Changes:
- Improve type inference when returning newly constructed
Result
,Option
orAsyncData
from a.match
function (ae74ba8)
Fixes:
- Fix flatMap type (fcd4acc)
Changes:
- More concise generics on Result-related types (2f9465e)
Features:
- Add
option.toResult
for better discoverability (cc8a058)
Features:
- Add
Result.fromOption
(6e34a3f)
Changes:
- Make type annotations more compact in IDE (dc320ee)
Breaking changes:
- Move from
value
getter toget
method inLazy
(4d26820)
Fixes:
- Fixed
get
typing forResult
type (thanks @ansavchenco!) (54fe9aa)
Features:
- Add convenience
get
methods (23592b0)
Changes:
- Add inline docs to future (6fd938c)
Breaking changes:
- Update internal representation (181feac)
Fixes:
- Fixed a failing test (64feaff)
Fixes:
- Fixed a compatibility issue with ts-pattern (37337ed)
Breaking changes:
- In case of
Error
,Result
class stores the value inresult.error
(57e254b)
Features:
- Better IDE integration and TypeScript errors (57e254b)
Fixes:
- Fix issue with
Lazy
export (10064dc)
Changes:
- Add more guarantees on Future (7ba99ec)
Changes:
- Remove
Unwrap
type removing guarantees (bb83047)
Changes:
- Simplify
Future.mapResult
type (ce2749a)
Features:
- Add
Option.all
,Result.all
&AsyncData.all
(039eeda)
Features:
- Add tap functions on
Option
,Result
andAsyncData
for debugging (cb63dcf) - Add
mapError
andflatMapError
toResult
(0d36a03)
Changes:
- Improve typing for
Future
(f8d9e12) - Make
Future.flatMapOk
&Future.flatMapError
behave like the result ones (f8d9e12)
Changes:
- Make
flatMap
aggregate error types with a union (015da3b)
Features:
- Reexport
Array
static methods than can be shadowed when importingArray
from boxed (2dd970b)
Changes:
- Better guaratees on
Dict.entries
andDict.keys
(Thanks 0xCAFEADD1C7) (ec67c64, c572dab) - Better typing for
Result.fromExecution
andResult.fromPromise
(c25623f)
Changes:
- Improve exposed types readability (6fb0128)
Changes:
- Improve repository structure (9cd199a)
Initial version