Skip to content

Commit d8b237d

Browse files
authored
[http] Migrate to the latest pkg:web, require Dart 3.3 (#1132)
1 parent 5179d1c commit d8b237d

File tree

5 files changed

+85
-47
lines changed

5 files changed

+85
-47
lines changed

.github/workflows/dart.yml

Lines changed: 75 additions & 42 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkgs/http/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 1.2.1
2+
3+
* Require Dart `^3.3`
4+
* Require `package:web` `^0.5.0`.
5+
16
## 1.2.0
27

38
* Add `MockClient.pngResponse`, which makes it easier to fake image responses.

pkgs/http/lib/src/browser_client.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import 'dart:async';
66
import 'dart:js_interop';
77

8-
import 'package:web/helpers.dart';
8+
import 'package:web/web.dart';
99

1010
import 'base_client.dart';
1111
import 'base_request.dart';

pkgs/http/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
name: http
2-
version: 1.2.0
2+
version: 1.2.1
33
description: A composable, multi-platform, Future-based API for HTTP requests.
44
repository: https://github.com/dart-lang/http/tree/master/pkgs/http
55

66
environment:
7-
sdk: ^3.2.0
7+
sdk: ^3.3.0
88

99
dependencies:
1010
async: ^2.5.0
1111
http_parser: ^4.0.0
1212
meta: ^1.3.0
13-
web: '>=0.3.0 <0.5.0'
13+
web: ^0.5.0
1414

1515
dev_dependencies:
1616
dart_flutter_team_lints: ^2.0.0

pkgs/http/test/html/utils.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
import 'package:web/helpers.dart';
5+
import 'package:web/web.dart';
66

77
export '../utils.dart';
88

0 commit comments

Comments
 (0)