Skip to content

Commit

Permalink
Prepare v0.5.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
clue committed Jun 1, 2016
1 parent c9366b3 commit 582dc7b
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 2 deletions.
61 changes: 61 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,66 @@
# Changelog

## 0.5.0 (2016-06-01)

* BC break: Change $retries to $tries
(#14 by @clue)

```php
// old
// 1 try plus 2 retries => 3 total tries
$c = new ConnectionManagerRepeat($c, 2);

// new
// 3 total tries (1 try plus 2 retries)
$c = new ConnectionManagerRepeat($c, 3);
```

* BC break: Timed connectors now use $loop as last argument
(#13 by @clue)

```php
// old
// $c = new ConnectionManagerDelay($c, $loop, 1.0);
$c = new ConnectionManagerTimeout($c, $loop, 1.0);

// new
$c = new ConnectionManagerTimeout($c, 1.0, $loop);
```

* BC break: Move all connector lists to the constructor
(#12 by @clue)

```php
// old
// $c = new ConnectionManagerConcurrent();
// $c = new ConnectionManagerRandom();
$c = new ConnectionManagerConsecutive();
$c->addConnectionManager($c1);
$c->addConnectionManager($c2);

// new
$c = new ConnectionManagerConsecutive(array(
$c1,
$c2
));
```

* BC break: ConnectionManagerSelective now accepts connector list in constructor
(#11 by @clue)

```php
// old
$c = new ConnectionManagerSelective();
$c->addConnectionManagerFor($c1, 'host1');
$c->addConnectionManagerFor($c2, 'host2');

// new
$c = new ConnectionManagerSelective(array(
'host1' => $c1,
'host2' => $c2
));
```

## 0.4.0 (2016-05-30)

* Feature: Add `ConnectionManagerConcurrent`
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ The recommended way to install this library is [through Composer](http://getcomp
This will install the latest supported version:

```bash
$ composer require clue/connection-manager-extra:^0.4
$ composer require clue/connection-manager-extra:^0.5
```

See also the [CHANGELOG](CHANGELOG.md) for more details about version upgrades.
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clue/connection-manager-extra",
"description": "Extra decorators for creating async TCP/IP connections built upon react/socket-client",
"description": "Extra decorators for creating async TCP/IP connections, built on top of React PHP's SocketClient",
"keywords": ["SocketClient", "network", "connection", "timeout", "delay", "reject", "repeat", "retry", "random", "acl", "firewall", "ReactPHP"],
"homepage": "https://github.com/clue/php-connection-manager-extra",
"license": "MIT",
Expand Down

0 comments on commit 582dc7b

Please sign in to comment.