|
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 | +## 0.2.0 - 2017-05-30 |
| 6 | + |
| 7 | +### Added |
| 8 | + |
| 9 | +- [#4](https://github.com/weierophinney/problem-details/pull/4) adds |
| 10 | + `ProblemDetailsReponseFactoryFactory` for generating a |
| 11 | + `ProblemDetailsResponseFactory` instance. |
| 12 | + |
| 13 | +### Changed |
| 14 | + |
| 15 | +- [#4](https://github.com/weierophinney/problem-details/pull/4) changes the |
| 16 | + `ProblemDetailsResponseFactory` in several ways: |
| 17 | + - It is now instantiable. The constructor accepts a boolean indicating debug |
| 18 | + status (`false` by default), an integer bitmask of JSON encoding flags, a |
| 19 | + PSR-7 `ResponseInterface` instance, and a callable factory for generating a |
| 20 | + writable PSR-7 `StreamInterface` for the final problem details response |
| 21 | + content. |
| 22 | + - `createResponse()` is now an instance method, and its first argument is no |
| 23 | + longer an `Accept` header, but a PSR-7 `ServerRequestInterface` instance. |
| 24 | + - `createResponseFromThrowable()` is now an instance method, and its first |
| 25 | + argument is no longer an `Accept` header, but a PSR-7 |
| 26 | + `ServerRequestInterface` instance. |
| 27 | + |
| 28 | +- [#4](https://github.com/weierophinney/problem-details/pull/4) changes the |
| 29 | + `ProblemDetailsMiddleware`; it now composes a `ProblemDetailsResponseFactory` |
| 30 | + insteead of an `isDebug` flag. Additionally, it no longer wraps processing of |
| 31 | + the delegate in a try/catch block if the request cannot accept JSON or XML. |
| 32 | + |
| 33 | +- [#4](https://github.com/weierophinney/problem-details/pull/4) changes the |
| 34 | + `ProblemDetailsMiddlewareFactory` to inject the `ProblemDetailsMiddleware` |
| 35 | + with a `ProblemDetailsResponseFactory` instead of an `isDebug` flag. |
| 36 | + |
| 37 | +### Deprecated |
| 38 | + |
| 39 | +- Nothing. |
| 40 | + |
| 41 | +### Removed |
| 42 | + |
| 43 | +- [#4](https://github.com/weierophinney/problem-details/pull/4) removes the |
| 44 | + `ProblemDetailsJsonResponse`; use the `ProblemDetailsResponseFactory` instead. |
| 45 | + |
| 46 | +- [#4](https://github.com/weierophinney/problem-details/pull/4) removes the |
| 47 | + `ProblemDetailsXmlResponse`; use the `ProblemDetailsResponseFactory` instead. |
| 48 | + |
| 49 | +- [#4](https://github.com/weierophinney/problem-details/pull/4) removes the |
| 50 | + `CommonProblemDetails` trait; the logic is now incorporated in the |
| 51 | + `ProblemDetailsResponseFactory`. |
| 52 | + |
| 53 | +- [#4](https://github.com/weierophinney/problem-details/pull/4) removes the |
| 54 | + `ProblemDetailsResponse` interface; PSR-7 response prototypes are now used |
| 55 | + instead. |
| 56 | + |
| 57 | +### Fixed |
| 58 | + |
| 59 | +- [#4](https://github.com/weierophinney/problem-details/pull/4) updates JSON |
| 60 | + response generation to allow specifying your own JSON encoding flags. By |
| 61 | + default, it now does pretty JSON, with unescaped slashes and unicode. |
| 62 | + |
5 | 63 | ## 0.1.0 - 2017-05-03 |
6 | 64 |
|
7 | 65 | Initial Release. |
|
0 commit comments