Skip to content

Commit

Permalink
feat: 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zekfad committed Feb 23, 2023
1 parent bef3da9 commit 300aee3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
## 1.0.0-dev.5

- Public stable release.
- Bumped `fetch_api` to 1.0.0.

## 1.0.0-dev.5

- 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
Expand Down
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
# Fetch API.
# Fetch Client

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

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

## Features

* Cancel requests
* Support data streaming (responses and optionally requests)
* Get access to redirect URL and status
* Support non-`200` responses
* Cancel requests.
* Support data streaming:
* Get response as `Stream`.
* Optionally send `Stream` as request body.
* Get access to redirect URL and status.
* Support non-`200` responses (fetch will only fail on network error).
* Simulate redirects responses via probe request and artificial `location`
header.
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: fetch_client
description: Client for http package based on Fetch API, enables streamed requests on web and more.
version: 1.0.0-dev.5
version: 1.0.0
homepage: https://github.com/Zekfad/fetch_client
repository: https://github.com/Zekfad/fetch_client
issue_tracker: https://github.com/Zekfad/fetch_client/issues
Expand All @@ -10,10 +10,10 @@ platforms:
web:

environment:
sdk: '>=2.19.0-0 <4.0.0'
sdk: '>=2.19.0 <4.0.0'

dependencies:
fetch_api: ^1.0.0-dev.5
fetch_api: ^1.0.0
http: ^0.13.5

dependency_overrides:
Expand Down

0 comments on commit 300aee3

Please sign in to comment.