Support latest analyzer, prepare release v2.3.2 (#1238)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9fa7eb7..d25c4fa 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 6f4e6e7..b197cc9 100644
--- a/lib/src/cli/formatter_options.dart
+++ b/lib/src/cli/formatter_options.dart
@@ -11,7 +11,7 @@
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 98f250d..3bcd365 100644
--- a/lib/src/testing/test_file.dart
+++ b/lib/src/testing/test_file.dart
@@ -14,8 +14,8 @@
Future<String> 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 0725ca9..8db515e 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 @@
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"