Skip to content

v2.0.0

Compare
Choose a tag to compare
@hugomrdias hugomrdias released this 09 Apr 18:29
· 162 commits to master since this release

Bug Fixes

BREAKING CHANGES

    • The .ndjson, .stream and .iterator methods have been removed
  • 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()) {

}