v2.0.0
Bug Fixes
BREAKING CHANGES
-
- The
.ndjson
,.stream
and.iterator
methods have been removed
- The
- An
.ndjson
async generator function has been added to the response which
does the same thing the.ndjson
instance method used to
Old:
for await (const datum of http.ndjson('http://...')) {
}
New:
const response = await http.post('http://...')
for await (const datum of response.ndjson()) {
}