From 3ddfba5ae5798ca5a10ce628153a424edde7d5de Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Thu, 29 Jun 2023 09:19:55 -0700 Subject: [PATCH] Support latest analyzer, prepare release v2.3.2 (#1238) --- CHANGELOG.md | 4 ++-- lib/src/cli/formatter_options.dart | 2 +- lib/src/testing/test_file.dart | 4 ++-- pubspec.yaml | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9fa7eb7b..d25c4fa0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -## 2.3.2-dev +## 2.3.2 * Don't indent parameters that have metadata annotations. Instead, align them with the metadata and other parameters. @@ -6,7 +6,7 @@ on other parameters (#1212). * Don't split before `.` following a record literal (#1213). * Don't force split on a line comment before a switch expression case (#1215). -* Require `package:analyzer` `^5.12.0`. +* Require `package:analyzer` `>=5.12.0 <7.0.0`. * Preserve `?` on nullable empty record types (#1224). ## 2.3.1 diff --git a/lib/src/cli/formatter_options.dart b/lib/src/cli/formatter_options.dart index 6f4e6e7e..b197cc92 100644 --- a/lib/src/cli/formatter_options.dart +++ b/lib/src/cli/formatter_options.dart @@ -11,7 +11,7 @@ import 'show.dart'; import 'summary.dart'; // Note: The following line of code is modified by tool/grind.dart. -const dartStyleVersion = '2.3.1'; +const dartStyleVersion = '2.3.2'; /// Global options that affect how the formatter produces and uses its outputs. class FormatterOptions { diff --git a/lib/src/testing/test_file.dart b/lib/src/testing/test_file.dart index 98f250d3..3bcd365a 100644 --- a/lib/src/testing/test_file.dart +++ b/lib/src/testing/test_file.dart @@ -14,8 +14,8 @@ final _unicodeEscapePattern = RegExp('[\x0a\x0c\x0d]'); Future findTestDirectory() async { var libraryUri = await Isolate.resolvePackageUri( Uri.parse('package:dart_style/src/testing/test_file.dart')); - return p.normalize( - p.join(p.dirname(libraryUri!.toFilePath()), '../../../test')); + return p + .normalize(p.join(p.dirname(libraryUri!.toFilePath()), '../../../test')); } /// A file containing a series of formatting tests. diff --git a/pubspec.yaml b/pubspec.yaml index 0725ca93..8db515ef 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: dart_style # Note: See tool/grind.dart for how to bump the version. -version: 2.3.2-dev +version: 2.3.2 description: >- Opinionated, automatic Dart source code formatter. Provides an API and a CLI tool. @@ -9,7 +9,7 @@ environment: sdk: ">=2.19.0 <3.0.0" dependencies: - analyzer: ^5.12.0 + analyzer: '>=5.12.0 <7.0.0' args: ">=1.0.0 <3.0.0" path: ^1.0.0 pub_semver: ">=1.4.4 <3.0.0"