Skip to content

Commit

Permalink
[http] Migrate to the latest pkg:web, require Dart 3.3 (#1132)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo authored Feb 15, 2024
1 parent 5179d1c commit d8b237d
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 47 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.

5 changes: 5 additions & 0 deletions pkgs/http/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 1.2.1

* Require Dart `^3.3`
* Require `package:web` `^0.5.0`.

## 1.2.0

* Add `MockClient.pngResponse`, which makes it easier to fake image responses.
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
6 changes: 3 additions & 3 deletions pkgs/http/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: http
version: 1.2.0
version: 1.2.1
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 d8b237d

Please sign in to comment.