Skip to content

Commit 26dd3a3

Browse files
committed
Latest analyzer, prepare release
1 parent ec0048b commit 26dd3a3

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## 3.1.3-wip
1+
## 3.1.3
22

3+
* Support `analyzer: '>=8.2.0 <10.0.0'`.
34
* No longer format imports with configurations and a prefix in the wrong order.
45
The parser used to accept this without error even though it violated the
56
language spec. The parser is being fixed, so the formatter will no longer

lib/src/cli/formatter_options.dart

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

1515
// Note: The following line of code is modified by tool/grind.dart.
16-
const dartStyleVersion = '3.1.3-wip';
16+
const dartStyleVersion = '3.1.3';
1717

1818
/// Global options parsed from the command line that affect how the formatter
1919
/// produces and uses its outputs.

lib/src/dart_formatter.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ final class DartFormatter {
200200
source: stringSource,
201201
offset: token.offset - inputOffset,
202202
length: math.max(token.length, 1),
203-
diagnosticCode: ParserErrorCode.UNEXPECTED_TOKEN,
203+
diagnosticCode: ParserErrorCode.unexpectedToken,
204204
arguments: [token.lexeme],
205205
);
206206
throw FormatterException([error]);

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: 3.1.3-wip
3+
version: 3.1.3
44
description: >-
55
Opinionated, automatic Dart source code formatter.
66
Provides an API and a CLI tool.
@@ -9,7 +9,7 @@ environment:
99
sdk: ^3.7.0
1010

1111
dependencies:
12-
analyzer: ^8.1.0
12+
analyzer: '>=8.2.0 <10.0.0'
1313
args: ^2.0.0
1414
collection: ^1.19.0
1515
package_config: ^2.1.0

0 commit comments

Comments
 (0)