Releases: serviejs/servie
Releases · serviejs/servie
Allow `undefined` Header Value
Added
- Allow
undefined
as a header input value
Strip Class Symbols
Fixed
- Strips symbols from the class, in addition to the previous exports
Abort Before Started
Fixed
- Set
aborted = true
internally whenstarted == false
since nothing will be listening yet
Allow `abort` after `req.finished`
Fixed
- Previously impossible to abort response part-way because
abort()
blocked whenreq.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`
Added
- Add optional options with support for
headers
tocreateBody
Trailer Support
Changed
- Add support for
trailer
asPromise<Headers>
- Rename
getHeaders()
toallHeaders
- Using symbols for private properties
Added
- Support
Headers#clone()
,Body#clone()
,Request#clone()
andResponse#clone()
- Add
Headers#clear()
Allow `undefined` in `CreateBody`
Fixed
- Explicitly define
undefined
inCreateBody
union types
Export `CreateBody` Type
Changed
- Export
CreateBody
supported types for universal body
Fix `Headers#asObject` Return Type
Fixed
- Use stricter object definition for
asObject
to support{ [key: string]: string }
Default Request Method
Changed
- Default
Request#method
toGET
so it's always a string