tag:github.com,2008:https://github.com/php-http/httplug/releasesRelease notes from httplug2024-09-23T11:40:30Ztag:github.com,2008:Repository/34574921/2.4.12024-09-23T11:42:35Z2.4.1<ul>
<li>Updated code to not raise warnings for nullable parameters in PHP 8.4.</li>
</ul>dbutag:github.com,2008:Repository/34574921/2.4.02023-04-14T15:10:56Z2.4.0<ul>
<li>Allow <code>psr/http-message</code> v2 in addition to v1</li>
<li>Deprecate <code>Http\Client\HttpClient</code>, use <a href="https://www.php-fig.org/psr/psr-18/" rel="nofollow">PSR-18</a> instead</li>
</ul>dbutag:github.com,2008:Repository/34574921/2.3.02022-02-21T09:53:06Z2.3.0<ul>
<li>Enabled the <code>$onRejected</code> callback of <code>HttpRejectedPromise</code> to return a promise for implementing a retry<br>
mechanism <a href="https://github.com/php-http/httplug/pull/168" data-hovercard-type="pull_request" data-hovercard-url="/php-http/httplug/pull/168/hovercard">#168</a></li>
</ul>dbutag:github.com,2008:Repository/34574921/2.2.02020-07-13T15:44:28Z2.2.0<h3>Changed</h3>
<ul>
<li>Support PHP 7.1-8.0</li>
</ul>dbutag:github.com,2008:Repository/34574921/2.1.02019-12-27T10:08:50Z2.1.0<h3>Changed</h3>
<ul>
<li><code>Http\Client\Exception\NetworkException</code> no longer extends <code>Http\Client\Exception\RequestException</code>, in accordance with <a href="https://www.php-fig.org/psr/psr-18/" rel="nofollow">PSR-18</a></li>
</ul>dbutag:github.com,2008:Repository/34574921/v2.0.02018-10-31T09:23:46ZImplementing PSR-18<p>After two years of work the FIG finally accepted our proposal for HTTP Client standard as <a href="https://www.php-fig.org/psr/psr-18/" rel="nofollow">PSR-18</a>. This is a huge step in the life of HTTPlug.</p>
<p>Many thanks to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Nyholm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Nyholm">@Nyholm</a> who spearheaded the effort from the very first moment and worked extremely hard to pull this off. Thanks to the working group and everyone else, who made this possible.</p>sagikazarmarktag:github.com,2008:Repository/34574921/v1.1.02016-08-31T08:57:30ZFix issue with promises<p>During the development of plugins we faced a problem with exceptions thrown in plugins.</p>
<p>Any exceptions not implementing <code>Http\Client\Exception</code> ended up in an invalid argument error because of these lines:</p>
<p><a href="https://github.com/php-http/promise/blob/v1.0.0/src/RejectedPromise.php#L36-L38">https://github.com/php-http/promise/blob/v1.0.0/src/RejectedPromise.php#L36-L38</a></p>
<p>This type leak allowed to inject an exception to be passed to the onRejected callback of a Promise.</p>
<p>In the current release we introduced HTTP specific promises which does not catch all exceptions, but HTTP ones. Every other exception will be thrown immediately.</p>sagikazarmarktag:github.com,2008:Repository/34574921/v1.0.02016-01-26T14:35:50ZFirst stable release<p>Merge pull request <a class="issue-link js-issue-link" href="https://github.com/php-http/httplug/pull/109">#109</a> from php-http/stable_release</p>
<p>Prepare stable release</p>sagikazarmarktag:github.com,2008:Repository/34574921/v1.0.0-RC12016-01-12T16:33:07Zv1.0.0-RC1<p>Prepare RC1 release</p>sagikazarmarktag:github.com,2008:Repository/34574921/v1.0.0-beta2015-12-17T15:26:24ZFirst beta release<p>This release brings a cleaner exception concept which is documented directly in the interfaces.</p>
<p>There is also an initial support for discovering HTTP Clients using <a href="http://puli.io" rel="nofollow">Puli</a>.</p>sagikazarmark