HISTORY.md
1 v2.1.0 / 2025-03-05 2 ================== 3 4 * deps: 5 * use caret notation for dependency versions 6 * encodeurl@^2.0.0 7 * debug@^4.4.0 8 * remove `ServerResponse.headersSent` support check 9 * remove setImmediate support check 10 * update test dependencies 11 * remove unnecessary devDependency `safe-buffer` 12 * remove `unpipe` package and use native `unpipe()` method 13 * remove unnecessary devDependency `readable-stream` 14 * refactor: use object spread to copy error headers 15 * refactor: use replaceAll instead of replace with a regex 16 * refactor: replace setHeaders function with optimized inline header setting 17 18 v2.0.0 / 2024-09-02 19 ================== 20 21 * drop support for node <18 22 * ignore status message for HTTP/2 (#53) 23 24 v1.3.1 / 2024-09-11 25 ================== 26 27 * deps: encodeurl@~2.0.0 28 29 v1.3.0 / 2024-09-03 30 ================== 31 32 * ignore status message for HTTP/2 (#53) 33 34 v1.2.1 / 2024-09-02 35 ================== 36 37 * Gracefully handle when handling an error and socket is null 38 39 1.2.0 / 2022-03-22 40 ================== 41 42 * Remove set content headers that break response 43 * deps: on-finished@2.4.1 44 * deps: statuses@2.0.1 45 - Rename `425 Unordered Collection` to standard `425 Too Early` 46 47 1.1.2 / 2019-05-09 48 ================== 49 50 * Set stricter `Content-Security-Policy` header 51 * deps: parseurl@~1.3.3 52 * deps: statuses@~1.5.0 53 54 1.1.1 / 2018-03-06 55 ================== 56 57 * Fix 404 output for bad / missing pathnames 58 * deps: encodeurl@~1.0.2 59 - Fix encoding `%` as last character 60 * deps: statuses@~1.4.0 61 62 1.1.0 / 2017-09-24 63 ================== 64 65 * Use `res.headersSent` when available 66 67 1.0.6 / 2017-09-22 68 ================== 69 70 * deps: debug@2.6.9 71 72 1.0.5 / 2017-09-15 73 ================== 74 75 * deps: parseurl@~1.3.2 76 - perf: reduce overhead for full URLs 77 - perf: unroll the "fast-path" `RegExp` 78 79 1.0.4 / 2017-08-03 80 ================== 81 82 * deps: debug@2.6.8 83 84 1.0.3 / 2017-05-16 85 ================== 86 87 * deps: debug@2.6.7 88 - deps: ms@2.0.0 89 90 1.0.2 / 2017-04-22 91 ================== 92 93 * deps: debug@2.6.4 94 - deps: ms@0.7.3 95 96 1.0.1 / 2017-03-21 97 ================== 98 99 * Fix missing `</html>` in HTML document 100 * deps: debug@2.6.3 101 - Fix: `DEBUG_MAX_ARRAY_LENGTH` 102 103 1.0.0 / 2017-02-15 104 ================== 105 106 * Fix exception when `err` cannot be converted to a string 107 * Fully URL-encode the pathname in the 404 message 108 * Only include the pathname in the 404 message 109 * Send complete HTML document 110 * Set `Content-Security-Policy: default-src 'self'` header 111 * deps: debug@2.6.1 112 - Allow colors in workers 113 - Deprecated `DEBUG_FD` environment variable set to `3` or higher 114 - Fix error when running under React Native 115 - Use same color for same namespace 116 - deps: ms@0.7.2 117 118 0.5.1 / 2016-11-12 119 ================== 120 121 * Fix exception when `err.headers` is not an object 122 * deps: statuses@~1.3.1 123 * perf: hoist regular expressions 124 * perf: remove duplicate validation path 125 126 0.5.0 / 2016-06-15 127 ================== 128 129 * Change invalid or non-numeric status code to 500 130 * Overwrite status message to match set status code 131 * Prefer `err.statusCode` if `err.status` is invalid 132 * Set response headers from `err.headers` object 133 * Use `statuses` instead of `http` module for status messages 134 - Includes all defined status messages 135 136 0.4.1 / 2015-12-02 137 ================== 138 139 * deps: escape-html@~1.0.3 140 - perf: enable strict mode 141 - perf: optimize string replacement 142 - perf: use faster string coercion 143 144 0.4.0 / 2015-06-14 145 ================== 146 147 * Fix a false-positive when unpiping in Node.js 0.8 148 * Support `statusCode` property on `Error` objects 149 * Use `unpipe` module for unpiping requests 150 * deps: escape-html@1.0.2 151 * deps: on-finished@~2.3.0 152 - Add defined behavior for HTTP `CONNECT` requests 153 - Add defined behavior for HTTP `Upgrade` requests 154 - deps: ee-first@1.1.1 155 * perf: enable strict mode 156 * perf: remove argument reassignment 157 158 0.3.6 / 2015-05-11 159 ================== 160 161 * deps: debug@~2.2.0 162 - deps: ms@0.7.1 163 164 0.3.5 / 2015-04-22 165 ================== 166 167 * deps: on-finished@~2.2.1 168 - Fix `isFinished(req)` when data buffered 169 170 0.3.4 / 2015-03-15 171 ================== 172 173 * deps: debug@~2.1.3 174 - Fix high intensity foreground color for bold 175 - deps: ms@0.7.0 176 177 0.3.3 / 2015-01-01 178 ================== 179 180 * deps: debug@~2.1.1 181 * deps: on-finished@~2.2.0 182 183 0.3.2 / 2014-10-22 184 ================== 185 186 * deps: on-finished@~2.1.1 187 - Fix handling of pipelined requests 188 189 0.3.1 / 2014-10-16 190 ================== 191 192 * deps: debug@~2.1.0 193 - Implement `DEBUG_FD` env variable support 194 195 0.3.0 / 2014-09-17 196 ================== 197 198 * Terminate in progress response only on error 199 * Use `on-finished` to determine request status 200 201 0.2.0 / 2014-09-03 202 ================== 203 204 * Set `X-Content-Type-Options: nosniff` header 205 * deps: debug@~2.0.0 206 207 0.1.0 / 2014-07-16 208 ================== 209 210 * Respond after request fully read 211 - prevents hung responses and socket hang ups 212 * deps: debug@1.0.4 213 214 0.0.3 / 2014-07-11 215 ================== 216 217 * deps: debug@1.0.3 218 - Add support for multiple wildcards in namespaces 219 220 0.0.2 / 2014-06-19 221 ================== 222 223 * Handle invalid status codes 224 225 0.0.1 / 2014-06-05 226 ================== 227 228 * deps: debug@1.0.2 229 230 0.0.0 / 2014-06-05 231 ================== 232 233 * Extracted from connect/express