4 * deps: setprototypeof@1.1.1
9 * Fix error creating objects in some environments
14 * Set constructor name when possible
15 * Use `toidentifier` module to make class names
16 * deps: statuses@'>= 1.5.0 < 2'
22 - perf: remove argument reassignment
23 * deps: setprototypeof@1.1.0
24 * deps: statuses@'>= 1.4.0 < 2'
30 - Remove unnecessary `Buffer` loading
35 * deps: setprototypeof@1.0.3
36 - Fix shim for old browsers
41 * Accept custom 4xx and 5xx status codes in factory
42 * Add deprecation message to `"I'mateapot"` export
43 * Deprecate passing status code as anything except first argument in factory
44 * Deprecate using non-error status codes
45 * Make `message` property enumerable for `HttpError`s
50 * deps: inherits@2.0.3
51 - Fix issue loading in browser
52 * deps: setprototypeof@1.0.2
53 * deps: statuses@'>= 1.3.1 < 2'
58 * Support new code `421 Misdirected Request`
59 * Use `setprototypeof` module to replace `__proto__` setting
60 * deps: statuses@'>= 1.3.0 < 2'
61 - Add `421 Misdirected Request`
62 - perf: enable strict mode
63 * perf: enable strict mode
68 * Add `HttpError` export, for `err instanceof createError.HttpError`
69 * deps: inherits@2.0.1
70 * deps: statuses@'>= 1.2.1 < 2'
71 - Fix message for status 451
72 - Remove incorrect nginx status code
77 * Fix regression where status can be overwritten in `createError` `props`
82 * Construct errors using defined constructors from `createError`
83 * Fix error names that are not identifiers
84 - `createError["I'mateapot"]` is now `createError.ImATeapot`
85 * Set a meaningful `name` property on constructed errors
90 * Fix stack trace from exported function
91 * Remove `arguments.callee` usage
96 * Remove duplicate line
101 * Fix `expose` to be `true` for `ClientError` constructor
111 * Fix dependency version to work with old `npm`s
116 * deps: statuses@~1.1.0
126 * Support Node.js 0.6
127 * Use `inherits` instead of `util`
132 * Fix the way inheriting functions
133 * Support `expose` being provided in properties argument
138 * Default status to 500
139 * Support provided `error` to extend
144 * Fix accepting string message