src
3 years ago
CHANGELOG.md
4 years ago
LICENSE
7 years ago
README.md
7 years ago
composer.json
6 years ago
CHANGELOG.md
198 lines
| 1 | # Change Log |
| 2 | |
| 3 | ## 1.11.0 - 2021-07-11 |
| 4 | |
| 5 | ### Changed |
| 6 | |
| 7 | - Backported from version 2: AddPathPlugin: Do not add the prefix if the URL already has the same prefix. |
| 8 | |
| 9 | ## 1.10.0 - 2019-11-18 |
| 10 | |
| 11 | ### Added |
| 12 | |
| 13 | - Support for Symfony 5 |
| 14 | |
| 15 | ## 1.9.1 - 2019-02-02 |
| 16 | |
| 17 | ### Added |
| 18 | |
| 19 | - Updated type hints in doc blocks. |
| 20 | |
| 21 | ## 1.9.0 - 2019-01-03 |
| 22 | |
| 23 | ### Added |
| 24 | |
| 25 | - Support for PSR-18 clients |
| 26 | - Added traits `VersionBridgePlugin` and `VersionBridgeClient` to help plugins and clients to support both |
| 27 | 1.x and 2.x version of `php-http/client-common` and `php-http/httplug`. |
| 28 | |
| 29 | ### Changed |
| 30 | |
| 31 | - [RetryPlugin] Renamed the configuration options for the exception retry callback from `decider` to `exception_decider` |
| 32 | and `delay` to `exception_delay`. The old names still work but are deprecated. |
| 33 | |
| 34 | ## 1.8.2 - 2018-12-14 |
| 35 | |
| 36 | ### Changed |
| 37 | |
| 38 | - When multiple cookies exist, a single header with all cookies is sent as per RFC 6265 Section 5.4 |
| 39 | - AddPathPlugin will now trim of ending slashes in paths |
| 40 | |
| 41 | ## 1.8.1 - 2018-10-09 |
| 42 | |
| 43 | ### Fixed |
| 44 | |
| 45 | - Reverted change to RetryPlugin so it again waits when retrying to avoid "can only throw objects" error. |
| 46 | |
| 47 | ## 1.8.0 - 2018-09-21 |
| 48 | |
| 49 | ### Added |
| 50 | |
| 51 | - Add an option on ErrorPlugin to only throw exception on response with 5XX status code. |
| 52 | |
| 53 | ### Changed |
| 54 | |
| 55 | - AddPathPlugin no longer add prefix multiple times if a request is restarted - it now only adds the prefix if that request chain has not yet passed through the AddPathPlugin |
| 56 | - RetryPlugin no longer wait for retried requests and use a deferred promise instead |
| 57 | |
| 58 | ### Fixed |
| 59 | |
| 60 | - Decoder plugin will now remove header when there is no more encoding, instead of setting to an empty array |
| 61 | |
| 62 | |
| 63 | ## 1.7.0 - 2017-11-30 |
| 64 | |
| 65 | ### Added |
| 66 | |
| 67 | - Symfony 4 support |
| 68 | |
| 69 | ### Changed |
| 70 | |
| 71 | - Strict comparison in DecoderPlugin |
| 72 | |
| 73 | ## 1.6.0 - 2017-10-16 |
| 74 | |
| 75 | ### Added |
| 76 | |
| 77 | - Add HttpClientPool client to leverage load balancing and fallback mechanism [](http://docs.php-http.org/en/latest/components/client-common.htmlsee the documentation](http://docs.php-http.org/en/latest/components/client-common.html](http://docs.php-http.org/en/latest/components/client-common.html) for more details. |
| 78 | - `PluginClientFactory` to create `PluginClient` instances. |
| 79 | - Added new option 'delay' for `RetryPlugin`. |
| 80 | - Added new option 'decider' for `RetryPlugin`. |
| 81 | - Supports more cookie date formats in the Cookie Plugin |
| 82 | |
| 83 | ### Changed |
| 84 | |
| 85 | - The `RetryPlugin` does now wait between retries. To disable/change this feature you must write something like: |
| 86 | |
| 87 | ```php |
| 88 | $plugin = new RetryPlugin(['delay' => function(RequestInterface $request, Exception $e, $retries) { |
| 89 | return 0; |
| 90 | }); |
| 91 | ``` |
| 92 | |
| 93 | ### Deprecated |
| 94 | |
| 95 | - The `debug_plugins` option for `PluginClient` is deprecated and will be removed in 2.0. Use the decorator design pattern instead like in [](https://github.com/php-http/HttplugBundle/blob/de33f9c14252f22093a5ec7d84f17535ab31a384/Collector/ProfilePlugin.phpProfilePlugin](https://github.com/php-http/HttplugBundle/blob/de33f9c14252f22093a5ec7d84f17535ab31a384/Collector/ProfilePlugin.php](https://github.com/php-http/HttplugBundle/blob/de33f9c14252f22093a5ec7d84f17535ab31a384/Collector/ProfilePlugin.php). |
| 96 | |
| 97 | ## 1.5.0 - 2017-03-30 |
| 98 | |
| 99 | ### Added |
| 100 | |
| 101 | - `QueryDefaultsPlugin` to add default query parameters. |
| 102 | |
| 103 | ## 1.4.2 - 2017-03-18 |
| 104 | |
| 105 | ### Deprecated |
| 106 | |
| 107 | - `DecoderPlugin` does not longer claim to support `compress` content encoding |
| 108 | |
| 109 | ### Fixed |
| 110 | |
| 111 | - `CookiePlugin` allows main domain cookies to be sent/stored for subdomains |
| 112 | - `DecoderPlugin` uses the right `FilteredStream` to handle `deflate` content encoding |
| 113 | |
| 114 | |
| 115 | ## 1.4.1 - 2017-02-20 |
| 116 | |
| 117 | ### Fixed |
| 118 | |
| 119 | - Cast return value of `StreamInterface::getSize` to string in `ContentLengthPlugin` |
| 120 | |
| 121 | |
| 122 | ## 1.4.0 - 2016-11-04 |
| 123 | |
| 124 | ### Added |
| 125 | |
| 126 | - Add Path plugin |
| 127 | - Base URI plugin that combines Add Host and Add Path plugins |
| 128 | |
| 129 | |
| 130 | ## 1.3.0 - 2016-10-16 |
| 131 | |
| 132 | ### Changed |
| 133 | |
| 134 | - Fix Emulated Trait to use Http based promise which respect the HttpAsyncClient interface |
| 135 | - Require Httplug 1.1 where we use HTTP specific promises. |
| 136 | - RedirectPlugin: use the full URL instead of the URI to properly keep track of redirects |
| 137 | - Add AddPathPlugin for API URLs with base path |
| 138 | - Add BaseUriPlugin that combines AddHostPlugin and AddPathPlugin |
| 139 | |
| 140 | |
| 141 | ## 1.2.1 - 2016-07-26 |
| 142 | |
| 143 | ### Changed |
| 144 | |
| 145 | - AddHostPlugin also sets the port if specified |
| 146 | |
| 147 | |
| 148 | ## 1.2.0 - 2016-07-14 |
| 149 | |
| 150 | ### Added |
| 151 | |
| 152 | - Suggest separate plugins in composer.json |
| 153 | - Introduced `debug_plugins` option for `PluginClient` |
| 154 | |
| 155 | |
| 156 | ## 1.1.0 - 2016-05-04 |
| 157 | |
| 158 | ### Added |
| 159 | |
| 160 | - Add a flexible http client providing both contract, and only emulating what's necessary |
| 161 | - HTTP Client Router: route requests to underlying clients |
| 162 | - Plugin client and core plugins moved here from `php-http/plugins` |
| 163 | |
| 164 | ### Deprecated |
| 165 | |
| 166 | - Extending client classes, they will be made final in version 2.0 |
| 167 | |
| 168 | |
| 169 | ## 1.0.0 - 2016-01-27 |
| 170 | |
| 171 | ### Changed |
| 172 | |
| 173 | - Remove useless interface in BatchException |
| 174 | |
| 175 | |
| 176 | ## 0.2.0 - 2016-01-12 |
| 177 | |
| 178 | ### Changed |
| 179 | |
| 180 | - Updated package files |
| 181 | - Updated HTTPlug to RC1 |
| 182 | |
| 183 | |
| 184 | ## 0.1.1 - 2015-12-26 |
| 185 | |
| 186 | ### Added |
| 187 | |
| 188 | - Emulated clients |
| 189 | |
| 190 | |
| 191 | ## 0.1.0 - 2015-12-25 |
| 192 | |
| 193 | ### Added |
| 194 | |
| 195 | - Batch client from utils |
| 196 | - Methods client from utils |
| 197 | - Emulators and decorators from client-tools |
| 198 |