From f3749ab59e268fc8d5dafe5b96c123137b6d1df2 Mon Sep 17 00:00:00 2001 From: Jennifer Thakar Date: Thu, 16 Jan 2020 15:21:36 -0800 Subject: [PATCH] Release 1.1.1 --- CHANGELOG.md | 11 +++++++++++ lib/src/migrators/module.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c54c98c..88dc2933 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +## 1.1.1 + +### Module Migrator + +* When using `--forward=import-only`, `@forward` rules in an import-only file + are now sorted with the regular file last, allowing variables in indirect + dependencies to be configured. + +* Fixes a bug where some references weren't renamed if a variable is declared + twice when using `--remove-prefix`. + ## 1.1.0 * Add support for glob inputs on the command line. diff --git a/lib/src/migrators/module.dart b/lib/src/migrators/module.dart index 65a23aef..6aa77a9e 100644 --- a/lib/src/migrators/module.dart +++ b/lib/src/migrators/module.dart @@ -296,7 +296,7 @@ class _ModuleMigrationVisitor extends MigrationVisitor { _absoluteUrlToDependency(entry.key, relativeTo: importOnlyUrl) .item1, entry.value) - ];//..sort((a, b) => a.item2.compareTo(b.item2)); + ]; var forwardLines = [ for (var tuple in tuples) ..._forwardRulesForShown(tuple.item1, tuple.item2, tuple.item3, diff --git a/pubspec.yaml b/pubspec.yaml index 93a10778..1403191b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: sass_migrator -version: 1.1.0 +version: 1.1.1 description: A tool for running migrations on Sass files author: Jennifer Thakar homepage: https://github.com/sass/migrator