Skip to content

Commit

Permalink
fix: support http ^1.0.0 and ^0.13.5
Browse files Browse the repository at this point in the history
closes #5
  • Loading branch information
Zekfad committed Jun 21, 2023
1 parent b4e1dc7 commit 45b3489
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 1.0.1

- Update [`http`](https://pub.dev/packages/http) constraint
to `>=0.13.5 <2.0.0`.
- Update test.

## 1.0.0

- Public stable release.
Expand Down
13 changes: 8 additions & 5 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
name: fetch_client
description: Client for http package based on Fetch API, enables streamed requests on web and more.
version: 1.0.0
version: 1.0.1
homepage: https://github.com/Zekfad/fetch_client
repository: https://github.com/Zekfad/fetch_client
issue_tracker: https://github.com/Zekfad/fetch_client/issues
# documentation: https://pub.dev/documentation/fetch_client/latest/
topics:
- fetch
- http

platforms:
web:
Expand All @@ -14,19 +17,19 @@ environment:

dependencies:
fetch_api: ^1.0.0
http: ^0.13.5
http: '>=0.13.5 <2.0.0'

dependency_overrides:
# fetch_api:
# git: https://github.com/Zekfad/fetch_api

dev_dependencies:
build_runner: '>=2.3.3'
build_web_compilers: '>=3.2.7'
build_runner: '>=2.4.5'
build_web_compilers: '>=4.0.3'
http_client_conformance_tests:
git:
url: https://github.com/dart-lang/http
ref: master
path: pkgs/http_client_conformance_tests
test: ^1.23.0
test: ^1.24.3
zekfad_lints: ^1.2.0
6 changes: 5 additions & 1 deletion test/client_conformance_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ void main() {
canStreamRequestBody: false,
canStreamResponseBody: true,
redirectAlwaysAllowed: true,
canWorkInIsolates: false,
);
});

Expand All @@ -25,6 +26,7 @@ void main() {
canStreamRequestBody: false,
canStreamResponseBody: true,
redirectAlwaysAllowed: true,
canWorkInIsolates: false,
);
});

Expand All @@ -37,11 +39,12 @@ void main() {
canStreamRequestBody: false,
canStreamResponseBody: true,
redirectAlwaysAllowed: true,
canWorkInIsolates: false,
);
});

// Fails with ERR_H2_OR_QUIC_REQUIRED
// That means server must support request streaming is some special form
// That means server must support request streaming in some special form
// or something.
// group('client conformance tests with streaming mode', () {
// testAll(
Expand All @@ -52,6 +55,7 @@ void main() {
// canStreamRequestBody: true,
// canStreamResponseBody: true,
// redirectAlwaysAllowed: true,
// canWorkInIsolates: false,
// );
// });
}

0 comments on commit 45b3489

Please sign in to comment.