Skip to content

Releases: IronCoreLabs/FutureJS

2.2.0

17 Nov 22:18
Compare
Choose a tag to compare
2.2.0 Pre-release
Pre-release
bump-version: Set release version 2.2.0

2.1.3

17 Nov 22:11
Compare
Choose a tag to compare
2.1.3 Pre-release
Pre-release
bump-version: Set release version 2.1.3

2.1.2

13 Apr 18:28
a2ef425
Compare
Choose a tag to compare

FutureJS 2.1.2

Bug Fixes

  • The Future.all method now finishes immediately when called with an empty array instead of locking.

2.1.1

23 Nov 16:03
Compare
Choose a tag to compare

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

07 Mar 18:30
1ee7b94
Compare
Choose a tag to compare

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> where L is the failure case type and R is the success type.

New Methods

  • Added tryF, tryP, and encase as new methods.