Debian Codegraph @

vendor/clue/connection-manager-extra/CHANGELOG.md

raw
1 # Changelog
2
3 ## 1.4.0 (2026-04-13)
4
5 * Feature: Improve PHP 8.5+ and PHP 8.4+ support and update test environment.
6 (#40, #41 and #43 by @clue)
7
8 * Improve test suite to ensure 100% code coverage and support legacy PHP 7.2 with PHPUnit 8.5.
9 (#42 and #44 by @clue)
10
11 ## 1.3.0 (2022-08-30)
12
13 * Feature: Simplify usage by supporting new default loop.
14 (#33 by @SimonFrings)
15
16 ```php
17 // old (still supported)
18 $connector = new ConnectionManagerTimeout($connector, 3.0, $loop);
19 $delayed = new ConnectionManagerDelayed($connector, 0.5, $loop);
20
21 // new (using default loop)
22 $connector = new ConnectionManagerTimeout($connector, 3.0);
23 $delayed = new ConnectionManagerDelayed($connector, 0.5);
24 ```
25
26 * Feature: Full support for PHP 8.1 and PHP 8.2.
27 (#36 and #37 by @SimonFrings)
28
29 * Feature: Forward compatibility with upcoming Promise v3.
30 (#34 by @clue)
31
32 * Improve test suite and add badge to show number of project installations.
33 (#35 by @SimonFrings and #31 by @PaulRotmann)
34
35 ## 1.2.0 (2020-12-12)
36
37 * Improve test suite and add `.gitattributes` to exclude dev files from exports.
38 Prepare PHP 8 support, update to PHPUnit 9 and simplify test matrix.
39 (#24, #25 and #26 by @clue and #27, #28, #29 and #30 by @SimonFrings)
40
41 ## 1.1.0 (2017-08-03)
42
43 * Feature: Support custom rejection reason for ConnectionManagerReject
44 (#23 by @clue)
45
46 ```php
47 $connector = new ConnectionManagerReject(function ($uri) {
48 throw new RuntimeException($uri . ' blocked');
49 });
50 ```
51
52 ## 1.0.1 (2017-06-23)
53
54 * Fix: Ignore URI scheme when matching selective connectors
55 (#21 by @clue)
56
57 * Fix HHVM build for now again and ignore future HHVM build errors
58 (#22 by @clue)
59
60 ## 1.0.0 (2017-05-09)
61
62 * First stable release, now following SemVer
63
64 > Contains no other changes, so it's actually fully compatible with the v0.7 releases.
65
66 ## 0.7.1 (2017-05-09)
67
68 * Fix: Reject promise for invalid URI passed to ConnectionManagerSelective
69 (#19 by @clue)
70
71 * Feature: Forward compatibility with upcoming Socket v1.0 and v0.8 and
72 upcoming EventLoop v1.0 and v0.5
73 (#18 and #20 by @clue)
74
75 ## 0.7.0 (2017-04-10)
76
77 * Feature / BC break: Replace deprecated SocketClient with new Socket component
78 (#17 by @clue)
79
80 This implies that all connectors from this package now implement the
81 `React\Socket\ConnectorInterface` instead of the legacy
82 `React\SocketClient\ConnectorInterface`.
83
84 ## 0.6.0 (2017-04-07)
85
86 * Feature / BC break: Update SocketClient to v0.7 or v0.6
87 (#16 by @clue)
88
89 * Improve test suite by adding PHPUnit to require-dev
90 (#15 by @clue)
91
92 ## 0.5.0 (2016-06-01)
93
94 * BC break: Change $retries to $tries
95 (#14 by @clue)
96
97 ```php
98 // old
99 // 1 try plus 2 retries => 3 total tries
100 $c = new ConnectionManagerRepeat($c, 2);
101
102 // new
103 // 3 total tries (1 try plus 2 retries)
104 $c = new ConnectionManagerRepeat($c, 3);
105 ```
106
107 * BC break: Timed connectors now use $loop as last argument
108 (#13 by @clue)
109
110 ```php
111 // old
112 // $c = new ConnectionManagerDelay($c, $loop, 1.0);
113 $c = new ConnectionManagerTimeout($c, $loop, 1.0);
114
115 // new
116 $c = new ConnectionManagerTimeout($c, 1.0, $loop);
117 ```
118
119 * BC break: Move all connector lists to the constructor
120 (#12 by @clue)
121
122 ```php
123 // old
124 // $c = new ConnectionManagerConcurrent();
125 // $c = new ConnectionManagerRandom();
126 $c = new ConnectionManagerConsecutive();
127 $c->addConnectionManager($c1);
128 $c->addConnectionManager($c2);
129
130 // new
131 $c = new ConnectionManagerConsecutive(array(
132 $c1,
133 $c2
134 ));
135 ```
136
137 * BC break: ConnectionManagerSelective now accepts connector list in constructor
138 (#11 by @clue)
139
140 ```php
141 // old
142 $c = new ConnectionManagerSelective();
143 $c->addConnectionManagerFor($c1, 'host1');
144 $c->addConnectionManagerFor($c2, 'host2');
145
146 // new
147 $c = new ConnectionManagerSelective(array(
148 'host1' => $c1,
149 'host2' => $c2
150 ));
151 ```
152
153 ## 0.4.0 (2016-05-30)
154
155 * Feature: Add `ConnectionManagerConcurrent`
156 (#10 by @clue)
157
158 * Feature: Support Promise cancellation for all connectors
159 (#9 by @clue)
160
161 ## 0.3.3 (2016-05-29)
162
163 * Fix repetitions for `ConnectionManagerRepeat`
164 (#8 by @clue)
165
166 * First class support for PHP 5.3 through PHP 7 and HHVM
167 (#7 by @clue)
168
169 ## 0.3.2 (2016-03-19)
170
171 * Compatibility with react/socket-client:v0.5 (keeping full BC)
172 (#6 by @clue)
173
174 ## 0.3.1 (2014-09-27)
175
176 * Support React PHP v0.4 (while preserving BC with React PHP v0.3)
177 (#4)
178
179 ## 0.3.0 (2013-06-24)
180
181 * BC break: Switch from (deprecated) `clue/connection-manager` to `react/socket-client`
182 and thus replace each occurance of `getConnect($host, $port)` with `create($host, $port)`
183 (#1)
184
185 * Fix: Timeouts in `ConnectionManagerTimeout` now actually work
186 (#1)
187
188 * Fix: Properly reject promise in `ConnectionManagerSelective` when no targets
189 have been found
190 (#1)
191
192 ## 0.2.0 (2013-02-08)
193
194 * Feature: Add `ConnectionManagerSelective` which works like a network/firewall ACL
195
196 ## 0.1.0 (2013-01-12)
197
198 * First tagged release
199