Skip to content

Commit 3ddfba5

Browse files
authored
Support latest analyzer, prepare release v2.3.2 (#1238)
1 parent 150917f commit 3ddfba5

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
## 2.3.2-dev
1+
## 2.3.2
22

33
* Don't indent parameters that have metadata annotations. Instead, align them
44
with the metadata and other parameters.
55
* Allow metadata annotations on parameters to split independently of annotations
66
on other parameters (#1212).
77
* Don't split before `.` following a record literal (#1213).
88
* Don't force split on a line comment before a switch expression case (#1215).
9-
* Require `package:analyzer` `^5.12.0`.
9+
* Require `package:analyzer` `>=5.12.0 <7.0.0`.
1010
* Preserve `?` on nullable empty record types (#1224).
1111

1212
## 2.3.1

lib/src/cli/formatter_options.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import 'show.dart';
1111
import 'summary.dart';
1212

1313
// Note: The following line of code is modified by tool/grind.dart.
14-
const dartStyleVersion = '2.3.1';
14+
const dartStyleVersion = '2.3.2';
1515

1616
/// Global options that affect how the formatter produces and uses its outputs.
1717
class FormatterOptions {

lib/src/testing/test_file.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ final _unicodeEscapePattern = RegExp('[\x0a\x0c\x0d]');
1414
Future<String> findTestDirectory() async {
1515
var libraryUri = await Isolate.resolvePackageUri(
1616
Uri.parse('package:dart_style/src/testing/test_file.dart'));
17-
return p.normalize(
18-
p.join(p.dirname(libraryUri!.toFilePath()), '../../../test'));
17+
return p
18+
.normalize(p.join(p.dirname(libraryUri!.toFilePath()), '../../../test'));
1919
}
2020

2121
/// A file containing a series of formatting tests.

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: dart_style
22
# Note: See tool/grind.dart for how to bump the version.
3-
version: 2.3.2-dev
3+
version: 2.3.2
44
description: >-
55
Opinionated, automatic Dart source code formatter.
66
Provides an API and a CLI tool.
@@ -9,7 +9,7 @@ environment:
99
sdk: ">=2.19.0 <3.0.0"
1010

1111
dependencies:
12-
analyzer: ^5.12.0
12+
analyzer: '>=5.12.0 <7.0.0'
1313
args: ">=1.0.0 <3.0.0"
1414
path: ^1.0.0
1515
pub_semver: ">=1.4.4 <3.0.0"

0 commit comments

Comments
 (0)