[e3d4e0a] | 1 | # Change Log
|
---|
| 2 |
|
---|
| 3 | All notable changes to this project will be documented in this file.
|
---|
| 4 |
|
---|
| 5 | The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
---|
| 6 | and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
---|
| 7 |
|
---|
| 8 | ## 2.7.0 - 2024-07-18
|
---|
| 9 |
|
---|
| 10 | ### Added
|
---|
| 11 |
|
---|
| 12 | - Add `Utils::redactUserInfo()` method
|
---|
| 13 | - Add ability to encode bools as ints in `Query::build`
|
---|
| 14 |
|
---|
| 15 | ## 2.6.3 - 2024-07-18
|
---|
| 16 |
|
---|
| 17 | ### Fixed
|
---|
| 18 |
|
---|
| 19 | - Make `StreamWrapper::stream_stat()` return `false` if inner stream's size is `null`
|
---|
| 20 |
|
---|
| 21 | ### Changed
|
---|
| 22 |
|
---|
| 23 | - PHP 8.4 support
|
---|
| 24 |
|
---|
| 25 | ## 2.6.2 - 2023-12-03
|
---|
| 26 |
|
---|
| 27 | ### Fixed
|
---|
| 28 |
|
---|
| 29 | - Fixed another issue with the fact that PHP transforms numeric strings in array keys to ints
|
---|
| 30 |
|
---|
| 31 | ### Changed
|
---|
| 32 |
|
---|
| 33 | - Updated links in docs to their canonical versions
|
---|
| 34 | - Replaced `call_user_func*` with native calls
|
---|
| 35 |
|
---|
| 36 | ## 2.6.1 - 2023-08-27
|
---|
| 37 |
|
---|
| 38 | ### Fixed
|
---|
| 39 |
|
---|
| 40 | - Properly handle the fact that PHP transforms numeric strings in array keys to ints
|
---|
| 41 |
|
---|
| 42 | ## 2.6.0 - 2023-08-03
|
---|
| 43 |
|
---|
| 44 | ### Changed
|
---|
| 45 |
|
---|
| 46 | - Updated the mime type map to add some new entries, fix a couple of invalid entries, and remove an invalid entry
|
---|
| 47 | - Fallback to `application/octet-stream` if we are unable to guess the content type for a multipart file upload
|
---|
| 48 |
|
---|
| 49 | ## 2.5.1 - 2023-08-03
|
---|
| 50 |
|
---|
| 51 | ### Fixed
|
---|
| 52 |
|
---|
| 53 | - Corrected mime type for `.acc` files to `audio/aac`
|
---|
| 54 |
|
---|
| 55 | ### Changed
|
---|
| 56 |
|
---|
| 57 | - PHP 8.3 support
|
---|
| 58 |
|
---|
| 59 | ## 2.5.0 - 2023-04-17
|
---|
| 60 |
|
---|
| 61 | ### Changed
|
---|
| 62 |
|
---|
| 63 | - Adjusted `psr/http-message` version constraint to `^1.1 || ^2.0`
|
---|
| 64 |
|
---|
| 65 | ## 2.4.5 - 2023-04-17
|
---|
| 66 |
|
---|
| 67 | ### Fixed
|
---|
| 68 |
|
---|
| 69 | - Prevent possible warnings on unset variables in `ServerRequest::normalizeNestedFileSpec`
|
---|
| 70 | - Fixed `Message::bodySummary` when `preg_match` fails
|
---|
| 71 | - Fixed header validation issue
|
---|
| 72 |
|
---|
| 73 | ## 2.4.4 - 2023-03-09
|
---|
| 74 |
|
---|
| 75 | ### Changed
|
---|
| 76 |
|
---|
| 77 | - Removed the need for `AllowDynamicProperties` in `LazyOpenStream`
|
---|
| 78 |
|
---|
| 79 | ## 2.4.3 - 2022-10-26
|
---|
| 80 |
|
---|
| 81 | ### Changed
|
---|
| 82 |
|
---|
| 83 | - Replaced `sha1(uniqid())` by `bin2hex(random_bytes(20))`
|
---|
| 84 |
|
---|
| 85 | ## 2.4.2 - 2022-10-25
|
---|
| 86 |
|
---|
| 87 | ### Fixed
|
---|
| 88 |
|
---|
| 89 | - Fixed erroneous behaviour when combining host and relative path
|
---|
| 90 |
|
---|
| 91 | ## 2.4.1 - 2022-08-28
|
---|
| 92 |
|
---|
| 93 | ### Fixed
|
---|
| 94 |
|
---|
| 95 | - Rewind body before reading in `Message::bodySummary`
|
---|
| 96 |
|
---|
| 97 | ## 2.4.0 - 2022-06-20
|
---|
| 98 |
|
---|
| 99 | ### Added
|
---|
| 100 |
|
---|
| 101 | - Added provisional PHP 8.2 support
|
---|
| 102 | - Added `UriComparator::isCrossOrigin` method
|
---|
| 103 |
|
---|
| 104 | ## 2.3.0 - 2022-06-09
|
---|
| 105 |
|
---|
| 106 | ### Fixed
|
---|
| 107 |
|
---|
| 108 | - Added `Header::splitList` method
|
---|
| 109 | - Added `Utils::tryGetContents` method
|
---|
| 110 | - Improved `Stream::getContents` method
|
---|
| 111 | - Updated mimetype mappings
|
---|
| 112 |
|
---|
| 113 | ## 2.2.2 - 2022-06-08
|
---|
| 114 |
|
---|
| 115 | ### Fixed
|
---|
| 116 |
|
---|
| 117 | - Fix `Message::parseRequestUri` for numeric headers
|
---|
| 118 | - Re-wrap exceptions thrown in `fread` into runtime exceptions
|
---|
| 119 | - Throw an exception when multipart options is misformatted
|
---|
| 120 |
|
---|
| 121 | ## 2.2.1 - 2022-03-20
|
---|
| 122 |
|
---|
| 123 | ### Fixed
|
---|
| 124 |
|
---|
| 125 | - Correct header value validation
|
---|
| 126 |
|
---|
| 127 | ## 2.2.0 - 2022-03-20
|
---|
| 128 |
|
---|
| 129 | ### Added
|
---|
| 130 |
|
---|
| 131 | - A more compressive list of mime types
|
---|
| 132 | - Add JsonSerializable to Uri
|
---|
| 133 | - Missing return types
|
---|
| 134 |
|
---|
| 135 | ### Fixed
|
---|
| 136 |
|
---|
| 137 | - Bug MultipartStream no `uri` metadata
|
---|
| 138 | - Bug MultipartStream with filename for `data://` streams
|
---|
| 139 | - Fixed new line handling in MultipartStream
|
---|
| 140 | - Reduced RAM usage when copying streams
|
---|
| 141 | - Updated parsing in `Header::normalize()`
|
---|
| 142 |
|
---|
| 143 | ## 2.1.1 - 2022-03-20
|
---|
| 144 |
|
---|
| 145 | ### Fixed
|
---|
| 146 |
|
---|
| 147 | - Validate header values properly
|
---|
| 148 |
|
---|
| 149 | ## 2.1.0 - 2021-10-06
|
---|
| 150 |
|
---|
| 151 | ### Changed
|
---|
| 152 |
|
---|
| 153 | - Attempting to create a `Uri` object from a malformed URI will no longer throw a generic
|
---|
| 154 | `InvalidArgumentException`, but rather a `MalformedUriException`, which inherits from the former
|
---|
| 155 | for backwards compatibility. Callers relying on the exception being thrown to detect invalid
|
---|
| 156 | URIs should catch the new exception.
|
---|
| 157 |
|
---|
| 158 | ### Fixed
|
---|
| 159 |
|
---|
| 160 | - Return `null` in caching stream size if remote size is `null`
|
---|
| 161 |
|
---|
| 162 | ## 2.0.0 - 2021-06-30
|
---|
| 163 |
|
---|
| 164 | Identical to the RC release.
|
---|
| 165 |
|
---|
| 166 | ## 2.0.0@RC-1 - 2021-04-29
|
---|
| 167 |
|
---|
| 168 | ### Fixed
|
---|
| 169 |
|
---|
| 170 | - Handle possibly unset `url` in `stream_get_meta_data`
|
---|
| 171 |
|
---|
| 172 | ## 2.0.0@beta-1 - 2021-03-21
|
---|
| 173 |
|
---|
| 174 | ### Added
|
---|
| 175 |
|
---|
| 176 | - PSR-17 factories
|
---|
| 177 | - Made classes final
|
---|
| 178 | - PHP7 type hints
|
---|
| 179 |
|
---|
| 180 | ### Changed
|
---|
| 181 |
|
---|
| 182 | - When building a query string, booleans are represented as 1 and 0.
|
---|
| 183 |
|
---|
| 184 | ### Removed
|
---|
| 185 |
|
---|
| 186 | - PHP < 7.2 support
|
---|
| 187 | - All functions in the `GuzzleHttp\Psr7` namespace
|
---|
| 188 |
|
---|
| 189 | ## 1.8.1 - 2021-03-21
|
---|
| 190 |
|
---|
| 191 | ### Fixed
|
---|
| 192 |
|
---|
| 193 | - Issue parsing IPv6 URLs
|
---|
| 194 | - Issue modifying ServerRequest lost all its attributes
|
---|
| 195 |
|
---|
| 196 | ## 1.8.0 - 2021-03-21
|
---|
| 197 |
|
---|
| 198 | ### Added
|
---|
| 199 |
|
---|
| 200 | - Locale independent URL parsing
|
---|
| 201 | - Most classes got a `@final` annotation to prepare for 2.0
|
---|
| 202 |
|
---|
| 203 | ### Fixed
|
---|
| 204 |
|
---|
| 205 | - Issue when creating stream from `php://input` and curl-ext is not installed
|
---|
| 206 | - Broken `Utils::tryFopen()` on PHP 8
|
---|
| 207 |
|
---|
| 208 | ## 1.7.0 - 2020-09-30
|
---|
| 209 |
|
---|
| 210 | ### Added
|
---|
| 211 |
|
---|
| 212 | - Replaced functions by static methods
|
---|
| 213 |
|
---|
| 214 | ### Fixed
|
---|
| 215 |
|
---|
| 216 | - Converting a non-seekable stream to a string
|
---|
| 217 | - Handle multiple Set-Cookie correctly
|
---|
| 218 | - Ignore array keys in header values when merging
|
---|
| 219 | - Allow multibyte characters to be parsed in `Message:bodySummary()`
|
---|
| 220 |
|
---|
| 221 | ### Changed
|
---|
| 222 |
|
---|
| 223 | - Restored partial HHVM 3 support
|
---|
| 224 |
|
---|
| 225 |
|
---|
| 226 | ## [1.6.1] - 2019-07-02
|
---|
| 227 |
|
---|
| 228 | ### Fixed
|
---|
| 229 |
|
---|
| 230 | - Accept null and bool header values again
|
---|
| 231 |
|
---|
| 232 |
|
---|
| 233 | ## [1.6.0] - 2019-06-30
|
---|
| 234 |
|
---|
| 235 | ### Added
|
---|
| 236 |
|
---|
| 237 | - Allowed version `^3.0` of `ralouphie/getallheaders` dependency (#244)
|
---|
| 238 | - Added MIME type for WEBP image format (#246)
|
---|
| 239 | - Added more validation of values according to PSR-7 and RFC standards, e.g. status code range (#250, #272)
|
---|
| 240 |
|
---|
| 241 | ### Changed
|
---|
| 242 |
|
---|
| 243 | - Tests don't pass with HHVM 4.0, so HHVM support got dropped. Other libraries like composer have done the same. (#262)
|
---|
| 244 | - Accept port number 0 to be valid (#270)
|
---|
| 245 |
|
---|
| 246 | ### Fixed
|
---|
| 247 |
|
---|
| 248 | - Fixed subsequent reads from `php://input` in ServerRequest (#247)
|
---|
| 249 | - Fixed readable/writable detection for certain stream modes (#248)
|
---|
| 250 | - Fixed encoding of special characters in the `userInfo` component of an URI (#253)
|
---|
| 251 |
|
---|
| 252 |
|
---|
| 253 | ## [1.5.2] - 2018-12-04
|
---|
| 254 |
|
---|
| 255 | ### Fixed
|
---|
| 256 |
|
---|
| 257 | - Check body size when getting the message summary
|
---|
| 258 |
|
---|
| 259 |
|
---|
| 260 | ## [1.5.1] - 2018-12-04
|
---|
| 261 |
|
---|
| 262 | ### Fixed
|
---|
| 263 |
|
---|
| 264 | - Get the summary of a body only if it is readable
|
---|
| 265 |
|
---|
| 266 |
|
---|
| 267 | ## [1.5.0] - 2018-12-03
|
---|
| 268 |
|
---|
| 269 | ### Added
|
---|
| 270 |
|
---|
| 271 | - Response first-line to response string exception (fixes #145)
|
---|
| 272 | - A test for #129 behavior
|
---|
| 273 | - `get_message_body_summary` function in order to get the message summary
|
---|
| 274 | - `3gp` and `mkv` mime types
|
---|
| 275 |
|
---|
| 276 | ### Changed
|
---|
| 277 |
|
---|
| 278 | - Clarify exception message when stream is detached
|
---|
| 279 |
|
---|
| 280 | ### Deprecated
|
---|
| 281 |
|
---|
| 282 | - Deprecated parsing folded header lines as per RFC 7230
|
---|
| 283 |
|
---|
| 284 | ### Fixed
|
---|
| 285 |
|
---|
| 286 | - Fix `AppendStream::detach` to not close streams
|
---|
| 287 | - `InflateStream` preserves `isSeekable` attribute of the underlying stream
|
---|
| 288 | - `ServerRequest::getUriFromGlobals` to support URLs in query parameters
|
---|
| 289 |
|
---|
| 290 |
|
---|
| 291 | Several other fixes and improvements.
|
---|
| 292 |
|
---|
| 293 |
|
---|
| 294 | ## [1.4.2] - 2017-03-20
|
---|
| 295 |
|
---|
| 296 | ### Fixed
|
---|
| 297 |
|
---|
| 298 | - Reverted BC break to `Uri::resolve` and `Uri::removeDotSegments` by removing
|
---|
| 299 | calls to `trigger_error` when deprecated methods are invoked.
|
---|
| 300 |
|
---|
| 301 |
|
---|
| 302 | ## [1.4.1] - 2017-02-27
|
---|
| 303 |
|
---|
| 304 | ### Added
|
---|
| 305 |
|
---|
| 306 | - Rriggering of silenced deprecation warnings.
|
---|
| 307 |
|
---|
| 308 | ### Fixed
|
---|
| 309 |
|
---|
| 310 | - Reverted BC break by reintroducing behavior to automagically fix a URI with a
|
---|
| 311 | relative path and an authority by adding a leading slash to the path. It's only
|
---|
| 312 | deprecated now.
|
---|
| 313 |
|
---|
| 314 |
|
---|
| 315 | ## [1.4.0] - 2017-02-21
|
---|
| 316 |
|
---|
| 317 | ### Added
|
---|
| 318 |
|
---|
| 319 | - Added common URI utility methods based on RFC 3986 (see documentation in the readme):
|
---|
| 320 | - `Uri::isDefaultPort`
|
---|
| 321 | - `Uri::isAbsolute`
|
---|
| 322 | - `Uri::isNetworkPathReference`
|
---|
| 323 | - `Uri::isAbsolutePathReference`
|
---|
| 324 | - `Uri::isRelativePathReference`
|
---|
| 325 | - `Uri::isSameDocumentReference`
|
---|
| 326 | - `Uri::composeComponents`
|
---|
| 327 | - `UriNormalizer::normalize`
|
---|
| 328 | - `UriNormalizer::isEquivalent`
|
---|
| 329 | - `UriResolver::relativize`
|
---|
| 330 |
|
---|
| 331 | ### Changed
|
---|
| 332 |
|
---|
| 333 | - Ensure `ServerRequest::getUriFromGlobals` returns a URI in absolute form.
|
---|
| 334 | - Allow `parse_response` to parse a response without delimiting space and reason.
|
---|
| 335 | - Ensure each URI modification results in a valid URI according to PSR-7 discussions.
|
---|
| 336 | Invalid modifications will throw an exception instead of returning a wrong URI or
|
---|
| 337 | doing some magic.
|
---|
| 338 | - `(new Uri)->withPath('foo')->withHost('example.com')` will throw an exception
|
---|
| 339 | because the path of a URI with an authority must start with a slash "/" or be empty
|
---|
| 340 | - `(new Uri())->withScheme('http')` will return `'http://localhost'`
|
---|
| 341 |
|
---|
| 342 | ### Deprecated
|
---|
| 343 |
|
---|
| 344 | - `Uri::resolve` in favor of `UriResolver::resolve`
|
---|
| 345 | - `Uri::removeDotSegments` in favor of `UriResolver::removeDotSegments`
|
---|
| 346 |
|
---|
| 347 | ### Fixed
|
---|
| 348 |
|
---|
| 349 | - `Stream::read` when length parameter <= 0.
|
---|
| 350 | - `copy_to_stream` reads bytes in chunks instead of `maxLen` into memory.
|
---|
| 351 | - `ServerRequest::getUriFromGlobals` when `Host` header contains port.
|
---|
| 352 | - Compatibility of URIs with `file` scheme and empty host.
|
---|
| 353 |
|
---|
| 354 |
|
---|
| 355 | ## [1.3.1] - 2016-06-25
|
---|
| 356 |
|
---|
| 357 | ### Fixed
|
---|
| 358 |
|
---|
| 359 | - `Uri::__toString` for network path references, e.g. `//example.org`.
|
---|
| 360 | - Missing lowercase normalization for host.
|
---|
| 361 | - Handling of URI components in case they are `'0'` in a lot of places,
|
---|
| 362 | e.g. as a user info password.
|
---|
| 363 | - `Uri::withAddedHeader` to correctly merge headers with different case.
|
---|
| 364 | - Trimming of header values in `Uri::withAddedHeader`. Header values may
|
---|
| 365 | be surrounded by whitespace which should be ignored according to RFC 7230
|
---|
| 366 | Section 3.2.4. This does not apply to header names.
|
---|
| 367 | - `Uri::withAddedHeader` with an array of header values.
|
---|
| 368 | - `Uri::resolve` when base path has no slash and handling of fragment.
|
---|
| 369 | - Handling of encoding in `Uri::with(out)QueryValue` so one can pass the
|
---|
| 370 | key/value both in encoded as well as decoded form to those methods. This is
|
---|
| 371 | consistent with withPath, withQuery etc.
|
---|
| 372 | - `ServerRequest::withoutAttribute` when attribute value is null.
|
---|
| 373 |
|
---|
| 374 |
|
---|
| 375 | ## [1.3.0] - 2016-04-13
|
---|
| 376 |
|
---|
| 377 | ### Added
|
---|
| 378 |
|
---|
| 379 | - Remaining interfaces needed for full PSR7 compatibility
|
---|
| 380 | (ServerRequestInterface, UploadedFileInterface, etc.).
|
---|
| 381 | - Support for stream_for from scalars.
|
---|
| 382 |
|
---|
| 383 | ### Changed
|
---|
| 384 |
|
---|
| 385 | - Can now extend Uri.
|
---|
| 386 |
|
---|
| 387 | ### Fixed
|
---|
| 388 | - A bug in validating request methods by making it more permissive.
|
---|
| 389 |
|
---|
| 390 |
|
---|
| 391 | ## [1.2.3] - 2016-02-18
|
---|
| 392 |
|
---|
| 393 | ### Fixed
|
---|
| 394 |
|
---|
| 395 | - Support in `GuzzleHttp\Psr7\CachingStream` for seeking forward on remote
|
---|
| 396 | streams, which can sometimes return fewer bytes than requested with `fread`.
|
---|
| 397 | - Handling of gzipped responses with FNAME headers.
|
---|
| 398 |
|
---|
| 399 |
|
---|
| 400 | ## [1.2.2] - 2016-01-22
|
---|
| 401 |
|
---|
| 402 | ### Added
|
---|
| 403 |
|
---|
| 404 | - Support for URIs without any authority.
|
---|
| 405 | - Support for HTTP 451 'Unavailable For Legal Reasons.'
|
---|
| 406 | - Support for using '0' as a filename.
|
---|
| 407 | - Support for including non-standard ports in Host headers.
|
---|
| 408 |
|
---|
| 409 |
|
---|
| 410 | ## [1.2.1] - 2015-11-02
|
---|
| 411 |
|
---|
| 412 | ### Changes
|
---|
| 413 |
|
---|
| 414 | - Now supporting negative offsets when seeking to SEEK_END.
|
---|
| 415 |
|
---|
| 416 |
|
---|
| 417 | ## [1.2.0] - 2015-08-15
|
---|
| 418 |
|
---|
| 419 | ### Changed
|
---|
| 420 |
|
---|
| 421 | - Body as `"0"` is now properly added to a response.
|
---|
| 422 | - Now allowing forward seeking in CachingStream.
|
---|
| 423 | - Now properly parsing HTTP requests that contain proxy targets in
|
---|
| 424 | `parse_request`.
|
---|
| 425 | - functions.php is now conditionally required.
|
---|
| 426 | - user-info is no longer dropped when resolving URIs.
|
---|
| 427 |
|
---|
| 428 |
|
---|
| 429 | ## [1.1.0] - 2015-06-24
|
---|
| 430 |
|
---|
| 431 | ### Changed
|
---|
| 432 |
|
---|
| 433 | - URIs can now be relative.
|
---|
| 434 | - `multipart/form-data` headers are now overridden case-insensitively.
|
---|
| 435 | - URI paths no longer encode the following characters because they are allowed
|
---|
| 436 | in URIs: "(", ")", "*", "!", "'"
|
---|
| 437 | - A port is no longer added to a URI when the scheme is missing and no port is
|
---|
| 438 | present.
|
---|
| 439 |
|
---|
| 440 |
|
---|
| 441 | ## 1.0.0 - 2015-05-19
|
---|
| 442 |
|
---|
| 443 | Initial release.
|
---|
| 444 |
|
---|
| 445 | Currently unsupported:
|
---|
| 446 |
|
---|
| 447 | - `Psr\Http\Message\ServerRequestInterface`
|
---|
| 448 | - `Psr\Http\Message\UploadedFileInterface`
|
---|
| 449 |
|
---|
| 450 |
|
---|
| 451 |
|
---|
| 452 | [1.6.0]: https://github.com/guzzle/psr7/compare/1.5.2...1.6.0
|
---|
| 453 | [1.5.2]: https://github.com/guzzle/psr7/compare/1.5.1...1.5.2
|
---|
| 454 | [1.5.1]: https://github.com/guzzle/psr7/compare/1.5.0...1.5.1
|
---|
| 455 | [1.5.0]: https://github.com/guzzle/psr7/compare/1.4.2...1.5.0
|
---|
| 456 | [1.4.2]: https://github.com/guzzle/psr7/compare/1.4.1...1.4.2
|
---|
| 457 | [1.4.1]: https://github.com/guzzle/psr7/compare/1.4.0...1.4.1
|
---|
| 458 | [1.4.0]: https://github.com/guzzle/psr7/compare/1.3.1...1.4.0
|
---|
| 459 | [1.3.1]: https://github.com/guzzle/psr7/compare/1.3.0...1.3.1
|
---|
| 460 | [1.3.0]: https://github.com/guzzle/psr7/compare/1.2.3...1.3.0
|
---|
| 461 | [1.2.3]: https://github.com/guzzle/psr7/compare/1.2.2...1.2.3
|
---|
| 462 | [1.2.2]: https://github.com/guzzle/psr7/compare/1.2.1...1.2.2
|
---|
| 463 | [1.2.1]: https://github.com/guzzle/psr7/compare/1.2.0...1.2.1
|
---|
| 464 | [1.2.0]: https://github.com/guzzle/psr7/compare/1.1.0...1.2.0
|
---|
| 465 | [1.1.0]: https://github.com/guzzle/psr7/compare/1.0.0...1.1.0
|
---|