这是indexloc提供的服务,不要输入任何密码
Skip to content

Bump latest supported language version to 3.9. #1740

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.1.1-wip

* Update to latest analyzer and enable language version 3.9.

## 3.1.0

This release contains a fairly large number of style changes in response to
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 @@ -13,7 +13,7 @@ import 'show.dart';
import 'summary.dart';

// Note: The following line of code is modified by tool/grind.dart.
const dartStyleVersion = '3.1.0';
const dartStyleVersion = '3.1.1-wip';

/// Global options parsed from the command line that affect how the formatter
/// produces and uses its outputs.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/dart_formatter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ final RegExp _widthCommentPattern = RegExp(r'^// dart format width=(\d+)$');
final class DartFormatter {
/// The latest Dart language version that can be parsed and formatted by this
/// version of the formatter.
static final latestLanguageVersion = Version(3, 8, 0);
static final latestLanguageVersion = Version(3, 9, 0);

/// The latest Dart language version that will be formatted using the older
/// "short" style.
Expand Down
6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: dart_style
# Note: See tool/grind.dart for how to bump the version.
version: 3.1.0
version: 3.1.1-wip
description: >-
Opinionated, automatic Dart source code formatter.
Provides an API and a CLI tool.
repository: https://github.com/dart-lang/dart_style
environment:
sdk: "^3.7.0"
sdk: ^3.7.0

dependencies:
analyzer: ">=7.3.0 <8.0.0"
analyzer: ^7.5.2
args: ">=1.0.0 <3.0.0"
collection: "^1.17.0"
package_config: ^2.1.0
Expand Down
2 changes: 1 addition & 1 deletion tool/grind.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Future<void> major() async {
/// 2. Run this task:
///
/// ```
/// dart run grinder bump
/// dart run grinder ship
/// ```
///
/// 3. Commit the change to a branch, push it to GitHub, and review and merge
Expand Down