websocket快速操作工具
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

521 lines
13 KiB

  1. 0.18.0 / 2022-03-23
  2. ===================
  3. * Fix emitted 416 error missing headers property
  4. * Limit the headers removed for 304 response
  5. * deps: depd@2.0.0
  6. - Replace internal `eval` usage with `Function` constructor
  7. - Use instance methods on `process` to check for listeners
  8. * deps: destroy@1.2.0
  9. * deps: http-errors@2.0.0
  10. - deps: depd@2.0.0
  11. - deps: statuses@2.0.1
  12. * deps: on-finished@2.4.1
  13. * deps: statuses@2.0.1
  14. 0.17.2 / 2021-12-11
  15. ===================
  16. * pref: ignore empty http tokens
  17. * deps: http-errors@1.8.1
  18. - deps: inherits@2.0.4
  19. - deps: toidentifier@1.0.1
  20. - deps: setprototypeof@1.2.0
  21. * deps: ms@2.1.3
  22. 0.17.1 / 2019-05-10
  23. ===================
  24. * Set stricter CSP header in redirect & error responses
  25. * deps: range-parser@~1.2.1
  26. 0.17.0 / 2019-05-03
  27. ===================
  28. * deps: http-errors@~1.7.2
  29. - Set constructor name when possible
  30. - Use `toidentifier` module to make class names
  31. - deps: depd@~1.1.2
  32. - deps: setprototypeof@1.1.1
  33. - deps: statuses@'>= 1.5.0 < 2'
  34. * deps: mime@1.6.0
  35. - Add extensions for JPEG-2000 images
  36. - Add new `font/*` types from IANA
  37. - Add WASM mapping
  38. - Update `.bdoc` to `application/bdoc`
  39. - Update `.bmp` to `image/bmp`
  40. - Update `.m4a` to `audio/mp4`
  41. - Update `.rtf` to `application/rtf`
  42. - Update `.wav` to `audio/wav`
  43. - Update `.xml` to `application/xml`
  44. - Update generic extensions to `application/octet-stream`:
  45. `.deb`, `.dll`, `.dmg`, `.exe`, `.iso`, `.msi`
  46. - Use mime-score module to resolve extension conflicts
  47. * deps: ms@2.1.1
  48. - Add `week`/`w` support
  49. - Fix negative number handling
  50. * deps: statuses@~1.5.0
  51. * perf: remove redundant `path.normalize` call
  52. 0.16.2 / 2018-02-07
  53. ===================
  54. * Fix incorrect end tag in default error & redirects
  55. * deps: depd@~1.1.2
  56. - perf: remove argument reassignment
  57. * deps: encodeurl@~1.0.2
  58. - Fix encoding `%` as last character
  59. * deps: statuses@~1.4.0
  60. 0.16.1 / 2017-09-29
  61. ===================
  62. * Fix regression in edge-case behavior for empty `path`
  63. 0.16.0 / 2017-09-27
  64. ===================
  65. * Add `immutable` option
  66. * Fix missing `</html>` in default error & redirects
  67. * Use instance methods on steam to check for listeners
  68. * deps: mime@1.4.1
  69. - Add 70 new types for file extensions
  70. - Set charset as "UTF-8" for .js and .json
  71. * perf: improve path validation speed
  72. 0.15.6 / 2017-09-22
  73. ===================
  74. * deps: debug@2.6.9
  75. * perf: improve `If-Match` token parsing
  76. 0.15.5 / 2017-09-20
  77. ===================
  78. * deps: etag@~1.8.1
  79. - perf: replace regular expression with substring
  80. * deps: fresh@0.5.2
  81. - Fix handling of modified headers with invalid dates
  82. - perf: improve ETag match loop
  83. - perf: improve `If-None-Match` token parsing
  84. 0.15.4 / 2017-08-05
  85. ===================
  86. * deps: debug@2.6.8
  87. * deps: depd@~1.1.1
  88. - Remove unnecessary `Buffer` loading
  89. * deps: http-errors@~1.6.2
  90. - deps: depd@1.1.1
  91. 0.15.3 / 2017-05-16
  92. ===================
  93. * deps: debug@2.6.7
  94. - deps: ms@2.0.0
  95. * deps: ms@2.0.0
  96. 0.15.2 / 2017-04-26
  97. ===================
  98. * deps: debug@2.6.4
  99. - Fix `DEBUG_MAX_ARRAY_LENGTH`
  100. - deps: ms@0.7.3
  101. * deps: ms@1.0.0
  102. 0.15.1 / 2017-03-04
  103. ===================
  104. * Fix issue when `Date.parse` does not return `NaN` on invalid date
  105. * Fix strict violation in broken environments
  106. 0.15.0 / 2017-02-25
  107. ===================
  108. * Support `If-Match` and `If-Unmodified-Since` headers
  109. * Add `res` and `path` arguments to `directory` event
  110. * Remove usage of `res._headers` private field
  111. - Improves compatibility with Node.js 8 nightly
  112. * Send complete HTML document in redirect & error responses
  113. * Set default CSP header in redirect & error responses
  114. * Use `res.getHeaderNames()` when available
  115. * Use `res.headersSent` when available
  116. * deps: debug@2.6.1
  117. - Allow colors in workers
  118. - Deprecated `DEBUG_FD` environment variable set to `3` or higher
  119. - Fix error when running under React Native
  120. - Use same color for same namespace
  121. - deps: ms@0.7.2
  122. * deps: etag@~1.8.0
  123. * deps: fresh@0.5.0
  124. - Fix false detection of `no-cache` request directive
  125. - Fix incorrect result when `If-None-Match` has both `*` and ETags
  126. - Fix weak `ETag` matching to match spec
  127. - perf: delay reading header values until needed
  128. - perf: enable strict mode
  129. - perf: hoist regular expressions
  130. - perf: remove duplicate conditional
  131. - perf: remove unnecessary boolean coercions
  132. - perf: skip checking modified time if ETag check failed
  133. - perf: skip parsing `If-None-Match` when no `ETag` header
  134. - perf: use `Date.parse` instead of `new Date`
  135. * deps: http-errors@~1.6.1
  136. - Make `message` property enumerable for `HttpError`s
  137. - deps: setprototypeof@1.0.3
  138. 0.14.2 / 2017-01-23
  139. ===================
  140. * deps: http-errors@~1.5.1
  141. - deps: inherits@2.0.3
  142. - deps: setprototypeof@1.0.2
  143. - deps: statuses@'>= 1.3.1 < 2'
  144. * deps: ms@0.7.2
  145. * deps: statuses@~1.3.1
  146. 0.14.1 / 2016-06-09
  147. ===================
  148. * Fix redirect error when `path` contains raw non-URL characters
  149. * Fix redirect when `path` starts with multiple forward slashes
  150. 0.14.0 / 2016-06-06
  151. ===================
  152. * Add `acceptRanges` option
  153. * Add `cacheControl` option
  154. * Attempt to combine multiple ranges into single range
  155. * Correctly inherit from `Stream` class
  156. * Fix `Content-Range` header in 416 responses when using `start`/`end` options
  157. * Fix `Content-Range` header missing from default 416 responses
  158. * Ignore non-byte `Range` headers
  159. * deps: http-errors@~1.5.0
  160. - Add `HttpError` export, for `err instanceof createError.HttpError`
  161. - Support new code `421 Misdirected Request`
  162. - Use `setprototypeof` module to replace `__proto__` setting
  163. - deps: inherits@2.0.1
  164. - deps: statuses@'>= 1.3.0 < 2'
  165. - perf: enable strict mode
  166. * deps: range-parser@~1.2.0
  167. - Fix incorrectly returning -1 when there is at least one valid range
  168. - perf: remove internal function
  169. * deps: statuses@~1.3.0
  170. - Add `421 Misdirected Request`
  171. - perf: enable strict mode
  172. * perf: remove argument reassignment
  173. 0.13.2 / 2016-03-05
  174. ===================
  175. * Fix invalid `Content-Type` header when `send.mime.default_type` unset
  176. 0.13.1 / 2016-01-16
  177. ===================
  178. * deps: depd@~1.1.0
  179. - Support web browser loading
  180. - perf: enable strict mode
  181. * deps: destroy@~1.0.4
  182. - perf: enable strict mode
  183. * deps: escape-html@~1.0.3
  184. - perf: enable strict mode
  185. - perf: optimize string replacement
  186. - perf: use faster string coercion
  187. * deps: range-parser@~1.0.3
  188. - perf: enable strict mode
  189. 0.13.0 / 2015-06-16
  190. ===================
  191. * Allow Node.js HTTP server to set `Date` response header
  192. * Fix incorrectly removing `Content-Location` on 304 response
  193. * Improve the default redirect response headers
  194. * Send appropriate headers on default error response
  195. * Use `http-errors` for standard emitted errors
  196. * Use `statuses` instead of `http` module for status messages
  197. * deps: escape-html@1.0.2
  198. * deps: etag@~1.7.0
  199. - Improve stat performance by removing hashing
  200. * deps: fresh@0.3.0
  201. - Add weak `ETag` matching support
  202. * deps: on-finished@~2.3.0
  203. - Add defined behavior for HTTP `CONNECT` requests
  204. - Add defined behavior for HTTP `Upgrade` requests
  205. - deps: ee-first@1.1.1
  206. * perf: enable strict mode
  207. * perf: remove unnecessary array allocations
  208. 0.12.3 / 2015-05-13
  209. ===================
  210. * deps: debug@~2.2.0
  211. - deps: ms@0.7.1
  212. * deps: depd@~1.0.1
  213. * deps: etag@~1.6.0
  214. - Improve support for JXcore
  215. - Support "fake" stats objects in environments without `fs`
  216. * deps: ms@0.7.1
  217. - Prevent extraordinarily long inputs
  218. * deps: on-finished@~2.2.1
  219. 0.12.2 / 2015-03-13
  220. ===================
  221. * Throw errors early for invalid `extensions` or `index` options
  222. * deps: debug@~2.1.3
  223. - Fix high intensity foreground color for bold
  224. - deps: ms@0.7.0
  225. 0.12.1 / 2015-02-17
  226. ===================
  227. * Fix regression sending zero-length files
  228. 0.12.0 / 2015-02-16
  229. ===================
  230. * Always read the stat size from the file
  231. * Fix mutating passed-in `options`
  232. * deps: mime@1.3.4
  233. 0.11.1 / 2015-01-20
  234. ===================
  235. * Fix `root` path disclosure
  236. 0.11.0 / 2015-01-05
  237. ===================
  238. * deps: debug@~2.1.1
  239. * deps: etag@~1.5.1
  240. - deps: crc@3.2.1
  241. * deps: ms@0.7.0
  242. - Add `milliseconds`
  243. - Add `msecs`
  244. - Add `secs`
  245. - Add `mins`
  246. - Add `hrs`
  247. - Add `yrs`
  248. * deps: on-finished@~2.2.0
  249. 0.10.1 / 2014-10-22
  250. ===================
  251. * deps: on-finished@~2.1.1
  252. - Fix handling of pipelined requests
  253. 0.10.0 / 2014-10-15
  254. ===================
  255. * deps: debug@~2.1.0
  256. - Implement `DEBUG_FD` env variable support
  257. * deps: depd@~1.0.0
  258. * deps: etag@~1.5.0
  259. - Improve string performance
  260. - Slightly improve speed for weak ETags over 1KB
  261. 0.9.3 / 2014-09-24
  262. ==================
  263. * deps: etag@~1.4.0
  264. - Support "fake" stats objects
  265. 0.9.2 / 2014-09-15
  266. ==================
  267. * deps: depd@0.4.5
  268. * deps: etag@~1.3.1
  269. * deps: range-parser@~1.0.2
  270. 0.9.1 / 2014-09-07
  271. ==================
  272. * deps: fresh@0.2.4
  273. 0.9.0 / 2014-09-07
  274. ==================
  275. * Add `lastModified` option
  276. * Use `etag` to generate `ETag` header
  277. * deps: debug@~2.0.0
  278. 0.8.5 / 2014-09-04
  279. ==================
  280. * Fix malicious path detection for empty string path
  281. 0.8.4 / 2014-09-04
  282. ==================
  283. * Fix a path traversal issue when using `root`
  284. 0.8.3 / 2014-08-16
  285. ==================
  286. * deps: destroy@1.0.3
  287. - renamed from dethroy
  288. * deps: on-finished@2.1.0
  289. 0.8.2 / 2014-08-14
  290. ==================
  291. * Work around `fd` leak in Node.js 0.10 for `fs.ReadStream`
  292. * deps: dethroy@1.0.2
  293. 0.8.1 / 2014-08-05
  294. ==================
  295. * Fix `extensions` behavior when file already has extension
  296. 0.8.0 / 2014-08-05
  297. ==================
  298. * Add `extensions` option
  299. 0.7.4 / 2014-08-04
  300. ==================
  301. * Fix serving index files without root dir
  302. 0.7.3 / 2014-07-29
  303. ==================
  304. * Fix incorrect 403 on Windows and Node.js 0.11
  305. 0.7.2 / 2014-07-27
  306. ==================
  307. * deps: depd@0.4.4
  308. - Work-around v8 generating empty stack traces
  309. 0.7.1 / 2014-07-26
  310. ==================
  311. * deps: depd@0.4.3
  312. - Fix exception when global `Error.stackTraceLimit` is too low
  313. 0.7.0 / 2014-07-20
  314. ==================
  315. * Deprecate `hidden` option; use `dotfiles` option
  316. * Add `dotfiles` option
  317. * deps: debug@1.0.4
  318. * deps: depd@0.4.2
  319. - Add `TRACE_DEPRECATION` environment variable
  320. - Remove non-standard grey color from color output
  321. - Support `--no-deprecation` argument
  322. - Support `--trace-deprecation` argument
  323. 0.6.0 / 2014-07-11
  324. ==================
  325. * Deprecate `from` option; use `root` option
  326. * Deprecate `send.etag()` -- use `etag` in `options`
  327. * Deprecate `send.hidden()` -- use `hidden` in `options`
  328. * Deprecate `send.index()` -- use `index` in `options`
  329. * Deprecate `send.maxage()` -- use `maxAge` in `options`
  330. * Deprecate `send.root()` -- use `root` in `options`
  331. * Cap `maxAge` value to 1 year
  332. * deps: debug@1.0.3
  333. - Add support for multiple wildcards in namespaces
  334. 0.5.0 / 2014-06-28
  335. ==================
  336. * Accept string for `maxAge` (converted by `ms`)
  337. * Add `headers` event
  338. * Include link in default redirect response
  339. * Use `EventEmitter.listenerCount` to count listeners
  340. 0.4.3 / 2014-06-11
  341. ==================
  342. * Do not throw un-catchable error on file open race condition
  343. * Use `escape-html` for HTML escaping
  344. * deps: debug@1.0.2
  345. - fix some debugging output colors on node.js 0.8
  346. * deps: finished@1.2.2
  347. * deps: fresh@0.2.2
  348. 0.4.2 / 2014-06-09
  349. ==================
  350. * fix "event emitter leak" warnings
  351. * deps: debug@1.0.1
  352. * deps: finished@1.2.1
  353. 0.4.1 / 2014-06-02
  354. ==================
  355. * Send `max-age` in `Cache-Control` in correct format
  356. 0.4.0 / 2014-05-27
  357. ==================
  358. * Calculate ETag with md5 for reduced collisions
  359. * Fix wrong behavior when index file matches directory
  360. * Ignore stream errors after request ends
  361. - Goodbye `EBADF, read`
  362. * Skip directories in index file search
  363. * deps: debug@0.8.1
  364. 0.3.0 / 2014-04-24
  365. ==================
  366. * Fix sending files with dots without root set
  367. * Coerce option types
  368. * Accept API options in options object
  369. * Set etags to "weak"
  370. * Include file path in etag
  371. * Make "Can't set headers after they are sent." catchable
  372. * Send full entity-body for multi range requests
  373. * Default directory access to 403 when index disabled
  374. * Support multiple index paths
  375. * Support "If-Range" header
  376. * Control whether to generate etags
  377. * deps: mime@1.2.11
  378. 0.2.0 / 2014-01-29
  379. ==================
  380. * update range-parser and fresh
  381. 0.1.4 / 2013-08-11
  382. ==================
  383. * update fresh
  384. 0.1.3 / 2013-07-08
  385. ==================
  386. * Revert "Fix fd leak"
  387. 0.1.2 / 2013-07-03
  388. ==================
  389. * Fix fd leak
  390. 0.1.0 / 2012-08-25
  391. ==================
  392. * add options parameter to send() that is passed to fs.createReadStream() [kanongil]
  393. 0.0.4 / 2012-08-16
  394. ==================
  395. * allow custom "Accept-Ranges" definition
  396. 0.0.3 / 2012-07-16
  397. ==================
  398. * fix normalization of the root directory. Closes #3
  399. 0.0.2 / 2012-07-09
  400. ==================
  401. * add passing of req explicitly for now (YUCK)
  402. 0.0.1 / 2010-01-03
  403. ==================
  404. * Initial release