From 3986268c8706bbef6fb3f8454e25256a0e1ebdaa Mon Sep 17 00:00:00 2001 From: Paul Berry Date: Tue, 23 Sep 2025 19:08:09 -0700 Subject: [PATCH] Roll `package:analyzer` forward to `8.2.0`. (#175849) In an upcoming Dart SDK change (https://dart-review.googlesource.com/c/sdk/+/450970), I intend to add logic to the analyzer for generating a warning if an API marked `@experimental` is used. This will allow experimental analyzer features to be developed without creating a risk of breaking changes downstream. To prepare for this, release `8.2.0` of the analyzer removes several old `@experimental` annotations that were out of date. To avoid breaking trybots, those removals need to roll into flutter before we can land https://dart-review.googlesource.com/c/sdk/+/450970. *Replace this paragraph with a description of what this PR is changing or adding, and why. Consider including before/after screenshots.* *List which issues are fixed by this PR. You must list at least one issue. An issue is not required if the PR fixes something trivial like a typo.* *If you had to change anything in the [flutter/tests] repo, include a link to the migration guide as per the [breaking change policy].* ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [ ] I listed at least one issue that this PR fixes in the description above. - [ ] I updated/added relevant documentation (doc comments with `///`). - [ ] I added new tests to check the change I am making, or this PR is [test-exempt]. - [ ] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [ ] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [Contributor Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#overview [Tree Hygiene]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md [test-exempt]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#tests [Flutter Style Guide]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md [Features we expect every widget to implement]: https://github.com/flutter/flutter/blob/main/docs/contributing/Style-guide-for-Flutter-repo.md#features-we-expect-every-widget-to-implement [CLA]: https://cla.developers.google.com/ [flutter/tests]: https://github.com/flutter/tests [breaking change policy]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#handling-breaking-changes [Discord]: https://github.com/flutter/flutter/blob/main/docs/contributing/Chat.md [Data Driven Fixes]: https://github.com/flutter/flutter/blob/main/docs/contributing/Data-driven-Fixes.md --- packages/flutter_tools/pubspec.yaml | 6 +++--- pubspec.lock | 8 ++++---- pubspec.yaml | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/flutter_tools/pubspec.yaml b/packages/flutter_tools/pubspec.yaml index c2baf5f7af9..479b74552f6 100644 --- a/packages/flutter_tools/pubspec.yaml +++ b/packages/flutter_tools/pubspec.yaml @@ -10,7 +10,7 @@ dependencies: # # For detailed instructions, refer to: # https://github.com/flutter/flutter/blob/main/docs/infra/Updating-dependencies-in-Flutter.md - analyzer: 8.1.1 + analyzer: 8.2.0 archive: 3.6.1 args: 2.7.0 dds: 5.0.3 @@ -76,7 +76,7 @@ dependencies: dart_style: 3.1.2 # The below dependencies are transitive and are here to pin them to a specific version. - _fe_analyzer_shared: 88.0.0 + _fe_analyzer_shared: 89.0.0 boolean_selector: 2.1.2 browser_launcher: 1.1.3 built_collection: 5.1.1 @@ -127,4 +127,4 @@ dev_dependencies: dartdoc: # Exclude this package from the hosted API docs. nodoc: true -# PUBSPEC CHECKSUM: gpjqs +# PUBSPEC CHECKSUM: sro36f diff --git a/pubspec.lock b/pubspec.lock index 5ed4ab4c517..9998d69a197 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -13,10 +13,10 @@ packages: dependency: "direct main" description: name: _fe_analyzer_shared - sha256: f0bb5d1648339c8308cc0b9838d8456b3cfe5c91f9dc1a735b4d003269e5da9a + sha256: dd3d2ad434b9510001d089e8de7556d50c834481b9abc2891a0184a8493a19dc url: "https://pub.dev" source: hosted - version: "88.0.0" + version: "89.0.0" adaptive_breakpoints: dependency: "direct main" description: @@ -29,10 +29,10 @@ packages: dependency: "direct main" description: name: analyzer - sha256: "0b7b9c329d2879f8f05d6c05b32ee9ec025f39b077864bdb5ac9a7b63418a98f" + sha256: c22b6e7726d1f9e5db58c7251606076a71ca0dbcf76116675edfadbec0c9e875 url: "https://pub.dev" source: hosted - version: "8.1.1" + version: "8.2.0" animations: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index f90f094f868..5395b043231 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -78,9 +78,9 @@ workspace: dependencies: _discoveryapis_commons: 1.0.7 - _fe_analyzer_shared: 88.0.0 + _fe_analyzer_shared: 89.0.0 adaptive_breakpoints: 0.1.7 - analyzer: 8.1.1 + analyzer: 8.2.0 animations: 2.0.11 archive: 3.6.1 args: 2.7.0 @@ -212,4 +212,4 @@ dependencies: pedantic: 1.11.1 quiver: 3.2.2 yaml_edit: 2.2.2 -# PUBSPEC CHECKSUM: 39no2u +# PUBSPEC CHECKSUM: 4158rk