diff --git a/CHANGELOG.md b/CHANGELOG.md index 64f4249..342fd7f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## 1.5.1 + +### Division Migrator + +* Fix a bug where some division nested in a parenthesized expression would not + be migrated. + ## 1.5.0 ### Division Migrator diff --git a/pubspec.yaml b/pubspec.yaml index 6e4e4f5..8a8326c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: sass_migrator -version: 1.5.0 +version: 1.5.1 description: A tool for running migrations on Sass files author: Jennifer Thakar homepage: https://github.com/sass/migrator diff --git a/test/migrators/division/always_division.hrx b/test/migrators/division/always_division.hrx index e089afb..9483ee4 100644 --- a/test/migrators/division/always_division.hrx +++ b/test/migrators/division/always_division.hrx @@ -16,6 +16,7 @@ a { c: 6px/3px + 1; d: (6px / 3px); e: 6px / (2px + 1px) / 2; + f: (6px / 3px * -1); $f: 6px / 3px; // * and % always return numbers, so we can assume division here @@ -58,6 +59,7 @@ a { c: math.div(6px, 3px) + 1; d: math.div(6px, 3px); e: math.div(math.div(6px, 2px + 1px), 2); + f: (math.div(6px, 3px) * -1); $f: math.div(6px, 3px); // * and % always return numbers, so we can assume division here