tag:github.com,2008:https://github.com/chillerlan/php-http-message-utils/releasesRelease notes from php-http-message-utils2024-07-26T16:04:07Ztag:github.com,2008:Repository/352429896/2.2.22024-07-26T16:12:18Z2.2.2<ul>
<li>some minor fixes & code cleanup</li>
<li>CI update (switched phan for phpstan, added phpcs)</li>
</ul>codemashertag:github.com,2008:Repository/352429896/2.2.12024-03-20T17:08:33Z2.2.1<ul>
<li><code>MessageUtil</code>: use decompress() instead of just getContents() to retrieve body contents in the following methods:
<ul>
<li><code>MessageUtil::decodeJSON()</code></li>
<li><code>MessageUtil::decodeXML()</code></li>
<li><code>MessageUtil::toString()</code></li>
<li><code>MessageUtil::toJSON()</code></li>
</ul>
</li>
</ul>codemashertag:github.com,2008:Repository/352429896/2.2.02024-03-15T21:59:01Z2.2.0<ul>
<li>added PSR-18 utility http clients</li>
<li>added <code>MessageUtil:toJSON</code></li>
</ul>codemashertag:github.com,2008:Repository/352429896/2.1.12024-03-09T21:07:29Z2.1.1<ul>
<li><code>HeaderUtil::normalize()</code> (and its helpers) now remove CR and LF characters in header names and values (see <a href="https://nvd.nist.gov/vuln/detail/CVE-2023-29197" rel="nofollow">CVE-2023-29197</a>)</li>
</ul>codemashertag:github.com,2008:Repository/352429896/2.1.02024-03-01T21:38:30Z2.1.0<ul>
<li>added PSR-7 <code>ResponseInterface</code> emitter: <code>ResponseEmitterInterface</code>, <code>ResponseEmitterAbstract</code> and <code>SapiEmitter</code></li>
<li>added a <a href="https://datatracker.ietf.org/doc/html/rfc6265" rel="nofollow">RFC6265</a> <code>Cookie</code> implementation, as well as <code>MessageUtil::setCookie()</code> and <code>MessageUtil::getCookiesFromHeader()</code></li>
<li>fixed array handling in <code>HeaderUtil::normalize()</code></li>
</ul>codemashertag:github.com,2008:Repository/352429896/2.0.32024-02-18T21:52:04Z2.0.3<ul>
<li><code>UriUtil::parseUrl()</code>: return port as integer</li>
</ul>codemashertag:github.com,2008:Repository/352429896/2.0.22024-02-15T19:29:34Z2.0.2<ul>
<li>fixed type error in <code>HeaderUtil::trimValues()</code></li>
<li>added <code>.gitattributes</code></li>
</ul>codemashertag:github.com,2008:Repository/352429896/2.0.12024-02-15T17:59:12Z2.0.1<ul>
<li>explicit nullable types</li>
<li>return type fix for <code>MessageUtil::setContentLengthHeader()</code> and <code>MessageUtil::setContentTypeHeader()</code> (<code>MessageInterface|RequestInterface|ResponseInterface|ServerRequestInterface</code> instead of just <code>MessageInterface</code>)</li>
<li>cleanup</li>
<li>CI updates</li>
</ul>codemashertag:github.com,2008:Repository/352429896/2.0.02023-08-02T16:00:43Z2.0.0<ul>
<li>PHP 8.1+</li>
<li>Cleaned up & moved some things</li>
<li>CI updates</li>
</ul>codemashertag:github.com,2008:Repository/352429896/1.1.02023-02-12T14:34:33Z1.1.0<ul>
<li>branch out PHP 7.4 to <code>v1.x-php7.4</code>, <code>dev-main</code> is now PHP 8.1+</li>
<li><a href="https://github.com/chillerlan/php-http-message-utils/compare/1.0.2...1.1.0">this & that</a></li>
</ul>codemasher