Skip to content

Commit

Permalink
Support latest analyzer, prepare release v2.3.2 (#1238)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmoo authored Jun 29, 2023
1 parent 150917f commit 3ddfba5
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
## 2.3.2-dev
## 2.3.2

* Don't indent parameters that have metadata annotations. Instead, align them
with the metadata and other parameters.
* Allow metadata annotations on parameters to split independently of annotations
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
Expand Down
2 changes: 1 addition & 1 deletion lib/src/cli/formatter_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions lib/src/testing/test_file.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ final _unicodeEscapePattern = RegExp('[\x0a\x0c\x0d]');
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.
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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"
Expand Down

0 comments on commit 3ddfba5

Please sign in to comment.