Patch 0.0.6
What's New?
Hypf now started to implement Unit Testing with Vitest!
Hypf makes sure everything work smoothly.
Hypf experimental support for Deno and Bun
Hypf started Deno support from deno_dist
folder, thanks to denoify
.
Cloudflare Workers Supports
Hypf is working smoothly in Cloudflare Workers!
Infer Response Types
Now you can Infer Response Types!
const [getErr, getData] = await hypfRequest.get<
Array<{
userId: number;
id: number;
title: string;
body: string;
}>
>("/posts", {
retries: 3,
timeout: 5000,
});
getData?.[0]?.id; // number | undefined
README Updates
- Provides usage of Cloudflare Workers, other Web interoperabe runtimes
- New usage for Infer Response Types
- URLSearchParams now documented!
Compability Updates
Hypf Core now checking the support for Duplex explicitly.
since JS Runtimes was not implement full-duplex for fetch
yet.
Full Changelog: 0.0.5...0.0.6