File tree Expand file tree Collapse file tree 3 files changed +63
-5
lines changed Expand file tree Collapse file tree 3 files changed +63
-5
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
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
+
3
47
## 0.4.4 (2015-09-23)
4
48
5
49
* Feature: Add support for Unix domain sockets (UDS) (#41 by @clue )
Original file line number Diff line number Diff line change @@ -138,6 +138,25 @@ $connector->create('/tmp/demo.sock')->then(function (React\Stream\Stream $stream
138
138
$loop->run();
139
139
```
140
140
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
+
141
160
## Tests
142
161
143
162
To run the test suite, you need PHPUnit. Go to the project root and run:
Original file line number Diff line number Diff line change 15
15
"React\\ SocketClient\\ " : " src"
16
16
}
17
17
},
18
- "extra" : {
19
- "branch-alias" : {
20
- "dev-master" : " 0.4-dev"
21
- }
22
- },
23
18
"require-dev" : {
24
19
"clue/block-react" : " ~1.0"
25
20
}
You can’t perform that action at this time.
0 commit comments