酒店预订平台
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

CHANGELOG.md 7.8 KiB

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