Releases: deno-libs/superfetch
Releases · deno-libs/superfetch
V1: new API & Deno handlers and listeners support
1.0.0
Breaking changes
Deno handlers and listeners
Old version only worked with a std/node/http server, the V1 one supports Deno handlers and listeners but doesn't support node servers anymore.
New API
New fetch API is slightly different.
Before it was like this:
await fetch('/hello').expect(200).expect('content-type', 'application/json').expect({ greeting: 'Hello!' })Now it is like this:
const res = await fetch('/hello')
res.expect(200).expect('content-type', 'application/json').expect({ greeting: 'Hello!' })Fewer deps and smaller size
Since the new API is much more minimal, the amount of dependencies was cut from 192 (on v0.1.6) to 14 (on v1.0.0). The code size decreased from 1.75MB to 109.74KB
0.1.6
0.1.4
0.1.3
0.1.2
0.1.1
drop node_http and use std/http instead
0.1.0 drop node_http and use std/http instead