Skip to content

Releases: fzn0x/hypf

v0.2.3

15 Jul 04:33
Compare
Choose a tag to compare

Changes

  • docs: add TOC and request cloning a8f7a0e
  • chore: build for browser 450a5dc
  • feat: add Request cloning, and introduce dryRun option, closes #2 9f5281d
  • fix: createHTTPMethod test allow override f70bf6a
  • fix: createHTTPMethod test allow override d63e0d6
  • fix: createHTTPMethod test allow override 2db60c1
  • feat: add Response cloning, fixes #2 2982d91
  • fix(jsr): add default return types in createHTTPMethod 40befe2
  • fix: remove undefined string from fullUrl f091f5d
  • fix(jsr): explicit return types 245b282
  • feat: expose createHTTPMethod and createHTTPError cc6a113
  • feat: better error handling, closes #13 8ce438f

v0.2.2...v0.2.3

v0.2.2

25 Jun 04:08
Compare
Choose a tag to compare

Changes

  • chore(yarn): update lock file def5eb4
  • chore: update browser min map 2827eac
  • refactor: default options value 41b359b
  • fix: order of postTimeout hooks and preRequest must be able to modify the options #11 739160f
  • types: add types for throwOnError ef576c3
  • feat: deprecate DEBUG, replace with debug option 92ea200
  • docs: update contributing.md a792fbd
  • chore(package): update description ea227f1
  • docs: update information about pkg size 5197d62
  • chore: allow two way exports a9f9f7d
  • fix(docs): works well without credentials 20c978f
  • docs: add contributors and acknowledgements 17518ba
  • docs(readme): add warning 8073ed5
  • feat(utils/create-http-method): allows override global initOptions b14cb99
  • docs: simplify docs b5f4edc
  • feat: add supports for Bun proxy and unix #10 4124968
  • Merge branch 'main' of https://github.com/fzn0x/hypf 759a8b0
  • docs: add JSDOC 9cfb08c
  • docs: fix syntax typo (#9) e8896da
  • test: test throwOnError 948f77b
  • feat(http-method): add HEAD method ceb0faf
  • chore: format and lint fix 1ceda46
  • feat(utils/create-http-method): rename to createHTTPMethod 2c85c2e
  • test: add test for appendParams and create http error 4ce39ee
  • feat: introduce throwOnError option 7ea3b6e

MIGRATIONS

Check our README for more information.

New Contributors

v0.2.1...v0.2.2

v0.2.1

18 Jun 02:17
Compare
Choose a tag to compare

Expose "browser" to published package

Full Changelog: v0.2.0...v0.2.1

v0.2.0

18 Jun 01:57
Compare
Choose a tag to compare
  • chore(deps): update types node 220fc6d
  • docs(readme): add labels e2a1829
  • chore(build): process is undefined in browser 90fcd30
  • docs: add CODE_OF_CONDUCT and CONTRIBUTING fceceff
  • chore(tsc): no examples and types folder anymore 6dafcb8
  • chore(tsc): exclude dist folder 46a3e3d
  • chore: add post publish ee381a7
  • chore(build): add jsr 7168aab
  • chore(build): fix webpack fe3a18d
  • chore: improve DX on publishing and contributing 8ebdb7c
  • feat: support CJS 08baa12
  • chore: make build process easier 3924aa8
  • chore: restructure project 7566728
  • docs: add new logo bfa0c1d
  • chore(package): only publish dist folder 9322e4e
  • Update README.md 2903b04
  • docs: example a3bed31

MIGRATION

init instead of createRequest

esm module is not required anymore for CJS

0.1.0...v0.2.0

v0.1.0

14 May 22:06
Compare
Choose a tag to compare

What's New?

Upload File now supported in hypf!

Full Changelog: 0.0.9...0.1.0

0.0.9

09 May 02:49
Compare
Choose a tag to compare

What's New?

Introducing new HTTP error for Hypf, now you can handle HTTP errors easily if response was not ok (200)

export function createHTTPError(response: Response, responseData: Response) {
  const code = response.status || response.status === 0 ? response.status : "";
  const title = response.statusText || "";
  const status = `${code} ${title}`.trim();
  const reason = status ? `status code ${status}` : "an unknown error";
  const error = new Error(reason);

  error.name = "HTTPError";

  (error as any).response = response;
  (error as any).data = responseData;

  return error;
}

Full Changelog: 0.0.8...0.0.9

0.0.8

09 May 02:18
Compare
Choose a tag to compare

What's New?

  • Remove response not ok masking

0.0.7

09 May 02:01
Compare
Choose a tag to compare

What's New?

  • Fix content-type was not correctly configured

Full Changelog: 0.0.6...0.0.7

Patch 0.0.6

08 May 18:30
Compare
Choose a tag to compare

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

Patch 0.0.5

15 Mar 20:50
Compare
Choose a tag to compare

Full Changelog: 0.0.4...0.0.5