Releases: nicolashenry/send-stream
Releases · nicolashenry/send-stream
v2.3.1
- Fix: NodeJS 12 sometimes not destroyed
v2.3.0
- 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
- 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
- Feature: Add dynamicCompressionMinLength option
- Fix: Add missing documentation on
dynamicCompression
andmimeTypeCompressible
v2.0.0
- Breaking change: rename
contentType
prepare option tomimeType
andcontentTypeCharset
tomimeTypeCharset
- Breaking change: rename storage option
defaultContentType
todefaultMimeType
- Breaking change: replace
defaultCharsets
andmimeModule
storage options withmimeTypeLookup
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 bymime-types
for charset lookups - Feature: Add
dynamicCompression
andmimeTypeCompressible
storage options - Feature: Add
cacheControl
,contentDispositionType
andcontentDispositionType
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
- Feature: Add a way to define ETag and Last-Modified headers directly from the storage
v1.0.0
- 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
- Enhance CI ans tests
- Replace
tslint
witheslint
- Enhance documentation and examples
- Change default ignore pattern from
/^\../
to/^\./
- Rename error code
forbidden_characters
toforbidden_character
- Rename error code
ignored_files
toignored_file
- Restore
malformed_path
error - Throw
ignored_file
error beforetrailing_slash
- Drop
responseClose
event - Add textual regexp support in options
v0.3.0
- Fix multi-range streams on error
- Create multi-range streams when needed only
- Fix mongodb example
- Update dependencies
v0.2.1
- Remove node 10 support