Chris@17: # Change Log Chris@0: Chris@0: Chris@17: All notable changes to this project will be documented in this file. Chris@17: Chris@17: The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) Chris@17: and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). Chris@17: Chris@17: Chris@17: ## [Unreleased] Chris@17: Chris@17: Chris@17: ## [1.5.2] - 2018-12-04 Chris@17: Chris@17: ### Fixed Chris@17: Chris@17: - Check body size when getting the message summary Chris@17: Chris@17: Chris@17: ## [1.5.1] - 2018-12-04 Chris@17: Chris@17: ### Fixed Chris@17: Chris@17: - Get the summary of a body only if it is readable Chris@17: Chris@17: Chris@17: ## [1.5.0] - 2018-12-03 Chris@17: Chris@17: ### Added Chris@17: Chris@17: - Response first-line to response string exception (fixes #145) Chris@17: - A test for #129 behavior Chris@17: - `get_message_body_summary` function in order to get the message summary Chris@17: - `3gp` and `mkv` mime types Chris@17: Chris@17: ### Changed Chris@17: Chris@17: - Clarify exception message when stream is detached Chris@17: Chris@17: ### Deprecated Chris@17: Chris@17: - Deprecated parsing folded header lines as per RFC 7230 Chris@17: Chris@17: ### Fixed Chris@17: Chris@17: - Fix `AppendStream::detach` to not close streams Chris@17: - `InflateStream` preserves `isSeekable` attribute of the underlying stream Chris@17: - `ServerRequest::getUriFromGlobals` to support URLs in query parameters Chris@17: Chris@17: Chris@17: Several other fixes and improvements. Chris@17: Chris@17: Chris@17: ## [1.4.2] - 2017-03-20 Chris@17: Chris@17: ### Fixed Chris@17: Chris@17: - Reverted BC break to `Uri::resolve` and `Uri::removeDotSegments` by removing Chris@0: calls to `trigger_error` when deprecated methods are invoked. Chris@0: Chris@0: Chris@17: ## [1.4.1] - 2017-02-27 Chris@17: Chris@17: ### Added Chris@17: Chris@17: - Rriggering of silenced deprecation warnings. Chris@17: Chris@17: ### Fixed Chris@17: Chris@17: - Reverted BC break by reintroducing behavior to automagically fix a URI with a Chris@0: relative path and an authority by adding a leading slash to the path. It's only Chris@0: deprecated now. Chris@0: Chris@0: Chris@17: ## [1.4.0] - 2017-02-21 Chris@17: Chris@17: ### Added Chris@17: Chris@17: - Added common URI utility methods based on RFC 3986 (see documentation in the readme): Chris@0: - `Uri::isDefaultPort` Chris@0: - `Uri::isAbsolute` Chris@0: - `Uri::isNetworkPathReference` Chris@0: - `Uri::isAbsolutePathReference` Chris@0: - `Uri::isRelativePathReference` Chris@0: - `Uri::isSameDocumentReference` Chris@0: - `Uri::composeComponents` Chris@0: - `UriNormalizer::normalize` Chris@0: - `UriNormalizer::isEquivalent` Chris@0: - `UriResolver::relativize` Chris@0: Chris@17: ### Changed Chris@0: Chris@17: - Ensure `ServerRequest::getUriFromGlobals` returns a URI in absolute form. Chris@17: - Allow `parse_response` to parse a response without delimiting space and reason. Chris@17: - Ensure each URI modification results in a valid URI according to PSR-7 discussions. Chris@17: Invalid modifications will throw an exception instead of returning a wrong URI or Chris@17: doing some magic. Chris@17: - `(new Uri)->withPath('foo')->withHost('example.com')` will throw an exception Chris@17: because the path of a URI with an authority must start with a slash "/" or be empty Chris@17: - `(new Uri())->withScheme('http')` will return `'http://localhost'` Chris@17: Chris@17: ### Deprecated Chris@17: Chris@17: - `Uri::resolve` in favor of `UriResolver::resolve` Chris@17: - `Uri::removeDotSegments` in favor of `UriResolver::removeDotSegments` Chris@17: Chris@17: ### Fixed Chris@17: Chris@17: - `Stream::read` when length parameter <= 0. Chris@17: - `copy_to_stream` reads bytes in chunks instead of `maxLen` into memory. Chris@17: - `ServerRequest::getUriFromGlobals` when `Host` header contains port. Chris@17: - Compatibility of URIs with `file` scheme and empty host. Chris@17: Chris@17: Chris@17: ## [1.3.1] - 2016-06-25 Chris@17: Chris@17: ### Fixed Chris@17: Chris@17: - `Uri::__toString` for network path references, e.g. `//example.org`. Chris@17: - Missing lowercase normalization for host. Chris@17: - Handling of URI components in case they are `'0'` in a lot of places, Chris@0: e.g. as a user info password. Chris@17: - `Uri::withAddedHeader` to correctly merge headers with different case. Chris@17: - Trimming of header values in `Uri::withAddedHeader`. Header values may Chris@0: be surrounded by whitespace which should be ignored according to RFC 7230 Chris@0: Section 3.2.4. This does not apply to header names. Chris@17: - `Uri::withAddedHeader` with an array of header values. Chris@17: - `Uri::resolve` when base path has no slash and handling of fragment. Chris@17: - Handling of encoding in `Uri::with(out)QueryValue` so one can pass the Chris@0: key/value both in encoded as well as decoded form to those methods. This is Chris@0: consistent with withPath, withQuery etc. Chris@17: - `ServerRequest::withoutAttribute` when attribute value is null. Chris@0: Chris@0: Chris@17: ## [1.3.0] - 2016-04-13 Chris@17: Chris@17: ### Added Chris@17: Chris@17: - Remaining interfaces needed for full PSR7 compatibility Chris@0: (ServerRequestInterface, UploadedFileInterface, etc.). Chris@17: - Support for stream_for from scalars. Chris@0: Chris@17: ### Changed Chris@0: Chris@17: - Can now extend Uri. Chris@17: Chris@17: ### Fixed Chris@17: - A bug in validating request methods by making it more permissive. Chris@17: Chris@17: Chris@17: ## [1.2.3] - 2016-02-18 Chris@17: Chris@17: ### Fixed Chris@17: Chris@17: - Support in `GuzzleHttp\Psr7\CachingStream` for seeking forward on remote Chris@0: streams, which can sometimes return fewer bytes than requested with `fread`. Chris@17: - Handling of gzipped responses with FNAME headers. Chris@0: Chris@0: Chris@17: ## [1.2.2] - 2016-01-22 Chris@0: Chris@17: ### Added Chris@0: Chris@17: - Support for URIs without any authority. Chris@17: - Support for HTTP 451 'Unavailable For Legal Reasons.' Chris@17: - Support for using '0' as a filename. Chris@17: - Support for including non-standard ports in Host headers. Chris@0: Chris@0: Chris@17: ## [1.2.1] - 2015-11-02 Chris@17: Chris@17: ### Changes Chris@17: Chris@17: - Now supporting negative offsets when seeking to SEEK_END. Chris@17: Chris@17: Chris@17: ## [1.2.0] - 2015-08-15 Chris@17: Chris@17: ### Changed Chris@17: Chris@17: - Body as `"0"` is now properly added to a response. Chris@17: - Now allowing forward seeking in CachingStream. Chris@17: - Now properly parsing HTTP requests that contain proxy targets in Chris@0: `parse_request`. Chris@17: - functions.php is now conditionally required. Chris@17: - user-info is no longer dropped when resolving URIs. Chris@0: Chris@0: Chris@17: ## [1.1.0] - 2015-06-24 Chris@17: Chris@17: ### Changed Chris@17: Chris@17: - URIs can now be relative. Chris@17: - `multipart/form-data` headers are now overridden case-insensitively. Chris@17: - URI paths no longer encode the following characters because they are allowed Chris@0: in URIs: "(", ")", "*", "!", "'" Chris@17: - A port is no longer added to a URI when the scheme is missing and no port is Chris@0: present. Chris@0: Chris@17: Chris@0: ## 1.0.0 - 2015-05-19 Chris@0: Chris@0: Initial release. Chris@0: Chris@0: Currently unsupported: Chris@0: Chris@0: - `Psr\Http\Message\ServerRequestInterface` Chris@0: - `Psr\Http\Message\UploadedFileInterface` Chris@17: Chris@17: Chris@17: Chris@17: [Unreleased]: https://github.com/guzzle/psr7/compare/1.5.2...HEAD Chris@17: [1.5.2]: https://github.com/guzzle/psr7/compare/1.5.1...1.5.2 Chris@17: [1.5.1]: https://github.com/guzzle/psr7/compare/1.5.0...1.5.1 Chris@17: [1.5.0]: https://github.com/guzzle/psr7/compare/1.4.2...1.5.0 Chris@17: [1.4.2]: https://github.com/guzzle/psr7/compare/1.4.1...1.4.2 Chris@17: [1.4.1]: https://github.com/guzzle/psr7/compare/1.4.0...1.4.1 Chris@17: [1.4.0]: https://github.com/guzzle/psr7/compare/1.3.1...1.4.0 Chris@17: [1.3.1]: https://github.com/guzzle/psr7/compare/1.3.0...1.3.1 Chris@17: [1.3.0]: https://github.com/guzzle/psr7/compare/1.2.3...1.3.0 Chris@17: [1.2.3]: https://github.com/guzzle/psr7/compare/1.2.2...1.2.3 Chris@17: [1.2.2]: https://github.com/guzzle/psr7/compare/1.2.1...1.2.2 Chris@17: [1.2.1]: https://github.com/guzzle/psr7/compare/1.2.0...1.2.1 Chris@17: [1.2.0]: https://github.com/guzzle/psr7/compare/1.1.0...1.2.0 Chris@17: [1.1.0]: https://github.com/guzzle/psr7/compare/1.0.0...1.1.0