Releases: IronCoreLabs/FutureJS
Releases · IronCoreLabs/FutureJS
2.2.1
2.2.0
bump-version: Set release version 2.2.0
2.1.3
bump-version: Set release version 2.1.3
2.1.2
2.1.1
FutureJS 2.1.1
Added
The Future.all method now supports objects in addition to arrays. When an object is provided the Future will resolve with an object with each Future result in the key that was provided in the Future.all call.
2.0.0
FutureJS 2.0.0
Breaking Changes
- Converting Promise functions into Futures now works by calling
Future.tryP(() => fnToPromise)instead of working as a Future constructor. - Type Changes: Futures now allow for custom error types to be defined as the first argument to the Future generic. Futures now have the type
Future<L, R>whereLis the failure case type andRis the success type.
New Methods
- Added
tryF,tryP, andencaseas new methods.