Skip to content

Releases: nicolashenry/send-stream

v2.3.1

21 Jan 03:47
Compare
Choose a tag to compare
  • Fix: NodeJS 12 sometimes not destroyed

v2.3.0

21 Jan 03:46
Compare
Choose a tag to compare
  • Feature: send method is now returning a promise and is not anymore an event emitter
  • Feature: send method have a new option to ignore premature close errors (true by default)
  • Test: test all frameworks instead of only koa
  • Docs: update/fix examples

v2.2.0

19 Dec 14:14
Compare
Choose a tag to compare
  • Fix: node 15.x on dynamic compression error
  • Fix: remove useless destroyed checks
  • Refactor: merge EmptyStream into BufferStream
  • Refactor: add/update lint rules

v2.1.0

04 Sep 01:51
Compare
Choose a tag to compare
  • Feature: Add dynamicCompressionMinLength option
  • Fix: Add missing documentation on dynamicCompression and mimeTypeCompressible

v2.0.0

02 Sep 00:47
Compare
Choose a tag to compare
  • Breaking change: rename contentType prepare option to mimeType and contentTypeCharset to mimeTypeCharset
  • Breaking change: rename storage option defaultContentType to defaultMimeType
  • Breaking change: replace defaultCharsets and mimeModule storage options with mimeTypeLookup and
    mimeTypeDefaultCharset functions
  • Breaking change: contentEncoding in storage information is now (and needs to be) undefined when identity is used
  • Feature: mime package is replaced by mime-types for charset lookups
  • Feature: Add dynamicCompression and mimeTypeCompressible storage options
  • Feature: Add cacheControl, contentDispositionType and contentDispositionType in storage information
  • Use fastify v3 in examples
  • Use typescript project references
  • Bump typescript from 3.9.x to 4.0.x

v1.1.0

26 Jun 14:08
Compare
Choose a tag to compare
  • Feature: Add a way to define ETag and Last-Modified headers directly from the storage

v1.0.0

26 Jun 14:09
Compare
Choose a tag to compare
  • Breaking change: Each error now have a specific class instead of a code
  • Breaking change: Encoded path must start with / now
  • Breaking change: contentType values are now splitted into contentType (without charset) and contentTypeCharset
  • Not normalized paths are now a 404 instead of 301 like other errors (redirects was unsafe depending on use)
  • Fix some content encoding edge cases
  • Multiple refactoring
  • Feature: add onDirectory option
  • Feature: storages can now emit contentType/contentTypeCharset values directly

v0.4.0

26 Jun 14:10
Compare
Choose a tag to compare
  • Enhance CI ans tests
  • Replace tslint with eslint
  • Enhance documentation and examples
  • Change default ignore pattern from /^\../ to /^\./
  • Rename error code forbidden_characters to forbidden_character
  • Rename error code ignored_files to ignored_file
  • Restore malformed_path error
  • Throw ignored_file error before trailing_slash
  • Drop responseClose event
  • Add textual regexp support in options

v0.3.0

26 Jun 14:10
Compare
Choose a tag to compare
  • Fix multi-range streams on error
  • Create multi-range streams when needed only
  • Fix mongodb example
  • Update dependencies

v0.2.1

26 Jun 14:10
Compare
Choose a tag to compare
  • Remove node 10 support