Skip to content

Commit ca41fc6

Browse files
committed
Prepare v1.2.0 release
1 parent c488f9e commit ca41fc6

2 files changed

Lines changed: 23 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# Changelog
22

3+
## 1.2.0 (2020-04-17)
4+
5+
* Feature: Add `any()` helper to await first successful fulfillment of operations.
6+
(#15 by @clue)
7+
8+
```php
9+
// new: limit concurrency while awaiting first operation to complete successfully
10+
$promise = Transformer::any($input, 3, function ($data) use ($browser, $url) {
11+
return $browser->post($url, [], json_encode($data));
12+
});
13+
14+
$promise->then(function (ResponseInterface $response) {
15+
echo 'First successful response: ' . $response->getBody() . PHP_EOL;
16+
});
17+
```
18+
19+
* Improve test suite to run tests on PHP 7.4 and simplify test matrix
20+
and add support / sponsorship info.
21+
(#13 and #14 by @clue)
22+
323
## 1.1.0 (2018-08-13)
424

525
* Feature: Add `all()` helper to await successful fulfillment of all operations.

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ much any API that already uses Promises.
2525
* **Async execution of operations** -
2626
Choose how many async operations should be processed at once (concurrently).
2727
Process their results as soon as responses come in.
28-
The Promise-based design provides a *sane* interface to working with out of bound results.
28+
The Promise-based design provides a *sane* interface to working with out of order results.
2929
* **Standard interfaces** -
3030
Allows easy integration with existing higher-level components by implementing
3131
ReactPHP's standard [promises](#promises) and [streaming interfaces](#streaming).
@@ -652,7 +652,7 @@ This project follows [SemVer](https://semver.org/).
652652
This will install the latest supported version:
653653

654654
```bash
655-
$ composer require clue/reactphp-flux:^1.1
655+
$ composer require clue/reactphp-flux:^1.2
656656
```
657657

658658
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
@@ -695,7 +695,7 @@ This project is released under the permissive [MIT license](LICENSE).
695695

696696
* If you want to process structured NDJSON files (`.ndjson` file extension),
697697
you may want to use [clue/reactphp-ndjson](https://github.com/clue/reactphp-ndjson)
698-
on the input stream before passing the decoded stream to the transformator.
698+
on the input stream before passing the decoded stream to the transformer.
699699

700700
* If you want to process compressed GZIP files (`.gz` file extension),
701701
you may want to use [clue/reactphp-zlib](https://github.com/clue/reactphp-zlib)

0 commit comments

Comments
 (0)