Skip to content

Commit 4ed32f2

Browse files
committed
Prepare v0.5.0 release
1 parent 7c79c33 commit 4ed32f2

File tree

3 files changed

+63
-5
lines changed

3 files changed

+63
-5
lines changed

CHANGELOG.md

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

3+
## 0.5.0 (2016-03-19)
4+
5+
* Feature / BC break: Support Connector without DNS
6+
(#46 by @clue)
7+
8+
BC break: The `Connector` class now serves as a BC layer only.
9+
The `TcpConnector` and `DnsConnector` classes replace its functionality.
10+
If you're merely *using* this class, then you're *recommended* to upgrade as
11+
per the below snippet – existing code will still work unchanged.
12+
If you're `extend`ing the `Connector` (generally not recommended), then you
13+
may have to rework your class hierarchy.
14+
15+
```php
16+
// old (still supported, but marked deprecated)
17+
$connector = new Connector($loop, $resolver);
18+
19+
// new equivalent
20+
$connector = new DnsConnector(new TcpConnector($loop), $resolver);
21+
22+
// new feature: supports connecting to IP addresses only
23+
$connector = new TcpConnector($loop);
24+
```
25+
26+
* Feature: Add socket and SSL/TLS context options to connectors
27+
(#52 by @clue)
28+
29+
* Fix: PHP 5.6+ uses new SSL/TLS context options
30+
(#61 by @clue)
31+
32+
* Fix: Move SSL/TLS context options to SecureConnector
33+
(#43 by @clue)
34+
35+
* Fix: Fix error reporting for invalid addresses
36+
(#47 by @clue)
37+
38+
* Fix: Close stream resource if connection fails
39+
(#48 by @clue)
40+
41+
* First class support for PHP 5.3 through PHP 7 and HHVM
42+
(#53, #54 by @clue)
43+
44+
* Add integration tests for SSL/TLS sockets
45+
(#62 by @clue)
46+
347
## 0.4.4 (2015-09-23)
448

549
* Feature: Add support for Unix domain sockets (UDS) (#41 by @clue)

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,25 @@ $connector->create('/tmp/demo.sock')->then(function (React\Stream\Stream $stream
138138
$loop->run();
139139
```
140140

141+
## Install
142+
143+
The recommended way to install this library is [through Composer](http://getcomposer.org).
144+
[New to Composer?](http://getcomposer.org/doc/00-intro.md)
145+
146+
This will install the latest supported version:
147+
148+
```bash
149+
$ composer require react/socket-client:^0.5
150+
```
151+
152+
If you care a lot about BC, you may also want to look into supporting legacy versions:
153+
154+
```bash
155+
$ composer require "react/socket-client:^0.5||^0.4||^0.3"
156+
```
157+
158+
More details and upgrade guides can be found in the [CHANGELOG](CHANGELOG.md).
159+
141160
## Tests
142161

143162
To run the test suite, you need PHPUnit. Go to the project root and run:

composer.json

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515
"React\\SocketClient\\": "src"
1616
}
1717
},
18-
"extra": {
19-
"branch-alias": {
20-
"dev-master": "0.4-dev"
21-
}
22-
},
2318
"require-dev": {
2419
"clue/block-react": "~1.0"
2520
}

0 commit comments

Comments
 (0)