-
Notifications
You must be signed in to change notification settings - Fork 57
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
chore: set max SDK version to <3.0.0 #46
Conversation
analysis_options.yaml
Outdated
@@ -1,2 +1 @@ | |||
analyzer: |
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.
Just delete this file entirely if it's not configuring anything.
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.
done
pubspec.yaml
Outdated
charcode: ^1.1.0 | ||
collection: ^1.14.10 | ||
string_scanner: ^1.0.2 | ||
source_span: ^1.4.0 |
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.
Why are you narrowing these constraints?
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.
(For the reasons I explained yesterday, but I'll add them back)
test/utils.dart
Outdated
@@ -7,7 +7,7 @@ import 'package:yaml/src/equality.dart' as equality; | |||
import 'package:yaml/yaml.dart'; | |||
|
|||
/// A matcher that validates that a closure or Future throws a [YamlException]. | |||
final Matcher throwsYamlException = throwsA(new isInstanceOf<YamlException>()); | |||
final Matcher throwsYamlException = throwsA(TypeMatcher<YamlException>()); |
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 believe there are still frontends in use, at least within Google, that don't yet support optional new
.
Also, if you are using it, you should update the SDK constraint to exclude any SDKs where frontends don't use Dart 2 by default.
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.
Adding new
back
pubspec.yaml
Outdated
path: ">=1.2.0 <2.0.0" | ||
test: ">=0.12.0 <0.13.0" | ||
path: ^1.6.1 | ||
test: ^1.2.0 |
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.
These dependencies also shouldn't be narrowed.
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.
Oops, sorry for having missed those. Done
cc @kwalrath @kevmoo