Skip to content

Releases: jklmli/monapt

v2.1.0

22 Apr 08:03
45cbbcb
Compare
Choose a tag to compare

<a name"2.1.0">

2.1.0 (2018-04-22)

Bug Fixes

  • future: fix unhandled rejection in flatMap (ace58d88)

Features

v2.0.0

17 Mar 23:58
Compare
Choose a tag to compare

<a name"2.0.0">

2.0.0 (2018-03-17)

Features

  • future:
    • avoid unhandled rejections (f57281e7)
    • migrate Promises from when.js to native (7c0814c3)

Breaking Changes

Futures internally represent promises using native ES6
promises instead of when.js.

To migrate code which previously depended on when.js promises, wrap the
new native promise return values with a when call:

Before: Future.create(42).promise

After: when(Future.create(42).promise)

Alternatively, you can choose to use a different promise library such as
Bluebird, or stick with native promises.

(7c0814c3)

v1.0.5

16 Jan 07:32
Compare
Choose a tag to compare

<a name"1.0.5">

1.0.5 (2018-01-16)

Bug Fixes

  • *: remove self-types from interfaces (7e13c4c9, closes #20)

v1.0.4

05 Jul 06:34
Compare
Choose a tag to compare

<a name"1.0.4">

1.0.4 (2017-07-05)

Bug Fixes

v1.0.3

05 Jul 02:07
Compare
Choose a tag to compare

<a name"1.0.3">

1.0.3 (2017-07-05)

Bug Fixes

  • try: pass error into matcher (dff5b615)

v1.0.2

05 Jul 02:02
Compare
Choose a tag to compare

<a name"1.0.2">

1.0.2 (2017-07-05)

Bug Fixes

  • try: restore Success#filter failure message (390ac96b)

1.0.1

30 Jun 18:13
Compare
Choose a tag to compare

Fixes

  • Hotfix for 1.0.0 npm release not including any usable code, due to not building before releasing. The build step has now been added to CI, and CI will also automatically push to npm on a successful run thanks to semantic-release.

1.0.0

30 Jun 08:23
Compare
Choose a tag to compare

1.0.0 was a complete rewrite of Monapt - including everything from the implementation to the tooling to the tests. The result is almost the same API, but more true to the original Scala interface.

Breaking Changes

  • All default exports have been removed to avoid ambiguity.
  • Future now depends on when.Promise, and uses it internally when representing promises.
  • Future#onFailure has been removed.
  • Future#onSuccess has been removed.
  • Future#reject has been removed.
  • Monapt::flatten has been renamed to Option::flatten.
  • Monapt::future has been renamed to Future::create. It now accepts a
    when.Promise<A> | when.Thenable<A> | A.
  • Option#reject has been renamed to Option#filterNot.
  • Try#reject has been removed.

These are all backed by type definitions, so compiling your code via TypeScript should reveal any
breakages.

0.7.1

21 Feb 19:50
Compare
Choose a tag to compare

Features

0.7.0

01 Jan 00:51
Compare
Choose a tag to compare

Breaking Changes

  • Future#map has changed its signature, now map<U>(f: (value: T) => U): Future<U>
  • Future#recover has changed its signature, now recover(fn: (e: Error) => T): Future<T>