Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit 1ae84f0

Browse files
committed
Adds changelog.
1 parent cf02942 commit 1ae84f0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
## From 1.0.0 to 2.0.0
2+
3+
- **BREAKING:** removed partial functions and fields (`toString`, `isEqual`,
4+
`isPending`, `isResolved`, `isRejected`), since you can't observe them
5+
always, and it leads to confusing behaviour. This functionality will be
6+
moved to a co-future later.
7+
8+
- **BREAKING:** removed default memoisation. Since the Futures are just
9+
placeholders for actions, it does make sense that chaining a Future twice
10+
should execute the action twice. When you want memoisation, you can use the
11+
`Future.memoise` construct instead of `new Future`.
12+
13+
```js
14+
// Before:
15+
new Future(function(reject, resolve) { ... })
16+
17+
// Now:
18+
Future.memoise(function(reject, resolve) { ... })
19+
```
20+
21+
## 1.0.0
22+
23+
Initial release

0 commit comments

Comments
 (0)