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