You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6-33Lines changed: 6 additions & 33 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,120 +5,93 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
6
and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
8
-
## [Unreleased]
9
-
8
+
## [2.0.0] - 2019-05-10
10
9
### Added
11
-
12
10
- Use `phpstan` as a dev dependency to detect bugs
13
11
14
12
### Changed
15
-
16
13
- Always catches exceptions
17
14
- Create separate classes for error formatters
18
15
- Allow any number of formatters to be used
19
16
- Allow any exception to define HTTP status code
20
17
21
-
## [1.2.0] - 2018-08-04
18
+
### Removed
19
+
- Ability to handle responses with http error codes (400-599). A new package will be created for that. This package only handles exceptions.
20
+
-`HttpErrorException` class (that was simply an extension of `Middlewares\Utils\HttpErrorException`). You can use `Middlewares\Utils\HttpErrorException` directly.
22
21
22
+
## [1.2.0] - 2018-08-04
23
23
### Added
24
-
25
24
- PSR-17 support
26
25
- Added a first argument to the constructor of `ErrorHandlerDefault` to customize the `ResponseFactoryInterface`
27
26
28
27
## [1.1.0] - 2018-06-25
29
-
30
28
### Changed
31
-
32
29
- Use `HttpErrorException` from utils package
33
30
34
31
## [1.0.0] - 2018-01-26
35
-
36
32
### Added
37
-
38
33
- Improved testing and added code coverage reporting
39
34
- Added tests for PHP 7.2
40
35
41
36
### Changed
42
-
43
37
- Upgraded to the final version of PSR-15 `psr/http-server-middleware`
44
38
45
39
### Fixed
46
-
47
40
- Updated license year
48
41
49
42
## [0.9.0] - 2017-12-16
50
-
51
43
### Changed
52
-
53
44
- The request handler used to generate the response must implement `Interop\Http\Server\RequestHandlerInterface`. Removed support for callables.
54
45
55
46
### Removed
56
-
57
47
- Removed `arguments()` option.
58
48
59
49
## [0.8.0] - 2017-11-13
60
-
61
50
### Changed
62
-
63
51
- Replaced `http-interop/http-middleware` with `http-interop/http-server-middleware`.
64
52
65
53
### Removed
66
-
67
54
- Removed support for PHP 5.x.
68
55
69
56
## [0.7.0] - 2017-09-21
70
-
71
57
### Changed
72
-
73
58
- Append `.dist` suffix to phpcs.xml and phpunit.xml files
74
59
- Changed the configuration of phpcs and php_cs
75
60
- Upgraded phpunit to the latest version and improved its config file
76
61
- Updated to `http-interop/http-middleware#0.5`
77
62
78
63
## [0.6.0] - 2017-03-26
79
-
80
64
### Changed
81
-
82
65
- Added `Middlewares\HttpErrorException` class to allow to pass data context to the error handler
83
66
- Changed the error handler signature. The attribute `error` contains an instance of `Middlewares\HttpErrorException` instead an array.
84
67
- Updated to `middlewares/utils#~0.11`
85
68
86
69
## [0.5.0] - 2017-02-05
87
-
88
70
### Changed
89
-
90
71
- Updated to `middlewares/utils#~0.9`
91
72
92
73
## [0.4.0] - 2016-12-26
93
-
94
74
### Changed
95
-
96
75
- Updated tests
97
76
- Updated to `http-interop/http-middleware#0.4`
98
77
- Updated `friendsofphp/php-cs-fixer#2.0`
99
78
100
79
## [0.3.0] - 2016-11-22
101
-
102
80
### Changed
103
-
104
81
- Updated to `http-interop/http-middleware#0.3`
105
82
106
83
## [0.2.0] - 2016-11-19
107
-
108
84
### Added
109
-
110
85
- New option `attribute()` to change the attribute name used to pass the error info to the handler.
111
86
112
87
### Changed
113
-
114
88
- Changed the handler signature to `function(ServerRequestInterface $request)`.
115
89
- The error info is passed to the handler using an array stored in the request attribute `error`.
0 commit comments