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