From f38b780f530f1244849990fe82ea6615863ed5aa Mon Sep 17 00:00:00 2001 From: Devon Carew Date: Wed, 25 Sep 2024 13:12:46 -0700 Subject: [PATCH] [package:flutter_lints] update the dep on `package:lints` to 5.0.0 and the sdk dependency to 3.5.0 (#7704) - rev `package:flutter_lints` to 5.0.0 in prep for publishing - update our dep on package:lints to the latest stable published version (`5.0.0`) - update our sdk dep to reflect the package:lints one - update the changelog to reflect the new changes brought in from package:lints Closes https://github.com/dart-lang/lints/issues/205. ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] page, which explains my responsibilities. - [x] I read and followed the [relevant style guides] and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use `dart format`.) - [x] I signed the [CLA]. - [x] The title of the PR starts with the name of the package surrounded by square brackets, e.g. `[shared_preferences]` - [x] I [linked to at least one issue that this PR fixes] in the description above. - [x] I updated `pubspec.yaml` with an appropriate new version according to the [pub versioning philosophy], or this PR is [exempt from version changes]. - [x] I updated `CHANGELOG.md` to add a description of the change, [following repository CHANGELOG style], or this PR is [exempt from CHANGELOG changes]. - [ ] 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]. - [x] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. [Contributor Guide]: https://github.com/flutter/packages/blob/main/CONTRIBUTING.md [Tree Hygiene]: https://github.com/flutter/flutter/blob/master/docs/contributing/Tree-hygiene.md [relevant style guides]: https://github.com/flutter/packages/blob/main/CONTRIBUTING.md#style [CLA]: https://cla.developers.google.com/ [Discord]: https://github.com/flutter/flutter/blob/master/docs/contributing/Chat.md [linked to at least one issue that this PR fixes]: https://github.com/flutter/flutter/blob/master/docs/contributing/Tree-hygiene.md#overview [pub versioning philosophy]: https://dart.dev/tools/pub/versioning [exempt from version changes]: https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#version [following repository CHANGELOG style]: https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#changelog-style [exempt from CHANGELOG changes]: https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#changelog [test-exempt]: https://github.com/flutter/flutter/blob/master/docs/contributing/Tree-hygiene.md#tests --- packages/flutter_lints/CHANGELOG.md | 14 +++++++++----- packages/flutter_lints/pubspec.yaml | 6 +++--- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/packages/flutter_lints/CHANGELOG.md b/packages/flutter_lints/CHANGELOG.md index e2ed68619b5e..a65e7e221228 100644 --- a/packages/flutter_lints/CHANGELOG.md +++ b/packages/flutter_lints/CHANGELOG.md @@ -1,10 +1,14 @@ -## NEXT - -* Removed the following lints: - * `prefer_const_constructors` (see https://github.com/dart-lang/lints/issues/205) +## 5.0.0 + +* Updates `package:lints` dependency to version 5.0.0, with the following changes: + * adds `invalid_runtime_check_with_js_interop_types` + * adds `unnecessary_library_name` + * removes `avoid_null_checks_in_equality_operators` +* Removes the following lints (see https://github.com/dart-lang/lints/issues/205): + * `prefer_const_constructors` * `prefer_const_declarations` * `prefer_const_literals_to_create_immutables` -* Updates minimum supported SDK version to Flutter 3.19/Dart 3.3. +* Updates minimum supported SDK version to Flutter 3.24/Dart 3.5. ## 4.0.0 diff --git a/packages/flutter_lints/pubspec.yaml b/packages/flutter_lints/pubspec.yaml index b4eae22b9c61..3aa9f13622ac 100644 --- a/packages/flutter_lints/pubspec.yaml +++ b/packages/flutter_lints/pubspec.yaml @@ -2,13 +2,13 @@ name: flutter_lints description: Recommended lints for Flutter apps, packages, and plugins to encourage good coding practices. repository: https://github.com/flutter/packages/tree/main/packages/flutter_lints issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+flutter_lints%22 -version: 4.0.0 +version: 5.0.0 environment: - sdk: ^3.3.0 + sdk: ^3.5.0 dependencies: - lints: ^4.0.0 + lints: ^5.0.0 # Code is not allowed in this package. Do not add any dependencies or dev_dependencies. topics: