-
Notifications
You must be signed in to change notification settings - Fork 362
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop using dart:mirrors. #55
Conversation
@@ -28,10 +27,7 @@ abstract class Client { | |||
/// Currently this will create an [IOClient] if `dart:io` is available and | |||
/// throw an [UnsupportedError] otherwise. In the future, it will create a | |||
/// [BrowserClient] if `dart:html` is available. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment isn't relevant anymore, since you can't import this library without "dart:io" being available, can you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can now be importable while also being unavailable in the sense that its API just throws UnsupportedError
s.
@@ -3,37 +3,24 @@ | |||
// BSD-style license that can be found in the LICENSE file. | |||
|
|||
import 'dart:async'; | |||
import 'dart:io'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean "package:http/http.dart" can only be imported on the command line VM? If so, isn't that a breaking change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As of 1.22, dart:io
is importable on all platforms and will just throw UnsupportedError
s at runtime if it's not supported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What?! Where was that announced? It's not in the CHANGELOG.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a @dgrove question.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the change to dart:io for 1.22 or 1.23? (I heard it was 1.23.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a fix out as #58
Closes #1