| 1 | 2.0.1 / 2025-11-20
|
|---|
| 2 | ==================
|
|---|
| 3 |
|
|---|
| 4 | * deps: use tilde notation for dependencies
|
|---|
| 5 | * deps: update statuses to 2.0.2
|
|---|
| 6 |
|
|---|
| 7 | 2.0.0 / 2021-12-17
|
|---|
| 8 | ==================
|
|---|
| 9 |
|
|---|
| 10 | * Drop support for Node.js 0.6
|
|---|
| 11 | * Remove `I'mateapot` export; use `ImATeapot` instead
|
|---|
| 12 | * Remove support for status being non-first argument
|
|---|
| 13 | * Rename `UnorderedCollection` constructor to `TooEarly`
|
|---|
| 14 | * deps: depd@2.0.0
|
|---|
| 15 | - Replace internal `eval` usage with `Function` constructor
|
|---|
| 16 | - Use instance methods on `process` to check for listeners
|
|---|
| 17 | * deps: statuses@2.0.1
|
|---|
| 18 | - Fix messaging casing of `418 I'm a Teapot`
|
|---|
| 19 | - Remove code 306
|
|---|
| 20 | - Rename `425 Unordered Collection` to standard `425 Too Early`
|
|---|
| 21 |
|
|---|
| 22 | 2021-11-14 / 1.8.1
|
|---|
| 23 | ==================
|
|---|
| 24 |
|
|---|
| 25 | * deps: toidentifier@1.0.1
|
|---|
| 26 |
|
|---|
| 27 | 2020-06-29 / 1.8.0
|
|---|
| 28 | ==================
|
|---|
| 29 |
|
|---|
| 30 | * Add `isHttpError` export to determine if value is an HTTP error
|
|---|
| 31 | * deps: setprototypeof@1.2.0
|
|---|
| 32 |
|
|---|
| 33 | 2019-06-24 / 1.7.3
|
|---|
| 34 | ==================
|
|---|
| 35 |
|
|---|
| 36 | * deps: inherits@2.0.4
|
|---|
| 37 |
|
|---|
| 38 | 2019-02-18 / 1.7.2
|
|---|
| 39 | ==================
|
|---|
| 40 |
|
|---|
| 41 | * deps: setprototypeof@1.1.1
|
|---|
| 42 |
|
|---|
| 43 | 2018-09-08 / 1.7.1
|
|---|
| 44 | ==================
|
|---|
| 45 |
|
|---|
| 46 | * Fix error creating objects in some environments
|
|---|
| 47 |
|
|---|
| 48 | 2018-07-30 / 1.7.0
|
|---|
| 49 | ==================
|
|---|
| 50 |
|
|---|
| 51 | * Set constructor name when possible
|
|---|
| 52 | * Use `toidentifier` module to make class names
|
|---|
| 53 | * deps: statuses@'>= 1.5.0 < 2'
|
|---|
| 54 |
|
|---|
| 55 | 2018-03-29 / 1.6.3
|
|---|
| 56 | ==================
|
|---|
| 57 |
|
|---|
| 58 | * deps: depd@~1.1.2
|
|---|
| 59 | - perf: remove argument reassignment
|
|---|
| 60 | * deps: setprototypeof@1.1.0
|
|---|
| 61 | * deps: statuses@'>= 1.4.0 < 2'
|
|---|
| 62 |
|
|---|
| 63 | 2017-08-04 / 1.6.2
|
|---|
| 64 | ==================
|
|---|
| 65 |
|
|---|
| 66 | * deps: depd@1.1.1
|
|---|
| 67 | - Remove unnecessary `Buffer` loading
|
|---|
| 68 |
|
|---|
| 69 | 2017-02-20 / 1.6.1
|
|---|
| 70 | ==================
|
|---|
| 71 |
|
|---|
| 72 | * deps: setprototypeof@1.0.3
|
|---|
| 73 | - Fix shim for old browsers
|
|---|
| 74 |
|
|---|
| 75 | 2017-02-14 / 1.6.0
|
|---|
| 76 | ==================
|
|---|
| 77 |
|
|---|
| 78 | * Accept custom 4xx and 5xx status codes in factory
|
|---|
| 79 | * Add deprecation message to `"I'mateapot"` export
|
|---|
| 80 | * Deprecate passing status code as anything except first argument in factory
|
|---|
| 81 | * Deprecate using non-error status codes
|
|---|
| 82 | * Make `message` property enumerable for `HttpError`s
|
|---|
| 83 |
|
|---|
| 84 | 2016-11-16 / 1.5.1
|
|---|
| 85 | ==================
|
|---|
| 86 |
|
|---|
| 87 | * deps: inherits@2.0.3
|
|---|
| 88 | - Fix issue loading in browser
|
|---|
| 89 | * deps: setprototypeof@1.0.2
|
|---|
| 90 | * deps: statuses@'>= 1.3.1 < 2'
|
|---|
| 91 |
|
|---|
| 92 | 2016-05-18 / 1.5.0
|
|---|
| 93 | ==================
|
|---|
| 94 |
|
|---|
| 95 | * Support new code `421 Misdirected Request`
|
|---|
| 96 | * Use `setprototypeof` module to replace `__proto__` setting
|
|---|
| 97 | * deps: statuses@'>= 1.3.0 < 2'
|
|---|
| 98 | - Add `421 Misdirected Request`
|
|---|
| 99 | - perf: enable strict mode
|
|---|
| 100 | * perf: enable strict mode
|
|---|
| 101 |
|
|---|
| 102 | 2016-01-28 / 1.4.0
|
|---|
| 103 | ==================
|
|---|
| 104 |
|
|---|
| 105 | * Add `HttpError` export, for `err instanceof createError.HttpError`
|
|---|
| 106 | * deps: inherits@2.0.1
|
|---|
| 107 | * deps: statuses@'>= 1.2.1 < 2'
|
|---|
| 108 | - Fix message for status 451
|
|---|
| 109 | - Remove incorrect nginx status code
|
|---|
| 110 |
|
|---|
| 111 | 2015-02-02 / 1.3.1
|
|---|
| 112 | ==================
|
|---|
| 113 |
|
|---|
| 114 | * Fix regression where status can be overwritten in `createError` `props`
|
|---|
| 115 |
|
|---|
| 116 | 2015-02-01 / 1.3.0
|
|---|
| 117 | ==================
|
|---|
| 118 |
|
|---|
| 119 | * Construct errors using defined constructors from `createError`
|
|---|
| 120 | * Fix error names that are not identifiers
|
|---|
| 121 | - `createError["I'mateapot"]` is now `createError.ImATeapot`
|
|---|
| 122 | * Set a meaningful `name` property on constructed errors
|
|---|
| 123 |
|
|---|
| 124 | 2014-12-09 / 1.2.8
|
|---|
| 125 | ==================
|
|---|
| 126 |
|
|---|
| 127 | * Fix stack trace from exported function
|
|---|
| 128 | * Remove `arguments.callee` usage
|
|---|
| 129 |
|
|---|
| 130 | 2014-10-14 / 1.2.7
|
|---|
| 131 | ==================
|
|---|
| 132 |
|
|---|
| 133 | * Remove duplicate line
|
|---|
| 134 |
|
|---|
| 135 | 2014-10-02 / 1.2.6
|
|---|
| 136 | ==================
|
|---|
| 137 |
|
|---|
| 138 | * Fix `expose` to be `true` for `ClientError` constructor
|
|---|
| 139 |
|
|---|
| 140 | 2014-09-28 / 1.2.5
|
|---|
| 141 | ==================
|
|---|
| 142 |
|
|---|
| 143 | * deps: statuses@1
|
|---|
| 144 |
|
|---|
| 145 | 2014-09-21 / 1.2.4
|
|---|
| 146 | ==================
|
|---|
| 147 |
|
|---|
| 148 | * Fix dependency version to work with old `npm`s
|
|---|
| 149 |
|
|---|
| 150 | 2014-09-21 / 1.2.3
|
|---|
| 151 | ==================
|
|---|
| 152 |
|
|---|
| 153 | * deps: statuses@~1.1.0
|
|---|
| 154 |
|
|---|
| 155 | 2014-09-21 / 1.2.2
|
|---|
| 156 | ==================
|
|---|
| 157 |
|
|---|
| 158 | * Fix publish error
|
|---|
| 159 |
|
|---|
| 160 | 2014-09-21 / 1.2.1
|
|---|
| 161 | ==================
|
|---|
| 162 |
|
|---|
| 163 | * Support Node.js 0.6
|
|---|
| 164 | * Use `inherits` instead of `util`
|
|---|
| 165 |
|
|---|
| 166 | 2014-09-09 / 1.2.0
|
|---|
| 167 | ==================
|
|---|
| 168 |
|
|---|
| 169 | * Fix the way inheriting functions
|
|---|
| 170 | * Support `expose` being provided in properties argument
|
|---|
| 171 |
|
|---|
| 172 | 2014-09-08 / 1.1.0
|
|---|
| 173 | ==================
|
|---|
| 174 |
|
|---|
| 175 | * Default status to 500
|
|---|
| 176 | * Support provided `error` to extend
|
|---|
| 177 |
|
|---|
| 178 | 2014-09-08 / 1.0.1
|
|---|
| 179 | ==================
|
|---|
| 180 |
|
|---|
| 181 | * Fix accepting string message
|
|---|
| 182 |
|
|---|
| 183 | 2014-09-08 / 1.0.0
|
|---|
| 184 | ==================
|
|---|
| 185 |
|
|---|
| 186 | * Initial release
|
|---|