Permalink
Browse files

Bump to 1.1.0. (#703)

* Bump to 1.1.0.

* Update CHANGELOG.

(And update bump script to do it automatically.)
  • Loading branch information...
munificent committed Jun 18, 2018
1 parent f6a3482 commit 0219b070569077f2637f2ccfec49a4183337ffd0
Showing with 11 additions and 3 deletions.
  1. +1 −1 CHANGELOG.md
  2. +1 −1 bin/format.dart
  3. +1 −1 pubspec.yaml
  4. +8 −0 tool/grind.dart
@@ -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.
@@ -15,7 +15,7 @@ import 'package:dart_style/src/source_code.dart';
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);
@@ -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
@@ -119,5 +119,13 @@ bump() async {
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'.");
}

0 comments on commit 0219b07

Please sign in to comment.