Skip to content

Commit

Permalink
Add changelog for 2.0.0, fixes #92
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed May 4, 2017
1 parent d1ef36f commit 5d36c15
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
2.0.0
-----

* `Amp\reactor()` has been replaced with `Amp\Loop::set()` and `Amp\Loop::get()`.
* `Amp\driver()` has been replaced with `Amp\Loop\Factory::create()`.
* `Amp\tick()` no longer exists and doesn't have a replacement. Ticks are an internal detail.
* Functions for creating and managing watchers are now static methods of `Amp\Loop` instead of functions in the `Amp` namespace.
* `once()` is now `delay()` and `immediately()` is `defer()`.
* Parameter order for `delay()` and `repeat()` has been changed.
* `reference()` and `unreference()` have been added.
* `Amp\Pause` has been renamed to `Amp\Delayed` and accepts an optional resolution value now. Additionally `reference()` and `unreference()` methods have been added.
* Promise accepting functions have been moved to the `Amp\Promise` namespace.
* `Amp\Promise\some()` accepts an additional `$required` parameter.
* `Amp\call()`, `Amp\asyncCall()`, `Amp\coroutine()` and `Amp\asyncCoroutine()` have been added.
* `Amp\resolve()` has been removed, use `Amp\call()` instead.
* `Promise::when()` has been renamed to `Promise::onResolve()`
* `Promise::watch()` has been removed, use `Amp\Iterator`, [`amphp/byte-stream`](https://github.com/amphp/byte-stream) or a custom implementation that implements `Amp\Promise` instead and provides dedicated APIs to access the previously data shared via the `watch()` mechanism.
* `Amp\Iterator`, `Amp\Emitter` and `Amp\Producer` have been added with several functions in the `Amp\Iterator` namespace.
* Various other changes.

### 1.2.2

- Fix notice in `NativeReactor` when removing a handle while
Expand Down

0 comments on commit 5d36c15

Please sign in to comment.