You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CHANGELOG.md 7.0 KiB

4 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. # Change Log
  2. All notable changes to this project will be documented in this file.
  3. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
  4. and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
  5. ## [Unreleased]
  6. ## [1.6.0]
  7. ### Added
  8. - Allowed version `^3.0` of `ralouphie/getallheaders` dependency (#244)
  9. - Added MIME type for WEBP image format (#246)
  10. - Added more validation of values according to PSR-7 and RFC standards, e.g. status code range (#250, #272)
  11. ### Changed
  12. - Tests don't pass with HHVM 4.0, so HHVM support got dropped. Other libraries like composer have done the same. (#262)
  13. - Accept port number 0 to be valid (#270)
  14. ### Fixed
  15. - Fixed subsequent reads from `php://input` in ServerRequest (#247)
  16. - Fixed readable/writable detection for certain stream modes (#248)
  17. - Fixed encoding of special characters in the `userInfo` component of an URI (#253)
  18. ## [1.5.2] - 2018-12-04
  19. ### Fixed
  20. - Check body size when getting the message summary
  21. ## [1.5.1] - 2018-12-04
  22. ### Fixed
  23. - Get the summary of a body only if it is readable
  24. ## [1.5.0] - 2018-12-03
  25. ### Added
  26. - Response first-line to response string exception (fixes #145)
  27. - A test for #129 behavior
  28. - `get_message_body_summary` function in order to get the message summary
  29. - `3gp` and `mkv` mime types
  30. ### Changed
  31. - Clarify exception message when stream is detached
  32. ### Deprecated
  33. - Deprecated parsing folded header lines as per RFC 7230
  34. ### Fixed
  35. - Fix `AppendStream::detach` to not close streams
  36. - `InflateStream` preserves `isSeekable` attribute of the underlying stream
  37. - `ServerRequest::getUriFromGlobals` to support URLs in query parameters
  38. Several other fixes and improvements.
  39. ## [1.4.2] - 2017-03-20
  40. ### Fixed
  41. - Reverted BC break to `Uri::resolve` and `Uri::removeDotSegments` by removing
  42. calls to `trigger_error` when deprecated methods are invoked.
  43. ## [1.4.1] - 2017-02-27
  44. ### Added
  45. - Rriggering of silenced deprecation warnings.
  46. ### Fixed
  47. - Reverted BC break by reintroducing behavior to automagically fix a URI with a
  48. relative path and an authority by adding a leading slash to the path. It's only
  49. deprecated now.
  50. ## [1.4.0] - 2017-02-21
  51. ### Added
  52. - Added common URI utility methods based on RFC 3986 (see documentation in the readme):
  53. - `Uri::isDefaultPort`
  54. - `Uri::isAbsolute`
  55. - `Uri::isNetworkPathReference`
  56. - `Uri::isAbsolutePathReference`
  57. - `Uri::isRelativePathReference`
  58. - `Uri::isSameDocumentReference`
  59. - `Uri::composeComponents`
  60. - `UriNormalizer::normalize`
  61. - `UriNormalizer::isEquivalent`
  62. - `UriResolver::relativize`
  63. ### Changed
  64. - Ensure `ServerRequest::getUriFromGlobals` returns a URI in absolute form.
  65. - Allow `parse_response` to parse a response without delimiting space and reason.
  66. - Ensure each URI modification results in a valid URI according to PSR-7 discussions.
  67. Invalid modifications will throw an exception instead of returning a wrong URI or
  68. doing some magic.
  69. - `(new Uri)->withPath('foo')->withHost('example.com')` will throw an exception
  70. because the path of a URI with an authority must start with a slash "/" or be empty
  71. - `(new Uri())->withScheme('http')` will return `'http://localhost'`
  72. ### Deprecated
  73. - `Uri::resolve` in favor of `UriResolver::resolve`
  74. - `Uri::removeDotSegments` in favor of `UriResolver::removeDotSegments`
  75. ### Fixed
  76. - `Stream::read` when length parameter <= 0.
  77. - `copy_to_stream` reads bytes in chunks instead of `maxLen` into memory.
  78. - `ServerRequest::getUriFromGlobals` when `Host` header contains port.
  79. - Compatibility of URIs with `file` scheme and empty host.
  80. ## [1.3.1] - 2016-06-25
  81. ### Fixed
  82. - `Uri::__toString` for network path references, e.g. `//example.org`.
  83. - Missing lowercase normalization for host.
  84. - Handling of URI components in case they are `'0'` in a lot of places,
  85. e.g. as a user info password.
  86. - `Uri::withAddedHeader` to correctly merge headers with different case.
  87. - Trimming of header values in `Uri::withAddedHeader`. Header values may
  88. be surrounded by whitespace which should be ignored according to RFC 7230
  89. Section 3.2.4. This does not apply to header names.
  90. - `Uri::withAddedHeader` with an array of header values.
  91. - `Uri::resolve` when base path has no slash and handling of fragment.
  92. - Handling of encoding in `Uri::with(out)QueryValue` so one can pass the
  93. key/value both in encoded as well as decoded form to those methods. This is
  94. consistent with withPath, withQuery etc.
  95. - `ServerRequest::withoutAttribute` when attribute value is null.
  96. ## [1.3.0] - 2016-04-13
  97. ### Added
  98. - Remaining interfaces needed for full PSR7 compatibility
  99. (ServerRequestInterface, UploadedFileInterface, etc.).
  100. - Support for stream_for from scalars.
  101. ### Changed
  102. - Can now extend Uri.
  103. ### Fixed
  104. - A bug in validating request methods by making it more permissive.
  105. ## [1.2.3] - 2016-02-18
  106. ### Fixed
  107. - Support in `GuzzleHttp\Psr7\CachingStream` for seeking forward on remote
  108. streams, which can sometimes return fewer bytes than requested with `fread`.
  109. - Handling of gzipped responses with FNAME headers.
  110. ## [1.2.2] - 2016-01-22
  111. ### Added
  112. - Support for URIs without any authority.
  113. - Support for HTTP 451 'Unavailable For Legal Reasons.'
  114. - Support for using '0' as a filename.
  115. - Support for including non-standard ports in Host headers.
  116. ## [1.2.1] - 2015-11-02
  117. ### Changes
  118. - Now supporting negative offsets when seeking to SEEK_END.
  119. ## [1.2.0] - 2015-08-15
  120. ### Changed
  121. - Body as `"0"` is now properly added to a response.
  122. - Now allowing forward seeking in CachingStream.
  123. - Now properly parsing HTTP requests that contain proxy targets in
  124. `parse_request`.
  125. - functions.php is now conditionally required.
  126. - user-info is no longer dropped when resolving URIs.
  127. ## [1.1.0] - 2015-06-24
  128. ### Changed
  129. - URIs can now be relative.
  130. - `multipart/form-data` headers are now overridden case-insensitively.
  131. - URI paths no longer encode the following characters because they are allowed
  132. in URIs: "(", ")", "*", "!", "'"
  133. - A port is no longer added to a URI when the scheme is missing and no port is
  134. present.
  135. ## 1.0.0 - 2015-05-19
  136. Initial release.
  137. Currently unsupported:
  138. - `Psr\Http\Message\ServerRequestInterface`
  139. - `Psr\Http\Message\UploadedFileInterface`
  140. [Unreleased]: https://github.com/guzzle/psr7/compare/1.6.0...HEAD
  141. [1.6.0]: https://github.com/guzzle/psr7/compare/1.5.2...1.6.0
  142. [1.5.2]: https://github.com/guzzle/psr7/compare/1.5.1...1.5.2
  143. [1.5.1]: https://github.com/guzzle/psr7/compare/1.5.0...1.5.1
  144. [1.5.0]: https://github.com/guzzle/psr7/compare/1.4.2...1.5.0
  145. [1.4.2]: https://github.com/guzzle/psr7/compare/1.4.1...1.4.2
  146. [1.4.1]: https://github.com/guzzle/psr7/compare/1.4.0...1.4.1
  147. [1.4.0]: https://github.com/guzzle/psr7/compare/1.3.1...1.4.0
  148. [1.3.1]: https://github.com/guzzle/psr7/compare/1.3.0...1.3.1
  149. [1.3.0]: https://github.com/guzzle/psr7/compare/1.2.3...1.3.0
  150. [1.2.3]: https://github.com/guzzle/psr7/compare/1.2.2...1.2.3
  151. [1.2.2]: https://github.com/guzzle/psr7/compare/1.2.1...1.2.2
  152. [1.2.1]: https://github.com/guzzle/psr7/compare/1.2.0...1.2.1
  153. [1.2.0]: https://github.com/guzzle/psr7/compare/1.1.0...1.2.0
  154. [1.1.0]: https://github.com/guzzle/psr7/compare/1.0.0...1.1.0