Skip to content

Commit 45b3489

Browse files
committed
fix: support http ^1.0.0 and ^0.13.5
closes #5
1 parent b4e1dc7 commit 45b3489

3 files changed

Lines changed: 19 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.0.1
2+
3+
- Update [`http`](https://pub.dev/packages/http) constraint
4+
to `>=0.13.5 <2.0.0`.
5+
- Update test.
6+
17
## 1.0.0
28

39
- Public stable release.

pubspec.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
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
3+
version: 1.0.1
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
77
# documentation: https://pub.dev/documentation/fetch_client/latest/
8+
topics:
9+
- fetch
10+
- http
811

912
platforms:
1013
web:
@@ -14,19 +17,19 @@ environment:
1417

1518
dependencies:
1619
fetch_api: ^1.0.0
17-
http: ^0.13.5
20+
http: '>=0.13.5 <2.0.0'
1821

1922
dependency_overrides:
2023
# fetch_api:
2124
# git: https://github.com/Zekfad/fetch_api
2225

2326
dev_dependencies:
24-
build_runner: '>=2.3.3'
25-
build_web_compilers: '>=3.2.7'
27+
build_runner: '>=2.4.5'
28+
build_web_compilers: '>=4.0.3'
2629
http_client_conformance_tests:
2730
git:
2831
url: https://github.com/dart-lang/http
2932
ref: master
3033
path: pkgs/http_client_conformance_tests
31-
test: ^1.23.0
34+
test: ^1.24.3
3235
zekfad_lints: ^1.2.0

test/client_conformance_test.dart

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ void main() {
1313
canStreamRequestBody: false,
1414
canStreamResponseBody: true,
1515
redirectAlwaysAllowed: true,
16+
canWorkInIsolates: false,
1617
);
1718
});
1819

@@ -25,6 +26,7 @@ void main() {
2526
canStreamRequestBody: false,
2627
canStreamResponseBody: true,
2728
redirectAlwaysAllowed: true,
29+
canWorkInIsolates: false,
2830
);
2931
});
3032

@@ -37,11 +39,12 @@ void main() {
3739
canStreamRequestBody: false,
3840
canStreamResponseBody: true,
3941
redirectAlwaysAllowed: true,
42+
canWorkInIsolates: false,
4043
);
4144
});
4245

4346
// Fails with ERR_H2_OR_QUIC_REQUIRED
44-
// That means server must support request streaming is some special form
47+
// That means server must support request streaming in some special form
4548
// or something.
4649
// group('client conformance tests with streaming mode', () {
4750
// testAll(
@@ -52,6 +55,7 @@ void main() {
5255
// canStreamRequestBody: true,
5356
// canStreamResponseBody: true,
5457
// redirectAlwaysAllowed: true,
58+
// canWorkInIsolates: false,
5559
// );
5660
// });
5761
}

0 commit comments

Comments
 (0)