Bump to 1.1.0. (#703)
* Bump to 1.1.0.
* Update CHANGELOG.
(And update bump script to do it automatically.)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 19ed308..cdfd1d0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,4 @@
-# 1.1.0-dev
+# 1.1.0
* Add support for "style fixes", opt-in non-whitespace changes.
* Add fix to convert `:` to `=` as the named parameter default value separator.
diff --git a/bin/format.dart b/bin/format.dart
index 32d821d..999a9d8 100644
--- a/bin/format.dart
+++ b/bin/format.dart
@@ -15,7 +15,7 @@
import 'package:dart_style/src/style_fix.dart';
// Note: The following line of code is modified by tool/grind.dart.
-const version = "1.0.14";
+const version = "1.1.0";
void main(List<String> args) {
var parser = new ArgParser(allowTrailingOptions: true);
diff --git a/pubspec.yaml b/pubspec.yaml
index 598a9b5..6c2994c 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -1,6 +1,6 @@
name: dart_style
# Note: See tool/grind.dart for how to bump the version.
-version: 1.1.0-dev
+version: 1.1.0
author: Dart Team <misc@dartlang.org>
description: Opinionated, automatic Dart source code formatter.
homepage: https://github.com/dart-lang/dart_style
diff --git a/tool/grind.dart b/tool/grind.dart
index 970403f..31938d1 100644
--- a/tool/grind.dart
+++ b/tool/grind.dart
@@ -119,5 +119,13 @@
var binFormat = binFormatFile.readAsStringSync().replaceAll(
new RegExp(r'const version = "[^"]+";'), 'const version = "$bumped";');
binFormatFile.writeAsStringSync(binFormat);
+
+ // Update the version in the CHANGELOG.
+ var changelogFile = getFile("CHANGELOG.md");
+ var changelog = changelogFile
+ .readAsStringSync()
+ .replaceAll(version.toString(), bumped.toString());
+ changelogFile.writeAsStringSync(changelog);
+
log("Updated version to '$bumped'.");
}