Skip to content

Releases: Agbokoudjo/http_client

2.0.0

Choose a tag to compare

@Agbokoudjo Agbokoudjo released this 26 Jul 11:06

[2.0.0]

Added

  • HttpRedirectResponseError — surfaces server redirects explicitly instead of
    letting them silently corrupt or crash a response.
  • isJSONResponse utility.

Fixed

  • safeFetch/responseTypeHandle no longer throw a cryptic SyntaxError
    when a json/formData request is redirected to non-JSON content
    (e.g. session expired → login page).

BREAKING CHANGE

  • responseType: 'text' | 'blob' | 'arrayBuffer' | 'stream' now throws
    HttpRedirectResponseError on any redirect (raw 3xx or auto-followed),
    including previously-silent cases like a CDN redirecting a file download.
    Previously these response types never threw on redirect. If your code
    relies on transparently following redirects for these types, catch
    HttpRedirectResponseError and handle it explicitly.

v1.2.3

Choose a tag to compare

@Agbokoudjo Agbokoudjo released this 18 Jun 14:51
update modle core

v1.2.2

Choose a tag to compare

@Agbokoudjo Agbokoudjo released this 10 May 11:38
corrections de bug

v1.2.1

Choose a tag to compare

@Agbokoudjo Agbokoudjo released this 10 May 08:56
update documentation and dependancies

v1.2.0

Choose a tag to compare

@Agbokoudjo Agbokoudjo released this 10 May 07:08
update dependancies @wlindabla/event_dispatcher

v1.1.5

Choose a tag to compare

@Agbokoudjo Agbokoudjo released this 29 Apr 11:44
update the dependancies libarary