Skip to content

Releases: serviejs/servie

Allow `undefined` Header Value

23 May 14:01
Compare
Choose a tag to compare

Added

  • Allow undefined as a header input value

Strip Class Symbols

22 May 04:28
Compare
Choose a tag to compare

Fixed

  • Strips symbols from the class, in addition to the previous exports

Abort Before Started

22 May 04:28
Compare
Choose a tag to compare

Fixed

  • Set aborted = true internally when started == false since nothing will be listening yet

Allow `abort` after `req.finished`

22 May 04:10
Compare
Choose a tag to compare

Fixed

  • Previously impossible to abort response part-way because abort() blocked when req.finished = true
  • The abort event will only trigger once from now on

Added

  • Add new req.closed to indicate the current request/response stream has closed

Configure headers on `createBody`

20 May 08:00
Compare
Choose a tag to compare

Added

  • Add optional options with support for headers to createBody

Trailer Support

14 Apr 08:53
Compare
Choose a tag to compare

Changed

  • Add support for trailer as Promise<Headers>
  • Rename getHeaders() to allHeaders
  • Using symbols for private properties

Added

  • Support Headers#clone(), Body#clone(), Request#clone() and Response#clone()
  • Add Headers#clear()

Allow `undefined` in `CreateBody`

11 Apr 10:52
Compare
Choose a tag to compare

Fixed

  • Explicitly define undefined in CreateBody union types

Export `CreateBody` Type

11 Apr 10:19
Compare
Choose a tag to compare

Changed

  • Export CreateBody supported types for universal body

Fix `Headers#asObject` Return Type

10 Apr 12:09
Compare
Choose a tag to compare

Fixed

  • Use stricter object definition for asObject to support { [key: string]: string }

Default Request Method

10 Apr 01:42
Compare
Choose a tag to compare

Changed

  • Default Request#method to GET so it's always a string