Skip to content

Commit

Permalink
Release 1.5.1 (#203)
Browse files Browse the repository at this point in the history
There's no code changes here, but this should pull in the fix in Dart
Sass that was causing #202.
  • Loading branch information
jathak authored Jul 7, 2021
1 parent 5c5ce40 commit fdd698f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
homepage: https://github.com/sass/migrator
Expand Down
2 changes: 2 additions & 0 deletions test/migrators/division/always_division.hrx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fdd698f

Please sign in to comment.