Skip to content

Commit

Permalink
Bump to publish 3.0.0. (#1609)
Browse files Browse the repository at this point in the history
Also fixed the format-self call in the grinder script which was still
using the old CLI format.
  • Loading branch information
munificent authored Dec 3, 2024
1 parent 1de89eb commit c57d49c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## 3.0.0-wip
## 3.0.0

This is a large change. Under the hood, the formatter was almost completely
rewritten, with the codebase now containing both the old and new
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 @@ -12,7 +12,7 @@ import 'show.dart';
import 'summary.dart';

// Note: The following line of code is modified by tool/grind.dart.
const dartStyleVersion = '2.3.7';
const dartStyleVersion = '3.0.0';

/// Global options that affect how the formatter produces and uses its outputs.
final class FormatterOptions {
Expand Down
2 changes: 1 addition & 1 deletion 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: 3.0.0-wip
version: 3.0.0
description: >-
Opinionated, automatic Dart source code formatter.
Provides an API and a CLI tool.
Expand Down
2 changes: 1 addition & 1 deletion tool/grind.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Future<void> validate() async {
Analyzer.analyze('bin/format.dart', fatalWarnings: true);

// Format it.
Dart.run('bin/format.dart', arguments: ['-w', '.']);
Dart.run('bin/format.dart', arguments: ['.']);
}

/// Gets ready to publish a new version of the package.
Expand Down

0 comments on commit c57d49c

Please sign in to comment.