Skip to content

Commit 0bbbcc7

Browse files
committed
Prepare v1.8.0 release
1 parent 997c10e commit 0bbbcc7

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

CHANGELOG.md

+20
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# Changelog
22

3+
## 1.8.0 (2021-12-06)
4+
5+
* Feature: Add new `sleep()` function and deprecate `resolve()` and `reject()` functions.
6+
(#51 by @clue)
7+
8+
```php
9+
// deprecated
10+
React\Promise\Timer\resolve($time);
11+
React\Promise\Timer\reject($time);
12+
13+
// new
14+
React\Promise\Timer\sleep($time);
15+
```
16+
17+
* Feature: Support PHP 8.1 release.
18+
(#50 by @Thomas-Gelf, #52 by @clue and #48 by @SimonFrings)
19+
20+
* Improve API documentation and add parameter types and return types.
21+
(#49 by @clue and #47 by @SimonFrings)
22+
323
## 1.7.0 (2021-07-11)
424

525
A major new feature release, see [**release announcement**](https://clue.engineering/2021/announcing-reactphp-default-loop).

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ This project follows [SemVer](https://semver.org/).
291291
This will install the latest supported version:
292292

293293
```bash
294-
$ composer require react/promise-timer:^1.7
294+
$ composer require react/promise-timer:^1.8
295295
```
296296

297297
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.

0 commit comments

Comments
 (0)