Skip to content

Commit 582dc7b

Browse files
committed
Prepare v0.5.0 release
1 parent c9366b3 commit 582dc7b

File tree

3 files changed

+63
-2
lines changed

3 files changed

+63
-2
lines changed

CHANGELOG.md

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

3+
## 0.5.0 (2016-06-01)
4+
5+
* BC break: Change $retries to $tries
6+
(#14 by @clue)
7+
8+
```php
9+
// old
10+
// 1 try plus 2 retries => 3 total tries
11+
$c = new ConnectionManagerRepeat($c, 2);
12+
13+
// new
14+
// 3 total tries (1 try plus 2 retries)
15+
$c = new ConnectionManagerRepeat($c, 3);
16+
```
17+
18+
* BC break: Timed connectors now use $loop as last argument
19+
(#13 by @clue)
20+
21+
```php
22+
// old
23+
// $c = new ConnectionManagerDelay($c, $loop, 1.0);
24+
$c = new ConnectionManagerTimeout($c, $loop, 1.0);
25+
26+
// new
27+
$c = new ConnectionManagerTimeout($c, 1.0, $loop);
28+
```
29+
30+
* BC break: Move all connector lists to the constructor
31+
(#12 by @clue)
32+
33+
```php
34+
// old
35+
// $c = new ConnectionManagerConcurrent();
36+
// $c = new ConnectionManagerRandom();
37+
$c = new ConnectionManagerConsecutive();
38+
$c->addConnectionManager($c1);
39+
$c->addConnectionManager($c2);
40+
41+
// new
42+
$c = new ConnectionManagerConsecutive(array(
43+
$c1,
44+
$c2
45+
));
46+
```
47+
48+
* BC break: ConnectionManagerSelective now accepts connector list in constructor
49+
(#11 by @clue)
50+
51+
```php
52+
// old
53+
$c = new ConnectionManagerSelective();
54+
$c->addConnectionManagerFor($c1, 'host1');
55+
$c->addConnectionManagerFor($c2, 'host2');
56+
57+
// new
58+
$c = new ConnectionManagerSelective(array(
59+
'host1' => $c1,
60+
'host2' => $c2
61+
));
62+
```
63+
364
## 0.4.0 (2016-05-30)
465

566
* Feature: Add `ConnectionManagerConcurrent`

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ The recommended way to install this library is [through Composer](http://getcomp
202202
This will install the latest supported version:
203203

204204
```bash
205-
$ composer require clue/connection-manager-extra:^0.4
205+
$ composer require clue/connection-manager-extra:^0.5
206206
```
207207

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

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "clue/connection-manager-extra",
3-
"description": "Extra decorators for creating async TCP/IP connections built upon react/socket-client",
3+
"description": "Extra decorators for creating async TCP/IP connections, built on top of React PHP's SocketClient",
44
"keywords": ["SocketClient", "network", "connection", "timeout", "delay", "reject", "repeat", "retry", "random", "acl", "firewall", "ReactPHP"],
55
"homepage": "https://github.com/clue/php-connection-manager-extra",
66
"license": "MIT",

0 commit comments

Comments
 (0)