schangxiang@126.com
2025-09-19 0821aa23eabe557c0d9ef5dbe6989c68be35d1fe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
 
4.1.0 / 2018-08-19
==================
 
**fixes**
  * [[`d4291c2`](http://github.com/koajs/onerror/commit/d4291c29319dee23d745bb7f7a37ca1e86741691)] - fix: the req data should be consumed on error (#33) (fengmk2 <<fengmk2@gmail.com>>)
 
4.0.1 / 2018-08-19
==================
 
**fixes**
  * [[`46a79dd`](http://github.com/koajs/onerror/commit/46a79ddcf81434dd2974ed7906f67ca4674dbf52)] - fix: escape unsafe characters in html response (Simon Ratner <<simon+github@probablyprime.net>>)
 
4.0.0 / 2017-11-09
==================
 
**others**
  * [[`df878e4`](http://github.com/koajs/onerror/commit/df878e4605c91aa55489a249c4093642f16ce96b)] - refactor: support koa 2 (#27) (Yiyu He <<dead_horse@qq.com>>)
 
3.1.0 / 2017-03-02
==================
 
  * feat: can reach err.headerSent in app error listener (#23)
  * feat: non-error wrapper support status and headers (#22)
 
3.0.2 / 2017-02-16
==================
 
  * fix: try to restore non Error instance properties (#20)
  * fix: change the koa-error url (#17)
 
3.0.1 / 2016-10-21
==================
 
  * fix: use absolute path (#16)
 
3.0.0 / 2016-10-21
==================
 
  * fix: Send default text/plain body if message is undefined
  * refactor: remove nunjucks
 
2.1.0 / 2016-10-19
==================
 
  * fix: don't throw when non-error object passed (#15)
  * Return reference to app (#7)
 
2.0.0 / 2016-07-04
==================
 
  * refactor: use nunjucks instead of swig
 
1.3.1 / 2016-03-21
==================
 
  * fix: only unset text headers
 
1.3.0 / 2016-03-10
==================
 
  * feat: support set err.headers
 
1.2.1 / 2015-05-13
==================
 
  * Merge pull request #5 from koajs/fix-test-iojs
  * fix: test run on iojs and upgrade copy-to
 
1.2.0 / 2014-08-08
==================
 
  * fix status in on error
 
1.1.0 / 2014-08-05
==================
 
  * fix link
  * Merge pull request #4 from koajs/custom-accepts
  * update links and add coveralls
  * Support options.accepts custom detect function
  * fix readme
 
1.0.3 / 2014-04-25
==================
 
  * Merge pull request #2 from koajs/redirect
  * Allow `options.redirect = 'http://example/500.html'`.
 
1.0.2 / 2014-04-25
==================
 
  * use path.join
 
1.0.1 / 2014-04-25
==================
 
  * add assert error type
  * update repo
 
1.0.0 / 2014-04-24
==================
 
  * refine readme, bump dependencies
  * fix status
 
0.0.2 / 2014-04-18
==================
 
  * all do not set type
 
0.0.1 / 2014-04-18
==================
 
  * add test
  * fix status
  * rename to koa-onerror
  * refactor
  * update readme
  * update readme
  * error handler by hack ctx.onerror
  * Initial commit