|
2 | 2 |
|
3 | 3 | All notable changes to this project will be documented in this file, in reverse chronological order by release.
|
4 | 4 |
|
| 5 | +## 1.5.0 - TBD |
| 6 | + |
| 7 | +### Added |
| 8 | + |
| 9 | +- [#205](https://github.com/zendframework/zend-diactoros/pull/205) adds support |
| 10 | + for PHP 7.2. |
| 11 | + |
| 12 | +- [#250](https://github.com/zendframework/zend-diactoros/pull/250) adds a new |
| 13 | + API to `JsonResponse` to avoid the need for decoding the response body in |
| 14 | + order to make changes to the underlying content. New methods include: |
| 15 | + - `getPayload()`: retrieve the unencoded payload. |
| 16 | + - `withPayload($data)`: create a new instance with the given data. |
| 17 | + - `getEncodingOptions()`: retrieve the flags to use when encoding the payload |
| 18 | + to JSON. |
| 19 | + - `withEncodingOptions(int $encodingOptions)`: create a new instance that uses |
| 20 | + the provided flags when encoding the payload to JSON. |
| 21 | + |
| 22 | +### Changed |
| 23 | + |
| 24 | +- [#249](https://github.com/zendframework/zend-diactoros/pull/249) changes the |
| 25 | + behavior of the various `Uri::with*()` methods slightly: if the value |
| 26 | + represents no change, these methods will return the same instance instead of a |
| 27 | + new one. |
| 28 | + |
| 29 | +- [#248](https://github.com/zendframework/zend-diactoros/pull/248) changes the |
| 30 | + behavior of `Uri::getUserInfo()` slightly: it now (correctly) returns the |
| 31 | + percent-encoded values for the user and/or password, per RFC 3986 Section |
| 32 | + 3.2.1. `withUserInfo()` will percent-encode values, using a mechanism that |
| 33 | + prevents double-encoding. |
| 34 | + |
| 35 | +- [#243](https://github.com/zendframework/zend-diactoros/pull/243) changes the |
| 36 | + exception messages thrown by `UploadedFile::getStream()` and `moveTo()` when |
| 37 | + an upload error exists to include details about the upload error. |
| 38 | + |
| 39 | +- [#233](https://github.com/zendframework/zend-diactoros/pull/233) adds a new |
| 40 | + argument to `SapiStreamEmitter::emit`, `$maxBufferLevel` **between** the |
| 41 | + `$response` and `$maxBufferLength` arguments. This was done because the |
| 42 | + `Server::listen()` method passes only the response and `$maxBufferLevel` to |
| 43 | + emitters; previously, this often meant that streams were being chunked 2 bytes |
| 44 | + at a time versus the expected default of 8kb. |
| 45 | + |
| 46 | + If you were calling the `SapiStreamEmitter::emit()` method manually |
| 47 | + previously, you will need to update your code. |
| 48 | + |
| 49 | +### Deprecated |
| 50 | + |
| 51 | +- Nothing. |
| 52 | + |
| 53 | +### Removed |
| 54 | + |
| 55 | +- [#205](https://github.com/zendframework/zend-diactoros/pull/205) and |
| 56 | + [#243](https://github.com/zendframework/zend-diactoros/pull/243) **remove |
| 57 | + support for PHP versions prior to 5.6 as well as HHVM**. |
| 58 | + |
| 59 | +### Fixed |
| 60 | + |
| 61 | +- [#248](https://github.com/zendframework/zend-diactoros/pull/248) fixes how the |
| 62 | + `Uri` class provides user-info within the URI authority; the value is now |
| 63 | + correctly percent-encoded , per RFC 3986 Section 3.2.1. |
| 64 | + |
5 | 65 | ## 1.4.2 - TBD
|
6 | 66 |
|
7 | 67 | ### Added
|
|
0 commit comments