Support latest pkg:http version
MODIFY
lib/browser.dart
lib/browser.dart
@@ -14,6 +14,9 @@ export "src/common.dart";
/// Creates a GitHub Client
GitHub createGitHubClient(
{Authentication auth, String endpoint: "https://api.github.com"}) {
+ // NOTE: This library is not needed if `pkg:http` is updated to support
+ // pkg:http ^0.12.0. Make sure to update the dependency if/when you remove
+ // browser.dart
return new GitHub(
auth: auth, client: new BrowserClient(), endpoint: endpoint);
}

MODIFY
pubspec.yaml
pubspec.yaml
@@ -7,7 +7,7 @@ environment:
sdk: '>=2.0.0-dev.36 <3.0.0'
dependencies:
html: '>=0.12.0 <0.14.0'
- http: '^0.11.3'
+ http: '>=0.11.3 <0.13.0'
http_parser: ^3.1.1
json_annotation: ^1.1.0
xml: '>=2.0.0 <4.0.0'

Support latest pkg:http version