Skip to content

Releases: Zekfad/fetch_client

1.2.1

03 Apr 20:33
61eecd1

Choose a tag to compare

  • 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).

1.2.0

03 Apr 20:32
d956a98

Choose a tag to compare

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.

1.1.4

25 Apr 00:18
3f65891

Choose a tag to compare

  • Fix lint errors.
  • Use package:zekfad_lints/lib.yaml which aligns with core lints.

1.1.3

28 Mar 21:26
03f7378

Choose a tag to compare

  • 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.

1.1.2

28 May 15:48
07a2303

Choose a tag to compare

  • Bumped fetch_api to 2.2.0.
  • Fixed WASM support.

1.1.1

05 May 06:41
923dadd

Choose a tag to compare

  • 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.

1.1.0

03 May 18:54
4f20063

Choose a tag to compare

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.

1.0.2

01 Jul 17:03
6631e5b

Choose a tag to compare

Update docs to clarify compatibility restrictions.

1.0.1

21 Jun 14:25
45b3489

Choose a tag to compare

  • Update http constraint
    to >=0.13.5 <2.0.0.
  • Update test.

1.0.0

23 Feb 17:10
300aee3

Choose a tag to compare

  • Public stable release.
  • Bumped fetch_api to 1.0.0.