Skip to content

Commit 300aee3

Browse files
committed
feat: 1.0.0
1 parent bef3da9 commit 300aee3

3 files changed

Lines changed: 18 additions & 8 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
## 1.0.0-dev.5
22

3+
- Public stable release.
4+
- Bumped `fetch_api` to 1.0.0.
5+
6+
## 1.0.0-dev.5
7+
38
- Added `RedirectPolicy`, that will make it possible to partially emulate how
49
redirects are returned on `io` platforms.
510
- Added `streamRequests` option to `FetchClient`. This allows you to use Fetch

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1-
# Fetch API.
1+
# Fetch Client
22

33
This package provides [package:http](https://pub.dev/packages/http) client based
44
on [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API).
55

6+
It's a drop-in solution for extensions with
7+
[Manifest V3](https://developer.chrome.com/docs/extensions/mv3/intro/#introducing-manifest-v3).
8+
69
## Features
710

8-
* Cancel requests
9-
* Support data streaming (responses and optionally requests)
10-
* Get access to redirect URL and status
11-
* Support non-`200` responses
11+
* Cancel requests.
12+
* Support data streaming:
13+
* Get response as `Stream`.
14+
* Optionally send `Stream` as request body.
15+
* Get access to redirect URL and status.
16+
* Support non-`200` responses (fetch will only fail on network error).
1217
* Simulate redirects responses via probe request and artificial `location`
1318
header.

pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: fetch_client
22
description: Client for http package based on Fetch API, enables streamed requests on web and more.
3-
version: 1.0.0-dev.5
3+
version: 1.0.0
44
homepage: https://github.com/Zekfad/fetch_client
55
repository: https://github.com/Zekfad/fetch_client
66
issue_tracker: https://github.com/Zekfad/fetch_client/issues
@@ -10,10 +10,10 @@ platforms:
1010
web:
1111

1212
environment:
13-
sdk: '>=2.19.0-0 <4.0.0'
13+
sdk: '>=2.19.0 <4.0.0'
1414

1515
dependencies:
16-
fetch_api: ^1.0.0-dev.5
16+
fetch_api: ^1.0.0
1717
http: ^0.13.5
1818

1919
dependency_overrides:

0 commit comments

Comments
 (0)