[analyzer_plugin] Support latest analyzer in pubspec

As the analyzer_plugin package is always built with the latest analyzer,
its pubspec should also report compatibility with the latest released
version.

This changes the analyzer constraint to `^2.0.0` which matches the
current version on pub.
It would be great if the next analyzer_plugin release could support the
latest analyzer.

Change-Id: I2a7b129f199bd80e6ca552821feb43b29193d2c0
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/207302
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
This commit is contained in:
Simon Binder 2021-07-19 15:48:19 +00:00 committed by commit-bot@chromium.org
parent 8ea5fc2773
commit 02fcbc7492
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
## 0.7.0
- Support verison `2.x` of the `analyzer` package
## 0.6.0
- Bug fixes to the protocol.

View file

@ -7,7 +7,7 @@ environment:
sdk: '>=2.12.0 <3.0.0'
dependencies:
analyzer: ^1.5.0
analyzer: ^2.0.0
collection: ^1.15.0
dart_style: ^2.0.0
pub_semver: ^2.0.0