PackageTrack
Sign in Get early access

fetch_client

Client for http package based on Fetch API, enables streamed and cancelable requests on web and more.

1.2.1 78K downloads/mo #1233 most downloaded on pub.dev Zekfad/fetch_client

What this package is like to depend on

Last release 4 months ago

03 Apr 2026

Release timing varies

gaps range from 9 days to 10 months

Nearly every release is documented

notes for 10 of 10 stable releases

Nothing withdrawn

no release was ever pulled

4 years old

16 releases · first in 2023

2 releases in the last 12 months

see the full history below

Release timeline

16 releases · Jan 2023 to Apr 2026
2024 2025 2026
Release Pre-release

Releases

latest 16
  1. 1.2.1 03 Apr 2026
    Release notes
    • Fix response stream subscription and request synchronization:
      In dart2js stream handler waited for an additional chunk after subscription was canceled (dart2wasm seems to be unaffected).
    Open source →
    Release notes
    • Fix response stream subscription and request synchronization: In dart2js stream handler waited for an additional chunk after subscription was canceled (dart2wasm seems to be unaffected).
    Open source →
  2. 1.2.0 22 Oct 2025
    Release notes

    Requires Dart 3.4

    • Bumped http to 1.5.0.
    • Support request cancellation via Abortable from http.

      You are not required to add abortTrigger to wrapping FetchRequest since it will inherit it by default.
      You can also just use http's AbortableRequest directly if you don't need to customize fetch behavior on a request basis.

    • RequestCanceledException how implements RequestAbortedException.
    • FetchRequest how also implements Abortable.
    Open source →
    Release notes

    Requires Dart 3.4

    • Bumped http to 1.5.0.
    • Support request cancellation via Abortable from http.

      You are not required to add abortTrigger to wrapping FetchRequest since it will inherit it by default. You can also just use http's AbortableRequest directly if you don't need to customize fetch behavior on a request basis.

    • RequestCanceledException how implements RequestAbortedException.
    • FetchRequest how also implements Abortable.
    Open source →
  3. 1.1.4 25 Apr 2025
    Release notes
    • Fix lint errors.
    • Use package:zekfad_lints/lib.yaml which aligns with core lints.
    Open source →
    Release notes
    • Fix lint errors.
    • Use package:zekfad_lints/lib.yaml which aligns with core lints.
    Open source →
  4. 1.1.3 28 Mar 2025
    Release notes
    • Fix possible unhandled promise rejection if underlying data stream is errored.
    • Update license years.
    • Throw RequestCanceledException with reason when using
      FetchResponse.cancel or client is closed with request in-progress.

      Semantic is currently undefined and this is implementation specific
      behavior.

      See http#1192 for more
      info.

    Open source →
    Release notes
    • Fix possible unhandled promise rejection if underlying data stream is errored.

    • Update license years.

    • Throw RequestCanceledException with reason when using FetchResponse.cancel or client is closed with request in-progress.

      Semantic is currently undefined and this is the implementation specific behavior.

      See http#1192 for more info.

    Open source →
  5. 1.1.2 26 May 2024
    Release notes
    • Bumped fetch_api to 2.2.0.
    • Fixed WASM support.
    Open source →
    Release notes
    • Bumped fetch_api to 2.2.0.
    • Fixed WASM support.
    Open source →
  6. 1.1.1 04 May 2024
    Release notes
    • Bumped fetch_api to 2.1.0.
    • Create internal shim for non-JS environments: you can now import package
      without conditional import and use enumerations in VM.
      This makes it easier to use FetchClient in Flutter via kIsWeb.
    Open source →
    Release notes
    • Bumped fetch_api to 2.1.0.
    • Create internal shim for non-JS environments: you can now import the package without conditional import and use enumerations in a VM. This makes it easier to use FetchClient in Flutter via kIsWeb.
    Open source →
  7. 1.1.0 02 May 2024
    Release notes

    Requires Dart 3.3

    • Migrate to fetch_api 2.0.0.
      This requires Dart 3.3, but makes package WASM ready.
    • Update http constraint to ^1.2.0.
    • BREAKING: FetchResponse url now is Uri instead of String.
    • FetchResponse now implements BaseResponseWithUrl.
    • Fix unclosed requests after client is closed in-between fetch request.
    • Fix HEAD request in FireFox.
    • Handle response length checks.
    • Add FetchRequest class that wraps other Request to provide fetch options
      overrides.
    • Removed integrity from FetchClient constructor as it wasn't used, use
      FetchRequest.integrity instead.
    Open source →
    Release notes

    Requires Dart 3.3

    • Migrate to fetch_api 2.0.0. This requires Dart 3.3, but makes the package WASM ready.
    • Update http constraint to ^1.2.0.
    • BREAKING: FetchResponse url now is Uri instead of String.
    • FetchResponse now implements BaseResponseWithUrl.
    • Fix unclosed requests after client is closed in-between fetch request.
    • Fix HEAD request in FireFox.
    • Handle response length checks.
    • Add FetchRequest class that wraps other Request to provide fetch options overrides.
    • Removed integrity from FetchClient constructor as it wasn't used, use FetchRequest.integrity instead.
    Open source →
  8. 1.1.0-wasm 08 Feb 2024 pre-release

    Nothing published for this version

  9. 1.0.2 01 Jul 2023
    Release notes

    Update docs to clarify compatibility restrictions.

    Open source →
    Release notes
    • Update docs to clarify compatibility restrictions.
    Open source →
  10. 1.0.1 21 Jun 2023
    Release notes
    • Update http constraint
      to >=0.13.5 <2.0.0.
    • Update test.
    Open source →
    Release notes
    • Update http constraint to >=0.13.5 <2.0.0.
    • Update tests.
    Open source →
  11. 1.0.0 23 Feb 2023
    Release notes
    • Public stable release.
    • Bumped fetch_api to 1.0.0.
    Open source →
    Release notes
    • Public stable release.
    • Bumped fetch_api to 1.0.0.
    Open source →
  12. 1.0.0-dev.5 13 Feb 2023 pre-release
    Release notes
    • Added RedirectPolicy, that will make it possible to partially emulate how redirects are returned on io platforms.
    • Added streamRequests option to FetchClient. This allows you to use Fetch request body streaming utilizing half-duplex connection.
    • Fixed dev dependency versions to allow running on Dart 2.19.
    Open source →
  13. 1.0.0-dev.4 23 Jan 2023 pre-release
    Release notes
    • Bumped fetch_api dependency to ^1.0.0-dev.4.
    • Added conformance test.
    • Full conformance with http client (with exclusion of streamed requests and redirects, due to API limitations).
    • FetchResponse
      • isRedirect now is always false (because with disabled redirects exception is thrown on redirect, and browser always follows redirects otherwise)
      • Added redirected flag, that indicates whether request was redirected.
      • Added docs.
    Open source →
  14. 1.0.0-dev.3 23 Jan 2023 pre-release
    Release notes
    • Bumped fetch_api dependency to ^1.0.0-dev.3.
    • Use fetch_api.compatibility_layer to support Dart 2.19.
    • Fixed name of example file.
    Open source →
  15. 1.0.0-dev.2 22 Jan 2023 pre-release
    Release notes
    • Bumped fetch_api dependency to ^1.0.0-dev.2.
      • Downgraded js dependency to ^0.6.5.
    Open source →
  16. 1.0.0-dev.1 22 Jan 2023 pre-release
    Release notes
    • Initial version.
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive