Skip to content

Commit

Permalink
[http] Migrate to the latest pkg:http, require Dart 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo committed Feb 15, 2024
1 parent 5179d1c commit 12fd4fe
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 46 deletions.
117 changes: 75 additions & 42 deletions .github/workflows/dart.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pkgs/http/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
* Added the ability to fetch the URL of the response through `BaseResponseWithUrl`.
* Add the ability to get headers as a `Map<String, List<String>` to
`BaseResponse`.
* Require Dart `^3.3`
* Require `package:web` `^0.5.0`.

## 1.1.2

Expand Down
2 changes: 1 addition & 1 deletion pkgs/http/lib/src/browser_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import 'dart:async';
import 'dart:js_interop';

import 'package:web/helpers.dart';
import 'package:web/web.dart';

import 'base_client.dart';
import 'base_request.dart';
Expand Down
4 changes: 2 additions & 2 deletions pkgs/http/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ description: A composable, multi-platform, Future-based API for HTTP requests.
repository: https://github.com/dart-lang/http/tree/master/pkgs/http

environment:
sdk: ^3.2.0
sdk: ^3.3.0

dependencies:
async: ^2.5.0
http_parser: ^4.0.0
meta: ^1.3.0
web: '>=0.3.0 <0.5.0'
web: ^0.5.0

dev_dependencies:
dart_flutter_team_lints: ^2.0.0
Expand Down
2 changes: 1 addition & 1 deletion pkgs/http/test/html/utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'package:web/helpers.dart';
import 'package:web/web.dart';

export '../utils.dart';

Expand Down

0 comments on commit 12fd4fe

Please sign in to comment.